T - The type of the expected response.public final class DefaultResponseHandler<T> extends java.lang.Object implements HttpResponseHandler<T>
getInstance() to get an instance.| Constructor and Description |
|---|
DefaultResponseHandler() |
| Modifier and Type | Method and Description |
|---|---|
static <V> HttpResponseHandler<V> |
getInstance() |
T |
handleResponse(HttpResponse response)
Actually handles the
HttpResponse. |
public static <V> HttpResponseHandler<V> getInstance()
public T handleResponse(HttpResponse response) throws java.io.IOException, ProtocolError, ProtocolException
HttpResponseHandlerHttpResponse. This method "converts" the response into an object of type T.handleResponse in interface HttpResponseHandler<T>response - The response object.null if no result is expected.java.io.IOExceptionProtocolErrorProtocolException