public class UploadPayloadByteArray extends UploadPayload
| Constructor and Description |
|---|
UploadPayloadByteArray(byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.HttpEntity |
getEntity()
Returns the payload as an HttpEntity, so it can be uploaded to the ObjectStore
|
Etag |
getEtag()
Returns the MD5 hash value in an Etag header
|
SegmentationPlan |
getSegmentationPlan(Long segmentationSize)
Sets up the plan to upload the payload in segments
|
boolean |
mustBeSegmented(Long segmentationSize)
Checks whether the payload must be segmented into two or more separate objects to circumvent
the max object size
|
public org.apache.http.HttpEntity getEntity()
UploadPayloadgetEntity in class UploadPayloadpublic boolean mustBeSegmented(Long segmentationSize)
UploadPayloadmustBeSegmented in class UploadPayloadsegmentationSize - size to check the current payload size againstpublic Etag getEtag() throws IOException
UploadPayloadgetEtag in class UploadPayloadIOException - when DigestUtils.md5Hex failspublic SegmentationPlan getSegmentationPlan(Long segmentationSize) throws IOException
UploadPayloadgetSegmentationPlan in class UploadPayloadsegmentationSize - the size of an individual segmentIOException - when the segmentation plan cannot be drawn upCopyright © 2012-2017 42 BV. All Rights Reserved.