public class S3ObjectResponseHandler extends AbstractS3ResponseHandler<S3Object>
X_AMZ_REQUEST_ID_ALTERNATIVE_HEADER, X_AMZN_EXTENDED_REQUEST_ID_HEADER, X_AMZN_QUERY_ERROR, X_AMZN_REQUEST_ID_HEADER
Constructor and Description |
---|
S3ObjectResponseHandler() |
Modifier and Type | Method and Description |
---|---|
AmazonWebServiceResponse<S3Object> |
handle(HttpResponse response)
Accepts an HTTP response object, and returns an object of type T.
|
boolean |
needsConnectionLeftOpen()
Returns true, since the entire response isn't read while this response
handler handles the response.
|
parseResponseMetadata, populateObjectMetadata
public AmazonWebServiceResponse<S3Object> handle(HttpResponse response) throws Exception
HttpResponseHandler
response
- The HTTP response to handle, as received from an AWS service.Exception
- If any problems are encountered handling the response.HttpResponseHandler.handle(com.ibm.cloud.objectstorage.http.HttpResponse)
public boolean needsConnectionLeftOpen()
needsConnectionLeftOpen
in interface HttpResponseHandler<AmazonWebServiceResponse<S3Object>>
needsConnectionLeftOpen
in class AbstractS3ResponseHandler<S3Object>
HttpResponseHandler.needsConnectionLeftOpen()
Copyright © 2024. All rights reserved.