Package com.luna.common.net.hander
Interface AsyncHttpClientResponseHandler<T>
- All Known Implementing Classes:
AsyncValidatingResponseHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Handler that encapsulates the process of generating a response object
from a
ClassicHttpResponse
.- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescription<R extends org.apache.hc.core5.http.HttpResponse>
voidhandleResponse
(R response) Processes anClassicHttpResponse
and returns some value corresponding to that response.
-
Method Details
-
handleResponse
<R extends org.apache.hc.core5.http.HttpResponse> void handleResponse(R response) Processes anClassicHttpResponse
and returns some value corresponding to that response.- Parameters:
response
- The response to process- Throws:
IOException
- in case of a problem or the connection was aborted
-