Top Description Methods
org.apache.hc.core5.http.io

public Interface HttpClientResponseHandler<T>

Annotations
@FunctionalInterface
Imports
java.io.IOException, org.apache.hc.core5.http.ClassicHttpResponse, .HttpException

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

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

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

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

Method Detail

handleResponseback to summary
public T handleResponse(ClassicHttpResponse response) throws HttpException, IOException

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

Parameters
response:ClassicHttpResponse

The response to process

Returns:T

A value determined by the response

Exceptions
IOException:
in case of a problem or the connection was aborted