public class S3ErrorResponseHandler extends Object implements HttpResponseHandler<AmazonServiceException>
X_AMZ_REQUEST_ID_ALTERNATIVE_HEADER, X_AMZN_EXTENDED_REQUEST_ID_HEADER, X_AMZN_QUERY_ERROR, X_AMZN_REQUEST_ID_HEADER
Constructor and Description |
---|
S3ErrorResponseHandler(ClientConfiguration clientConfiguration) |
Modifier and Type | Method and Description |
---|---|
AmazonServiceException |
handle(HttpResponse httpResponse)
Accepts an HTTP response object, and returns an object of type T.
|
boolean |
needsConnectionLeftOpen()
Since this response handler completely consumes all the data from the
underlying HTTP connection during the handle method, we don't need to
keep the HTTP connection open.
|
public S3ErrorResponseHandler(ClientConfiguration clientConfiguration)
public AmazonServiceException handle(HttpResponse httpResponse) throws XMLStreamException
HttpResponseHandler
handle
in interface HttpResponseHandler<AmazonServiceException>
httpResponse
- The HTTP response to handle, as received from an AWS service.XMLStreamException
public boolean needsConnectionLeftOpen()
needsConnectionLeftOpen
in interface HttpResponseHandler<AmazonServiceException>
HttpResponseHandler.needsConnectionLeftOpen()
Copyright © 2024. All rights reserved.