public class UploadFilePartByUrlHeaders extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
UploadFilePartByUrlHeaders.Builder |
| Modifier and Type | Field and Description |
|---|---|
String |
contentRange
The byte range of the chunk.
|
String |
digest
The [RFC3230][1] message digest of the chunk uploaded.
|
Map<String,String> |
extraHeaders
Extra headers that will be included in the HTTP request.
|
| Modifier | Constructor and Description |
|---|---|
|
UploadFilePartByUrlHeaders(String digest,
String contentRange) |
protected |
UploadFilePartByUrlHeaders(UploadFilePartByUrlHeaders.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentRange() |
String |
getDigest() |
Map<String,String> |
getExtraHeaders() |
public final String digest
Only SHA1 is supported. The SHA1 digest must be base64 encoded. The format of this header is as `sha=BASE64_ENCODED_DIGEST`.
To get the value for the `SHA` digest, use the openSSL command to encode the file part: `openssl sha1 -binary <FILE_PART_NAME> | base64`.
[1]: https://tools.ietf.org/html/rfc3230
public final String contentRange
Must not overlap with the range of a part already uploaded this session. Each part’s size must be exactly equal in size to the part size specified in the upload session that you created. One exception is the last part of the file, as this can be smaller.
When providing the value for `content-range`, remember that:
* The lower bound of each part's byte range must be a multiple of the part size. * The higher bound must be a multiple of the part size - 1.
public Map<String,String> extraHeaders
public UploadFilePartByUrlHeaders(String digest, String contentRange)
protected UploadFilePartByUrlHeaders(UploadFilePartByUrlHeaders.Builder builder)
public String getContentRange()
public Map<String,String> getExtraHeaders()