Package org.apache.http.client
Interface ResponseHandler<T>
- All Known Implementing Classes:
BasicResponseHandler
public interface ResponseHandler<T>
Handler that encapsulates the process of generating a response object
from a
HttpResponse.- Since:
- 4.0
- Author:
- Oleg Kalnichevski
-
Method Summary
Modifier and Type Method Description ThandleResponse(HttpResponse response)Processes anHttpResponseand returns some value corresponding to that response.
-
Method Details
-
handleResponse
Processes anHttpResponseand 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 errorIOException- in case of a problem or the connection was aborted
-