Class MultipartDownloadUtils
java.lang.Object
software.amazon.awssdk.services.s3.internal.multipart.MultipartDownloadUtils
-
Method Summary
Modifier and TypeMethodDescriptioncompletedParts
(GetObjectRequest request) This method checks theS3MultipartExecutionAttribute.MULTIPART_DOWNLOAD_RESUME_CONTEXT
execution attributes for a context object and returns the complete parts associated with it, or an empty list of no context is found.This method checks theS3MultipartExecutionAttribute.MULTIPART_DOWNLOAD_RESUME_CONTEXT
execution attributes for a context object and returns it if it finds one.
-
Method Details
-
completedParts
This method checks theS3MultipartExecutionAttribute.MULTIPART_DOWNLOAD_RESUME_CONTEXT
execution attributes for a context object and returns the complete parts associated with it, or an empty list of no context is found.- Parameters:
request
-- Returns:
- The list of completed parts for a GetObjectRequest, or an empty list if none were found.
-
multipartDownloadResumeContext
public static Optional<MultipartDownloadResumeContext> multipartDownloadResumeContext(GetObjectRequest request) This method checks theS3MultipartExecutionAttribute.MULTIPART_DOWNLOAD_RESUME_CONTEXT
execution attributes for a context object and returns it if it finds one. Otherwise, returns an empty Optional.- Parameters:
request
- the request to look for execution attributes- Returns:
- the MultipartDownloadResumeContext if one is found, otherwise an empty Optional.
-