public class CIGetSnapshotResponseHandler extends AbstractCosResponseHandler<InputStream> implements HeaderHandler<InputStream>
| Constructor and Description |
|---|
CIGetSnapshotResponseHandler() |
| Modifier and Type | Method and Description |
|---|---|
CosServiceResponse<InputStream> |
handle(CosHttpResponse response)
Accepts an HTTP response object, and returns an object of type T.
|
void |
handle(InputStream result,
CosHttpResponse response)
Applies one or more headers to the response object given.
|
boolean |
needsConnectionLeftOpen()
The majority of COS response handlers read the complete response while handling it, and don't
need to manually manage the underlying HTTP connection.
|
parseResponseMetadata, populateObjectMetadatapublic CosServiceResponse<InputStream> handle(CosHttpResponse response) throws Exception
HttpResponseHandlerhandle in interface HttpResponseHandler<CosServiceResponse<InputStream>>response - The HTTP response to handle, as received from an COS service.Exception - If any problems are encountered handling the response.public void handle(InputStream result, CosHttpResponse response)
HeaderHandlerhandle in interface HeaderHandler<InputStream>result - The response object to be returned to the client.response - The HTTP response from cos.public boolean needsConnectionLeftOpen()
AbstractCosResponseHandlerneedsConnectionLeftOpen in interface HttpResponseHandler<CosServiceResponse<InputStream>>needsConnectionLeftOpen in class AbstractCosResponseHandler<InputStream>Copyright © 2023. All rights reserved.