@Immutable public abstract class AbstractResponseHandler<T> extends Object implements ResponseHandler<T>
ResponseHandlerthat works with the response entity for successful (2xx) responses. If the response code was >= 300, the response body is consumed and an
If this is used with
HttpClient may handle redirects (3xx responses) internally.
|Constructor and Description|
|Modifier and Type||Method and Description|
Handle the response entity and transform it into the actual response object.
Read the entity from the response body and pass it to the entity handler method if the response was successful (a 2xx status code).
public T handleResponse(HttpResponse response) throws HttpResponseException, IOException
response- The response to process
ClientProtocolException- in case of an http protocol error
IOException- in case of a problem or the connection was aborted
Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.