public interface HttpResponseHandler<T>
| Modifier and Type | Method and Description |
|---|---|
T |
handle(HttpResponse<?> response)
Accepts an HTTP response object, and returns an object of type T.
|
boolean |
needsConnectionLeftOpen() |
T handle(HttpResponse<?> response) throws java.lang.Exception
response - The HTTP response to handle, as received from request.java.lang.Exception - If any problems are encountered handling the response.boolean needsConnectionLeftOpen()
true if this response handler requires that the
underlying HTTP connection be left open, and not automatically
closed, otherwise false.