Package org.dmfs.httpessentials.client
Interface HttpResponseHandler<T>
- Type Parameters:
T- The type of the response object returned.
public interface HttpResponseHandler<T>
An interface of a handler for responses.
-
Method Summary
Modifier and TypeMethodDescriptionhandleResponse(HttpResponse response) Actually handles theHttpResponse.
-
Method Details
-
handleResponse
Actually handles theHttpResponse. This method "converts" the response into an object of type T.- Parameters:
response- The response object.- Returns:
- An object that represents the result, may be
nullif no result is expected. - Throws:
IOExceptionProtocolErrorProtocolException
-