Class CrossRegionUtils
- java.lang.Object
-
- software.amazon.awssdk.services.s3.internal.crossregion.utils.CrossRegionUtils
-
public final class CrossRegionUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
AMZ_BUCKET_REGION_HEADER
static String
ILLEGAL_LOCATION_CONSTRAINT_EXCEPTION_ERROR_CODE
static int
REDIRECT_STATUS_CODE
static int
TEMPORARY_REDIRECT_STATUS_CODE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<String>
getBucketRegionFromException(S3Exception exception)
static boolean
isS3RedirectException(Throwable exception)
static <T extends S3Request>
TrequestWithDecoratedEndpointProvider(T request, Supplier<Region> regionSupplier, EndpointProvider clientEndpointProvider)
static <T extends S3Request>
AwsRequestOverrideConfigurationupdateUserAgentInConfig(T request)
-
-
-
Field Detail
-
REDIRECT_STATUS_CODE
public static final int REDIRECT_STATUS_CODE
- See Also:
- Constant Field Values
-
TEMPORARY_REDIRECT_STATUS_CODE
public static final int TEMPORARY_REDIRECT_STATUS_CODE
- See Also:
- Constant Field Values
-
ILLEGAL_LOCATION_CONSTRAINT_EXCEPTION_ERROR_CODE
public static final String ILLEGAL_LOCATION_CONSTRAINT_EXCEPTION_ERROR_CODE
- See Also:
- Constant Field Values
-
AMZ_BUCKET_REGION_HEADER
public static final String AMZ_BUCKET_REGION_HEADER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBucketRegionFromException
public static Optional<String> getBucketRegionFromException(S3Exception exception)
-
isS3RedirectException
public static boolean isS3RedirectException(Throwable exception)
-
requestWithDecoratedEndpointProvider
public static <T extends S3Request> T requestWithDecoratedEndpointProvider(T request, Supplier<Region> regionSupplier, EndpointProvider clientEndpointProvider)
-
updateUserAgentInConfig
public static <T extends S3Request> AwsRequestOverrideConfiguration updateUserAgentInConfig(T request)
-
-