public class S3ObjectResponseHandler extends AbstractS3ResponseHandler<S3Object>
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.
|
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.amazonaws.http.HttpResponse)
public boolean needsConnectionLeftOpen()
needsConnectionLeftOpen
in interface HttpResponseHandler<AmazonWebServiceResponse<S3Object>>
needsConnectionLeftOpen
in class AbstractS3ResponseHandler<S3Object>
HttpResponseHandler.needsConnectionLeftOpen()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.