Class ResumableRequestConverter
java.lang.Object
software.amazon.awssdk.transfer.s3.internal.utils.ResumableRequestConverter
-
Method Summary
Modifier and TypeMethodDescriptiontoDownloadFileRequestAndTransformer
(ResumableFileDownload resumableFileDownload, HeadObjectResponse headObjectResponse, DownloadFileRequest originalDownloadRequest)
-
Method Details
-
toDownloadFileRequestAndTransformer
public static Pair<DownloadFileRequest,AsyncResponseTransformer<GetObjectResponse, toDownloadFileRequestAndTransformerGetObjectResponse>> (ResumableFileDownload resumableFileDownload, HeadObjectResponse headObjectResponse, DownloadFileRequest originalDownloadRequest) Converts aResumableFileDownload
toDownloadFileRequest
andAsyncResponseTransformer
pair.If before resuming the download the file on disk was modified, or the s3 object was modified, we need to restart the download from the beginning.
If the original requests has some individual parts downloaded, we need to make a multipart GET for the remaining parts.
Else, we need to make a ranged GET for the remaining bytes.
-