Top Description Methods
org.apache.http.client

public Interface ResponseHandler<T>

Known Direct Implementers
org.apache.http.impl.client.AbstractResponseHandler
Imports
java.io.IOException, org.apache.http.HttpResponse

Handler that encapsulates the process of generating a response object from a HttpResponse.
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

A value determined by the response
handleResponse
(HttpResponse
The response to process
response
)

Processes an HttpResponse and returns some value corresponding to that response.

Method Detail

handleResponseback to summary
public T handleResponse(HttpResponse response) throws ClientProtocolException, IOException

Processes an HttpResponse and returns some value corresponding to that response.

Parameters
response:HttpResponse

The response to process

Returns:T

A value determined by the response

Exceptions
ClientProtocolException:
in case of an http protocol error
IOException:
in case of a problem or the connection was aborted