Class MultipartAsyncPresignedUrlExtension
java.lang.Object
software.amazon.awssdk.services.s3.internal.multipart.MultipartAsyncPresignedUrlExtension
- All Implemented Interfaces:
AsyncPresignedUrlExtension
@SdkInternalApi
public class MultipartAsyncPresignedUrlExtension
extends Object
implements AsyncPresignedUrlExtension
An
AsyncPresignedUrlExtension that automatically converts presigned URL downloads
to multipart downloads.-
Constructor Summary
ConstructorsConstructorDescriptionMultipartAsyncPresignedUrlExtension(S3AsyncClient s3AsyncClient, AsyncPresignedUrlExtension asyncPresignedUrlExtension, long bufferSizeInBytes, long partSizeInBytes) -
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
-
MultipartAsyncPresignedUrlExtension
public MultipartAsyncPresignedUrlExtension(S3AsyncClient s3AsyncClient, AsyncPresignedUrlExtension asyncPresignedUrlExtension, long bufferSizeInBytes, long partSizeInBytes)
-
-
Method Details
-
getObject
public <ReturnT> CompletableFuture<ReturnT> getObject(PresignedUrlDownloadRequest presignedUrlDownloadRequest, AsyncResponseTransformer<GetObjectResponse, ReturnT> asyncResponseTransformer) Description 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
-