Package org.apache.hc.core5.http.io
Interface HttpClientResponseHandler<T>
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface HttpClientResponseHandler<T>
Handler that encapsulates the process of generating a response object from aClassicHttpResponse
.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
handleResponse(ClassicHttpResponse response)
Processes anClassicHttpResponse
and returns some value corresponding to that response.
-
-
-
Method Detail
-
handleResponse
T handleResponse(ClassicHttpResponse response) throws HttpException, java.io.IOException
Processes anClassicHttpResponse
and returns some value corresponding to that response.- Parameters:
response
- The response to process- Returns:
- A value determined by the response
- Throws:
java.io.IOException
- in case of a problem or the connection was abortedHttpException
-
-