public class StreamResponseHandler<T> extends java.lang.Object implements HttpResponseHandler<ApiServiceResponse<T>>
| Constructor and Description |
|---|
StreamResponseHandler(Unmarshaller<T,java.io.InputStream> responseUnmarshaller) |
| Modifier and Type | Method and Description |
|---|---|
ApiServiceResponse<T> |
handle(HttpResponse<?> httpResponse)
Accepts an HTTP response object, and returns an object of type T.
|
boolean |
needsConnectionLeftOpen() |
public StreamResponseHandler(Unmarshaller<T,java.io.InputStream> responseUnmarshaller)
public ApiServiceResponse<T> handle(HttpResponse<?> httpResponse) throws java.lang.Exception
HttpResponseHandlerhandle in interface HttpResponseHandler<ApiServiceResponse<T>>httpResponse - The HTTP response to handle, as received from request.java.lang.Exception - If any problems are encountered handling the response.public boolean needsConnectionLeftOpen()
needsConnectionLeftOpen in interface HttpResponseHandler<ApiServiceResponse<T>>true if this response handler requires that the
underlying HTTP connection be left open, and not automatically
closed, otherwise false.