Modifier and Type | Method and Description |
---|---|
HttpResponseHandler<? extends SdkBaseException> |
ClientExecutionParams.getErrorResponseHandler() |
HttpResponseHandler<Output> |
ClientExecutionParams.getResponseHandler() |
Modifier and Type | Method and Description |
---|---|
ClientExecutionParams<Input,Output> |
ClientExecutionParams.withErrorResponseHandler(HttpResponseHandler<? extends SdkBaseException> errorResponseHandler) |
ClientExecutionParams<Input,Output> |
ClientExecutionParams.withResponseHandler(HttpResponseHandler<Output> responseHandler) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultErrorResponseHandler
Implementation of HttpResponseHandler that handles only error responses from Amazon Web Services.
|
class |
JsonErrorResponseHandler |
class |
JsonResponseHandler<T>
Default implementation of HttpResponseHandler that handles a successful response from an AWS
service and unmarshalls the result using a JSON unmarshaller.
|
class |
StaxResponseHandler<T>
Default implementation of HttpResponseHandler that handles a successful
response from an AWS service and unmarshalls the result using a StAX
unmarshaller.
|
Modifier and Type | Method and Description |
---|---|
AmazonHttpClient.RequestExecutionBuilder |
AmazonHttpClient.RequestExecutionBuilder.errorResponseHandler(HttpResponseHandler<? extends SdkBaseException> errorResponseHandler)
Fluent setter for the error response handler
|
<Output> Response<Output> |
AmazonHttpClient.RequestExecutionBuilder.execute(HttpResponseHandler<Output> responseHandler)
Executes the request with the given configuration.
|
<T> Response<T> |
AmazonHttpClient.execute(Request<?> request,
HttpResponseHandler<AmazonWebServiceResponse<T>> responseHandler,
HttpResponseHandler<AmazonServiceException> errorResponseHandler,
ExecutionContext executionContext)
Deprecated.
Use
AmazonHttpClient.requestExecutionBuilder() to configure and execute a HTTP request. |
<T> Response<T> |
AmazonHttpClient.execute(Request<?> request,
HttpResponseHandler<AmazonWebServiceResponse<T>> responseHandler,
HttpResponseHandler<AmazonServiceException> errorResponseHandler,
ExecutionContext executionContext)
Deprecated.
Use
AmazonHttpClient.requestExecutionBuilder() to configure and execute a HTTP request. |
<T> Response<T> |
AmazonHttpClient.execute(Request<?> request,
HttpResponseHandler<AmazonWebServiceResponse<T>> responseHandler,
HttpResponseHandler<AmazonServiceException> errorResponseHandler,
ExecutionContext executionContext,
RequestConfig requestConfig) |
<T> Response<T> |
AmazonHttpClient.execute(Request<?> request,
HttpResponseHandler<AmazonWebServiceResponse<T>> responseHandler,
HttpResponseHandler<AmazonServiceException> errorResponseHandler,
ExecutionContext executionContext,
RequestConfig requestConfig) |
Modifier and Type | Class and Description |
---|---|
class |
AwsResponseHandlerAdapter<T>
Adapts an
< AmazonWebServiceResponse to an HttpResponseHandler (unwrapped result) with proper handling and logging of response
metadata. |
Constructor and Description |
---|
AwsResponseHandlerAdapter(HttpResponseHandler<AmazonWebServiceResponse<T>> delegate,
Request<?> request,
AWSRequestMetrics awsRequestMetrics,
MetadataCache responseMetadataCache) |
Modifier and Type | Method and Description |
---|---|
HttpResponseHandler<AmazonServiceException> |
SdkJsonProtocolFactory.createErrorResponseHandler(JsonErrorResponseMetadata errorResponsMetadata)
Creates a response handler for handling a error response (non 2xx response).
|
<T> HttpResponseHandler<AmazonWebServiceResponse<T>> |
SdkJsonProtocolFactory.createResponseHandler(JsonOperationMetadata operationMetadata,
com.ibm.cloud.objectstorage.transform.Unmarshaller<T,com.ibm.cloud.objectstorage.transform.JsonUnmarshallerContext> responseUnmarshaller)
Returns the response handler to be used for handling a successful response.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractS3ResponseHandler<T>
Abstract HTTP response handler for Amazon S3 responses.
|
class |
ResponseHeaderHandlerChain<T>
An XML response handler that can also process an arbitrary number of headers
in the response.
|
class |
S3ErrorResponseHandler
Response handler for S3 error responses.
|
class |
S3MetadataResponseHandler
S3 response handler that knows how to pull S3 object metadata out of a
response and unmarshall it into an S3ObjectMetadata object.
|
class |
S3ObjectResponseHandler
S3 HTTP response handler that knows how to pull S3 object content and
metadata out of an HTTP response and unmarshall it into an S3Object object.
|
class |
S3StringResponseHandler
Custom S3 response handler for responses that simply contain text data that
doesn't need to be parsed as XML.
|
class |
S3XmlResponseHandler<T>
S3 Implementation of HttpResponseHandler.
|
Copyright © 2024. All rights reserved.