ResponseHandler that works with the response entity
for successful (2xx) responses. If the response code was >= 300, the response
body is consumed and an HttpResponseException is thrown.
If this is used with
org.,
HttpClient may handle redirects (3xx responses) internally.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract T | handleEntity(HttpEntity entity)
Handle the response entity and transform it into the actual response object. |
| public T | handleResponse(final HttpResponse
The response to process response)Implements org. |
| AbstractResponseHandler | back to summary |
|---|---|
| public AbstractResponseHandler() | |
| handleEntity | back to summary |
|---|---|
| public abstract T handleEntity(HttpEntity entity) throws IOException Handle the response entity and transform it into the actual response object. | |
| handleResponse | back to summary |
|---|---|
| public T handleResponse(final HttpResponse response) throws HttpResponseException, IOException Implements org. Read the entity from the response body and pass it to the entity handler
method if the response was successful (a 2xx status code). If no response
body exists, this returns null. If the response was unsuccessful (>= 300
status code), throws an
| |