public interface ExternalPayloadStorage
| Modifier and Type | Interface and Description |
|---|---|
static class |
ExternalPayloadStorage.Operation |
static class |
ExternalPayloadStorage.PayloadType |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
download(java.lang.String path)
Download the json payload from the specified external storage location.
|
ExternalStorageLocation |
getLocation(ExternalPayloadStorage.Operation operation,
ExternalPayloadStorage.PayloadType payloadType,
java.lang.String path)
Obtain a uri used to store/access a json payload in external storage.
|
void |
upload(java.lang.String path,
java.io.InputStream payload,
long payloadSize)
Upload a json payload to the specified external storage location.
|
ExternalStorageLocation getLocation(ExternalPayloadStorage.Operation operation, ExternalPayloadStorage.PayloadType payloadType, java.lang.String path)
operation - the type of ExternalPayloadStorage.Operation to be performed with the uripayloadType - the ExternalPayloadStorage.PayloadType that is being accessed at the uripath - (optional) the relative path for which the external storage location object is to be populated.
If path is not specified, it will be computed and populated.ExternalStorageLocation object which contains the uri and the path for the json payloadvoid upload(java.lang.String path,
java.io.InputStream payload,
long payloadSize)
path - the location to which the object is to be uploadedpayload - an InputStream containing the json payload which is to be uploadedpayloadSize - the size of the json payload in bytesjava.io.InputStream download(java.lang.String path)
path - the location from where the object is to be downloadedInputStream of the json payload at the specified location