Class MultipartDownloadUtils
- java.lang.Object
-
- software.amazon.awssdk.services.s3.internal.multipart.MultipartDownloadUtils
-
public final class MultipartDownloadUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Integer>
completedParts(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.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.
-
-
-
Method Detail
-
completedParts
public static List<Integer> completedParts(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.- 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.
-
-