public class S3XmlResponseHandler<T> extends AbstractS3ResponseHandler<T>
X_AMZ_REQUEST_ID_ALTERNATIVE_HEADER, X_AMZN_EXTENDED_REQUEST_ID_HEADER, X_AMZN_QUERY_ERROR, X_AMZN_REQUEST_ID_HEADER
Constructor and Description |
---|
S3XmlResponseHandler(com.ibm.cloud.objectstorage.transform.Unmarshaller<T,InputStream> responseUnmarshaller)
Constructs a new S3 response handler that will use the specified SAX
unmarshaller to turn the response into an object.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getResponseHeaders()
Returns the headers from the processed response.
|
AmazonWebServiceResponse<T> |
handle(HttpResponse response)
Accepts an HTTP response object, and returns an object of type T.
|
needsConnectionLeftOpen, parseResponseMetadata, populateObjectMetadata
public S3XmlResponseHandler(com.ibm.cloud.objectstorage.transform.Unmarshaller<T,InputStream> responseUnmarshaller)
responseUnmarshaller
- The SAX unmarshaller to use on the response from S3.public AmazonWebServiceResponse<T> 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)
Copyright © 2024. All rights reserved.