Interface HttpResponseHandler<R>
-
- All Known Implementing Classes:
ThrowingResponseHandler
- 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 HttpResponseHandler<R>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Rhandle(HttpResponse response)Handle the response and return the result.static HttpResponseHandler<HttpResponse>identity()
-
-
-
Method Detail
-
identity
static HttpResponseHandler<HttpResponse> identity()
- Returns:
- A handler that returns the response
-
handle
R handle(@Nonnull HttpResponse response) throws java.io.IOException
Handle the response and return the result.- Parameters:
response- The response to handle- Returns:
- The result
- Throws:
java.io.IOException- If an I/O error occurs
-
-