org.jclouds.azureblob.blobstore
Class AzureBlobRequestSigner

java.lang.Object
  extended by org.jclouds.azureblob.blobstore.AzureBlobRequestSigner
All Implemented Interfaces:
BlobRequestSigner

@Singleton
public class AzureBlobRequestSigner
extends Object
implements BlobRequestSigner

Author:
Adrian Cole

Constructor Summary
AzureBlobRequestSigner(RestAnnotationProcessor<AzureBlobAsyncClient> processor, BlobToAzureBlob blobToBlob, BlobToHttpGetOptions blob2HttpGetOptions)
           
 
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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AzureBlobRequestSigner

@Inject
public AzureBlobRequestSigner(RestAnnotationProcessor<AzureBlobAsyncClient> processor,
                                     BlobToAzureBlob blobToBlob,
                                     BlobToHttpGetOptions blob2HttpGetOptions)
                       throws SecurityException,
                              NoSuchMethodException
Throws:
SecurityException
NoSuchMethodException
Method Detail

signGetBlob

public HttpRequest signGetBlob(String container,
                               String name)
Description copied from interface: BlobRequestSigner
gets a signed request, including headers as necessary, to access a blob from an external client.

Specified by:
signGetBlob in interface BlobRequestSigner
Parameters:
container - container where the blob resides

signPutBlob

public HttpRequest signPutBlob(String container,
                               Blob blob)
Description copied from interface: BlobRequestSigner
gets a signed request, including headers as necessary, to upload a blob from an external client.
 Blob blob = context.getBlobStore.blobBuilder().name("name").forSigning().contentType("text/plain")
          .contentLength(length).build();
 

Specified by:
signPutBlob in interface BlobRequestSigner
Parameters:
container - container where the blob resides
blob - what to upload
See Also:
BlobBuilder.forSigning()

signRemoveBlob

public HttpRequest signRemoveBlob(String container,
                                  String name)
Description copied from interface: BlobRequestSigner
gets a signed request, including headers as necessary, to delete a blob from an external client.

Specified by:
signRemoveBlob in interface BlobRequestSigner
Parameters:
container - container where the blob resides

signGetBlob

public HttpRequest signGetBlob(String container,
                               String name,
                               GetOptions options)
Specified by:
signGetBlob in interface BlobRequestSigner
See Also:
BlobRequestSigner.signGetBlob(String, String)


Copyright © 2009-2012 jclouds. All Rights Reserved.