Class DefaultAsyncPresignedUrlExtension
java.lang.Object
software.amazon.awssdk.services.s3.internal.presignedurl.DefaultAsyncPresignedUrlExtension
- All Implemented Interfaces:
AsyncPresignedUrlExtension
@SdkInternalApi
public final class DefaultAsyncPresignedUrlExtension
extends Object
implements AsyncPresignedUrlExtension
Default implementation of
AsyncPresignedUrlExtension for executing S3 operations asynchronously using presigned URLs.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAsyncPresignedUrlExtension(AsyncClientHandler clientHandler, AwsS3ProtocolFactory protocolFactory, SdkClientConfiguration clientConfiguration, AwsProtocolMetadata protocolMetadata) -
Method Summary
Modifier and TypeMethodDescription<ReturnT> CompletableFuture<ReturnT> getObject(PresignedUrlDownloadRequest presignedUrlDownloadRequest, AsyncResponseTransformer<GetObjectResponse, ReturnT> asyncResponseTransformer) Downloads an S3 object asynchronously using a presigned URL.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.services.s3.presignedurl.AsyncPresignedUrlExtension
getObject, getObject, getObject
-
Constructor Details
-
DefaultAsyncPresignedUrlExtension
public DefaultAsyncPresignedUrlExtension(AsyncClientHandler clientHandler, AwsS3ProtocolFactory protocolFactory, SdkClientConfiguration clientConfiguration, AwsProtocolMetadata protocolMetadata)
-
-
Method Details
-
getObject
public <ReturnT> CompletableFuture<ReturnT> getObject(PresignedUrlDownloadRequest presignedUrlDownloadRequest, AsyncResponseTransformer<GetObjectResponse, ReturnT> asyncResponseTransformer) throws NoSuchKeyException, InvalidObjectStateException, AwsServiceException, SdkClientException, S3ExceptionDescription copied from interface:AsyncPresignedUrlExtensionDownloads an S3 object asynchronously using a presigned URL.
This operation uses a presigned URL to download an object from Amazon S3. The presigned URL must be valid and not expired.
To download a specific byte range of the object, use the range parameter in the request.
- Specified by:
getObjectin interfaceAsyncPresignedUrlExtension- Type Parameters:
ReturnT- The type of the transformed response- Parameters:
presignedUrlDownloadRequest- The presigned URL request containing the URL and optional parametersasyncResponseTransformer- Transforms the response to the desired return type- Returns:
- A
CompletableFuturecontaining the transformed result - Throws:
SdkClientException- If any client side error occursS3Exception- Base class for all S3 service exceptionsNoSuchKeyExceptionInvalidObjectStateExceptionAwsServiceException
-