Package | Description |
---|---|
com.amazonaws.http | |
com.amazonaws.protocol.json | |
com.amazonaws.retry | |
com.amazonaws.retry.internal | |
com.amazonaws.transform | |
com.amazonaws.waiters |
Modifier and Type | Method and Description |
---|---|
AmazonServiceException |
DefaultErrorResponseHandler.handle(HttpResponse errorResponse) |
AmazonServiceException |
JsonErrorResponseHandler.handle(HttpResponse response) |
Modifier and Type | Method and Description |
---|---|
<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) |
Constructor and Description |
---|
DefaultErrorResponseHandler(List<Unmarshaller<AmazonServiceException,Node>> unmarshallerList)
Constructs a new DefaultErrorResponseHandler that will handle error responses from Amazon
services using the specified list of unmarshallers.
|
Modifier and Type | Method and Description |
---|---|
HttpResponseHandler<AmazonServiceException> |
SdkJsonProtocolFactory.createErrorResponseHandler(JsonErrorResponseMetadata errorResponsMetadata)
Creates a response handler for handling a error response (non 2xx response).
|
Modifier and Type | Method and Description |
---|---|
static boolean |
RetryUtils.isClockSkewError(AmazonServiceException exception)
Returns true if the specified exception is definitely a clock skew error.
|
static boolean |
RetryUtils.isRequestEntityTooLargeException(AmazonServiceException exception)
Returns true if the specified exception is a request entity too large error.
|
static boolean |
RetryUtils.isRetryableServiceException(AmazonServiceException exception)
Returns true if the specified exception is a retryable service side exception.
|
static boolean |
RetryUtils.isThrottlingException(AmazonServiceException exception)
Returns true if the specified exception is a throttling error.
|
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 | Field and Description |
---|---|
protected Class<? extends AmazonServiceException> |
AbstractErrorUnmarshaller.exceptionClass
The type of AmazonServiceException that will be instantiated.
|
Modifier and Type | Method and Description |
---|---|
protected AmazonServiceException |
AbstractErrorUnmarshaller.newException(String message)
Constructs a new exception object of the type specified in this class's
constructor and sets the specified error message.
|
AmazonServiceException |
JsonErrorUnmarshaller.unmarshall(com.fasterxml.jackson.databind.JsonNode jsonContent) |
AmazonServiceException |
LegacyErrorUnmarshaller.unmarshall(Node in) |
AmazonServiceException |
StandardErrorUnmarshaller.unmarshall(Node in) |
abstract AmazonServiceException |
EnhancedJsonErrorUnmarshaller.unmarshallFromContext(JsonUnmarshallerContext context) |
Constructor and Description |
---|
AbstractErrorUnmarshaller(Class<? extends AmazonServiceException> exceptionClass)
Constructs a new error unmarshaller that will unmarshall error responses
into objects of the specified class, extending AmazonServiceException.
|
EnhancedJsonErrorUnmarshaller(Class<? extends AmazonServiceException> exceptionClass,
String handledErrorCode) |
JsonErrorUnmarshaller(Class<? extends AmazonServiceException> exceptionClass,
String handledErrorCode) |
LegacyErrorUnmarshaller(Class<? extends AmazonServiceException> exceptionClass)
Constructor allowing subclasses to specify a specific type of
AmazonServiceException to instantiating when populating the exception
object with data from the AWS error response.
|
StandardErrorUnmarshaller(Class<? extends AmazonServiceException> exceptionClass)
Constructor allowing subclasses to specify a specific type of
AmazonServiceException to instantiating when populating the exception
object with data from the error message.
|
Modifier and Type | Method and Description |
---|---|
boolean |
WaiterAcceptor.matches(AmazonServiceException output)
Default method definition that matches the exception
with the expected state defined by the acceptor.
|
boolean |
HttpFailureStatusAcceptor.matches(AmazonServiceException ase) |
Modifier and Type | Method and Description |
---|---|
boolean |
WaiterExecution.pollResource()
Polls until a specified resource transitions into either success or failure state or
until the specified number of retries has been made.
|
void |
WaiterImpl.run(WaiterParameters<Input> waiterParameters)
Polls synchronously until it is determined that the resource
transitioned into the desired state or not.
|
void |
Waiter.run(WaiterParameters<Input> waiterParameters)
Polls synchronously until it is determined that the resource
transitioned into the desired state or not.
|
Future<Void> |
WaiterImpl.runAsync(WaiterParameters<Input> waiterParameters,
WaiterHandler callback)
Polls asynchronously until it is determined that the resource
transitioned into the desired state or not.
|
Future<Void> |
Waiter.runAsync(WaiterParameters<Input> waiterParameters,
WaiterHandler callback)
Polls asynchronously until it is determined that the resource
transitioned into the desired state or not.
|
Copyright © 2022. All rights reserved.