public abstract class UploadPayload
extends java.lang.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(java.lang.Long segmentationSize)
Sets up the plan to upload the payload in segments
|
abstract boolean |
mustBeSegmented(java.lang.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(java.lang.Long segmentationSize)
segmentationSize - size to check the current payload size againstpublic abstract Etag getEtag() throws java.io.IOException
java.io.IOException - when DigestUtils.md5Hex failspublic abstract SegmentationPlan getSegmentationPlan(java.lang.Long segmentationSize) throws java.io.IOException
segmentationSize - the size of an individual segmentjava.io.IOException - when the segmentation plan cannot be drawn upCopyright © 2012-2020 42 BV. All Rights Reserved.