public class S3XmlResponseHandler<T> extends AbstractS3ResponseHandler<T>
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
log
Shared logger for profiling information
|
private java.util.Map<java.lang.String,java.lang.String> |
responseHeaders
Response headers from the processed response
|
private Unmarshaller<T,java.io.InputStream> |
responseUnmarshaller
The SAX unmarshaller to use when handling the response from S3
|
X_AMZN_REQUEST_ID_HEADER
Constructor and Description |
---|
S3XmlResponseHandler(Unmarshaller<T,java.io.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 |
---|---|
java.util.Map<java.lang.String,java.lang.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
private Unmarshaller<T,java.io.InputStream> responseUnmarshaller
private static final org.apache.commons.logging.Log log
private java.util.Map<java.lang.String,java.lang.String> responseHeaders
public S3XmlResponseHandler(Unmarshaller<T,java.io.InputStream> responseUnmarshaller)
responseUnmarshaller
- The SAX unmarshaller to use on the response from S3.public AmazonWebServiceResponse<T> handle(HttpResponse response) throws java.lang.Exception
HttpResponseHandler
response
- The HTTP response to handle, as received from an AWS service.java.lang.Exception
- If any problems are encountered handling the response.HttpResponseHandler.handle(com.amazonaws.http.HttpResponse)
public java.util.Map<java.lang.String,java.lang.String> getResponseHeaders()