Modifier and Type | Field and Description |
---|---|
private HttpResponse |
Response.httpResponse |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
Response.getHttpResponse() |
Constructor and Description |
---|
Response(T response,
HttpResponse httpResponse) |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
StackedRequestHandler.beforeUnmarshalling(Request<?> request,
HttpResponse origHttpResponse) |
HttpResponse |
RequestHandler2.beforeUnmarshalling(Request<?> request,
HttpResponse httpResponse) |
HttpResponse |
IRequestHandler2.beforeUnmarshalling(Request<?> request,
HttpResponse httpResponse)
Runs any additional processing logic on the specified response before it's unmarshalled.
|
Modifier and Type | Method and Description |
---|---|
HttpResponse |
StackedRequestHandler.beforeUnmarshalling(Request<?> request,
HttpResponse origHttpResponse) |
HttpResponse |
RequestHandler2.beforeUnmarshalling(Request<?> request,
HttpResponse httpResponse) |
HttpResponse |
IRequestHandler2.beforeUnmarshalling(Request<?> request,
HttpResponse httpResponse)
Runs any additional processing logic on the specified response before it's unmarshalled.
|
Modifier and Type | Method and Description |
---|---|
private HttpResponse |
AmazonHttpClient.beforeUnmarshalling(java.util.List<RequestHandler2> requestHandler2s,
Request<?> request,
HttpResponse origHttpResponse)
|
private HttpResponse |
AmazonHttpClient.createResponse(org.apache.http.client.methods.HttpRequestBase method,
Request<?> request,
org.apache.http.HttpResponse apacheHttpResponse)
Creates and initializes an HttpResponse object suitable to be passed to an HTTP response handler object.
|
Modifier and Type | Method and Description |
---|---|
private HttpResponse |
AmazonHttpClient.beforeUnmarshalling(java.util.List<RequestHandler2> requestHandler2s,
Request<?> request,
HttpResponse origHttpResponse)
|
static JsonErrorResponseHandler.JsonContent |
JsonErrorResponseHandler.JsonContent.createJsonContent(HttpResponse httpResponse,
com.fasterxml.jackson.core.JsonFactory jsonFactory)
Static factory method to create a JsonContent object from the contents of the
HttpResponse provided
|
AmazonWebServiceResponse<T> |
StaxResponseHandler.handle(HttpResponse response) |
AmazonWebServiceResponse<T> |
JsonResponseHandler.handle(HttpResponse response) |
AmazonServiceException |
JsonErrorResponseHandler.handle(HttpResponse response) |
T |
HttpResponseHandler.handle(HttpResponse response)
Accepts an HTTP response object, and returns an object of type T.
|
AmazonServiceException |
DefaultErrorResponseHandler.handle(HttpResponse errorResponse) |
private <T> T |
AmazonHttpClient.handleResponse(Request<?> request,
HttpResponseHandler<AmazonWebServiceResponse<T>> responseHandler,
org.apache.http.client.methods.HttpRequestBase method,
HttpResponse httpResponse,
org.apache.http.HttpResponse apacheHttpResponse,
ExecutionContext executionContext,
boolean isHeaderReqIdAvail,
java.util.List<RequestHandler2> requestHandlers)
Handles a successful response from a service call by unmarshalling the results using the specified response
handler.
|
private AmazonServiceException |
DefaultErrorResponseHandler.newAmazonServiceException(java.lang.String errmsg,
HttpResponse httpResponse,
java.lang.Exception readFailure)
Used to create an
newAmazonServiceException when we failed to
read the error response or parsed the error response as XML. |
Modifier and Type | Method and Description |
---|---|
AuthRetryParameters |
AuthErrorRetryStrategy.shouldRetryWithAuthParam(Request<?> originalRequest,
HttpResponse response,
AmazonServiceException ase)
Returns an alternative signing context (consists of a new signer instance
and a new request endpoint) that should be used to retry the request.
|
Modifier and Type | Method and Description |
---|---|
private AmazonS3Exception |
S3ErrorResponseHandler.createExceptionFromHeaders(HttpResponse errorResponse,
java.lang.String errorResponseXml) |
private static java.lang.String |
S3V4AuthErrorRetryStrategy.getServingRegionHeader(HttpResponse response) |
AmazonWebServiceResponse<T> |
S3XmlResponseHandler.handle(HttpResponse response) |
AmazonWebServiceResponse<java.lang.String> |
S3StringResponseHandler.handle(HttpResponse response) |
AmazonWebServiceResponse<S3Object> |
S3ObjectResponseHandler.handle(HttpResponse response) |
AmazonWebServiceResponse<ObjectMetadata> |
S3MetadataResponseHandler.handle(HttpResponse response) |
AmazonServiceException |
S3ErrorResponseHandler.handle(HttpResponse httpResponse) |
AmazonWebServiceResponse<T> |
ResponseHeaderHandlerChain.handle(HttpResponse response) |
void |
InitiateMultipartUploadHeaderHandler.handle(InitiateMultipartUploadResult result,
HttpResponse response) |
void |
ListPartsHeaderHandler.handle(PartListing result,
HttpResponse response) |
void |
ServerSideEncryptionHeaderHandler.handle(T result,
HttpResponse response) |
void |
S3VersionHeaderHandler.handle(T result,
HttpResponse response) |
void |
S3RequesterChargedHeaderHandler.handle(T result,
HttpResponse response) |
void |
ObjectRestoreHeaderHandler.handle(T result,
HttpResponse response) |
void |
ObjectExpirationHeaderHandler.handle(T result,
HttpResponse response) |
void |
HeaderHandler.handle(T result,
HttpResponse response)
Applies one or more headers to the response object given.
|
private static boolean |
S3V4AuthErrorRetryStrategy.hasServingRegionHeader(HttpResponse response) |
protected AmazonWebServiceResponse<T> |
AbstractS3ResponseHandler.parseResponseMetadata(HttpResponse response)
Parses the S3 response metadata (ex: AWS request ID) from the specified
response, and returns a AmazonWebServiceResponse
|
protected void |
AbstractS3ResponseHandler.populateObjectMetadata(HttpResponse response,
ObjectMetadata metadata)
Populates the specified S3ObjectMetadata object with all object metadata
pulled from the headers in the specified response.
|
private AuthRetryParameters |
S3V4AuthErrorRetryStrategy.redirectToRegionInHeader(Request<?> request,
HttpResponse response) |
AuthRetryParameters |
S3V4AuthErrorRetryStrategy.shouldRetryWithAuthParam(Request<?> request,
HttpResponse response,
AmazonServiceException ase) |
Modifier and Type | Method and Description |
---|---|
AmazonWebServiceResponse<HeadBucketResult> |
HeadBucketResultHandler.handle(HttpResponse response) |
Modifier and Type | Field and Description |
---|---|
private HttpResponse |
JsonUnmarshallerContextImpl.httpResponse |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
JsonUnmarshallerContextImpl.getHttpResponse() |
HttpResponse |
JsonUnmarshallerContext.getHttpResponse()
Returns the original HttpResponse constructed for this request.
|
Constructor and Description |
---|
JsonUnmarshallerContextImpl(com.fasterxml.jackson.core.JsonParser jsonParser,
java.util.Map<java.lang.Class<?>,Unmarshaller<?,JsonUnmarshallerContext>> mapper,
HttpResponse httpResponse) |