Class ResumableRequestConverter
- java.lang.Object
-
- software.amazon.awssdk.transfer.s3.internal.utils.ResumableRequestConverter
-
public final class ResumableRequestConverter extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Pair<DownloadFileRequest,AsyncResponseTransformer<GetObjectResponse,GetObjectResponse>>
toDownloadFileRequestAndTransformer(ResumableFileDownload resumableFileDownload, HeadObjectResponse headObjectResponse, DownloadFileRequest originalDownloadRequest)
-
-
-
Method Detail
-
toDownloadFileRequestAndTransformer
public static Pair<DownloadFileRequest,AsyncResponseTransformer<GetObjectResponse,GetObjectResponse>> toDownloadFileRequestAndTransformer(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.
-
-