|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BlobRequestSigner
Generates signed requests for blobs. useful in other tools such as backup utilities.
| Method Summary | |
|---|---|
HttpRequest |
signGetBlob(String container,
String name)
gets a signed request, including headers as necessary, to access a blob from an external client. |
HttpRequest |
signPutBlob(String container,
Blob blob)
gets a signed request, including headers as necessary, to upload a blob from an external client. |
HttpRequest |
signRemoveBlob(String container,
String name)
gets a signed request, including headers as necessary, to delete a blob from an external client. |
| Method Detail |
|---|
HttpRequest signGetBlob(String container,
String name)
container - container where the blob residesdirectory - full path to the blob
UnsupportedOperationException - if not supported by the provider
HttpRequest signRemoveBlob(String container,
String name)
container - container where the blob residesdirectory - full path to the blob
UnsupportedOperationException - if not supported by the provider
HttpRequest signPutBlob(String container,
Blob blob)
Blob blob = context.getBlobStore.newBlob();
blob.getMetadata().setName("name");
blob.setPayload(new PhantomPayload(length, md5));
blob.getPayload().setContentType("text/plain");
container - container where the blob residesblob - what to upload
UnsupportedOperationException - if not supported by the providerPhantomPayload
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||