Package org.apache.http.client
Interface ResponseHandler<T>
-
- All Known Implementing Classes:
AbstractResponseHandler
,BasicResponseHandler
,ContentResponseHandler
public interface ResponseHandler<T>
Handler that encapsulates the process of generating a response object from aHttpResponse
.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
handleResponse(HttpResponse response)
Processes anHttpResponse
and returns some value corresponding to that response.
-
-
-
Method Detail
-
handleResponse
T handleResponse(HttpResponse response) throws ClientProtocolException, java.io.IOException
Processes anHttpResponse
and returns some value corresponding to that response.- Parameters:
response
- The response to process- Returns:
- A value determined by the response
- Throws:
ClientProtocolException
- in case of an http protocol errorjava.io.IOException
- in case of a problem or the connection was aborted
-
-