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 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: AsyncPresignedUrlExtension

      Downloads 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:
      getObject in interface AsyncPresignedUrlExtension
      Type Parameters:
      ReturnT - The type of the transformed response
      Parameters:
      presignedUrlDownloadRequest - The presigned URL request containing the URL and optional parameters
      asyncResponseTransformer - Transforms the response to the desired return type
      Returns:
      A CompletableFuture containing the transformed result