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