org.apache.http.client
Interface ResponseHandler<T>
public interface ResponseHandler<T>
Handler that encapsulates the process of generating a response object
from a HttpResponse
.
- Since:
- 4.0
Method Summary |
T |
handleResponse(org.apache.http.HttpResponse response)
Processes an HttpResponse and returns some value
corresponding to that response. |
handleResponse
T handleResponse(org.apache.http.HttpResponse response)
throws org.apache.http.client.ClientProtocolException,
java.io.IOException
- Processes an
HttpResponse
and returns some value
corresponding to that response.
- Parameters:
response
- The response to process
- Returns:
- A value determined by the response
- Throws:
org.apache.http.client.ClientProtocolException
- in case of an http protocol error
java.io.IOException
- in case of a problem or the connection was aborted