public final class ResumableRequestConverter extends Object
| Modifier and Type | Method and Description |
|---|---|
static Pair<DownloadFileRequest,AsyncResponseTransformer<GetObjectResponse,GetObjectResponse>> |
toDownloadFileRequestAndTransformer(ResumableFileDownload resumableFileDownload,
HeadObjectResponse headObjectResponse,
DownloadFileRequest originalDownloadRequest)
|
public static Pair<DownloadFileRequest,AsyncResponseTransformer<GetObjectResponse,GetObjectResponse>> toDownloadFileRequestAndTransformer(ResumableFileDownload resumableFileDownload, HeadObjectResponse headObjectResponse, DownloadFileRequest originalDownloadRequest)
ResumableFileDownload to DownloadFileRequest and AsyncResponseTransformer 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.
Copyright © 2026. All rights reserved.