List of usage examples for org.apache.http.client ResponseHandler interface-usage
From source file com.eincs.decanter.utils.io.StringResponseHandler.java
/** * @author Jung-Haeng Lee */ public class StringResponseHandler implements ResponseHandler<String> { @Override
From source file com.jive.myco.seyren.core.util.graphite.ByteArrayResponseHandler.java
public class ByteArrayResponseHandler implements ResponseHandler<byte[]> { @Override public byte[] handleResponse(HttpResponse response) throws ClientProtocolException, IOException { HttpEntity entity = response.getEntity(); try {
From source file com.github.rnewson.couchdb.lucene.util.ErrorPreservingResponseHandler.java
public final class ErrorPreservingResponseHandler implements ResponseHandler<String> { public String handleResponse(final org.ektorp.http.HttpResponse response) throws HttpResponseException, IOException { String str = IOUtils.toString(response.getContent()); if (response.getCode() >= 300) {
From source file com.commonsware.android.tuning.downloader.ByteArrayResponseHandler.java
public class ByteArrayResponseHandler implements ResponseHandler<byte[]> { public byte[] handleResponse(final HttpResponse response) throws IOException, HttpResponseException { StatusLine statusLine = response.getStatusLine(); if (statusLine.getStatusCode() >= 300) { throw new HttpResponseException(statusLine.getStatusCode(), statusLine.getReasonPhrase());
From source file com.helger.httpclient.response.ResponseHandlerByteArray.java
/** * Convert a valid HTTP response to a byte array. * * @author Philip Helger */ public class ResponseHandlerByteArray implements ResponseHandler<byte[]> {
From source file com.kingmed.dp.ndp.impl.NDPServeResponseHandler.java
/** * * @author zhengjunjie */ public class NDPServeResponseHandler implements ResponseHandler<String> {
From source file com.github.tmyroadctfig.icloud4j.util.StringResponseHandler.java
/** * A response handler which returns the response content as a string. * * @author Luke Quinane */ public class StringResponseHandler implements ResponseHandler<String> {
From source file de.dan_nrw.web.HttpResponseHandler.java
/** * @author Daniel Czerwonk */ public abstract class HttpResponseHandler<T> implements ResponseHandler<T> { /* (non-Javadoc)
From source file self.philbrown.javaQuery.ScriptResponseHandler.java
/**
* Handles a Script by executing it, and returning the result
* @author Phil Brown
* @see ScriptResponse
* @see Script
*/
From source file net.sarangnamu.common.network.BkResponseHandler.java
/**
* <pre>
* {@code
HttpGet get = new HttpGet("http://www.sportalkorea.com/news/rss/news_top.xml");
String tmp = http.execute(get, new BkResponseHandler("EUC-KR"));
* }