@Singleton public class AtmosBlobRequestSigner extends Object implements BlobRequestSigner
Constructor and Description |
---|
AtmosBlobRequestSigner(RestAnnotationProcessor<AtmosAsyncClient> processor,
BlobToObject blobToObject,
BlobToHttpGetOptions blob2ObjectGetOptions) |
Modifier and Type | Method and Description |
---|---|
HttpRequest |
signGetBlob(String container,
String name)
gets a signed request, including headers as necessary, to access a blob from an external
client.
|
HttpRequest |
signGetBlob(String container,
String name,
GetOptions options) |
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.
|
@Inject public AtmosBlobRequestSigner(RestAnnotationProcessor<AtmosAsyncClient> processor, BlobToObject blobToObject, BlobToHttpGetOptions blob2ObjectGetOptions) throws SecurityException, NoSuchMethodException
public HttpRequest signGetBlob(String container, String name)
BlobRequestSigner
signGetBlob
in interface BlobRequestSigner
container
- container where the blob residespublic HttpRequest signPutBlob(String container, Blob blob)
BlobRequestSigner
Blob blob = context.getBlobStore.blobBuilder().name("name").forSigning().contentType("text/plain") .contentLength(length).build();
signPutBlob
in interface BlobRequestSigner
container
- container where the blob residesblob
- what to uploadBlobBuilder.forSigning()
public HttpRequest signRemoveBlob(String container, String name)
BlobRequestSigner
signRemoveBlob
in interface BlobRequestSigner
container
- container where the blob residespublic HttpRequest signGetBlob(String container, String name, GetOptions options)
signGetBlob
in interface BlobRequestSigner
BlobRequestSigner.signGetBlob(String, String)
Copyright © 2009-2012 jclouds. All Rights Reserved.