org.jclouds.blobstore
Interface BlobRequestSigner

All Known Implementing Classes:
AtmosBlobRequestSigner, AzureBlobRequestSigner, RequestSigningUnsupported, S3BlobRequestSigner, SwiftBlobRequestSigner, TransientBlobRequestSigner

public interface BlobRequestSigner

Generates signed requests for blobs. useful in other tools such as backup utilities.

Author:
Adrian Cole

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.
 

Method Detail

signGetBlob

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

Parameters:
container - container where the blob resides
directory - full path to the blob
Throws:
UnsupportedOperationException - if not supported by the provider

signGetBlob

HttpRequest signGetBlob(String container,
                        String name,
                        GetOptions options)
Parameters:
options -
See Also:
signGetBlob(String, String)

signRemoveBlob

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

Parameters:
container - container where the blob resides
directory - full path to the blob
Throws:
UnsupportedOperationException - if not supported by the provider

signPutBlob

HttpRequest signPutBlob(String container,
                        Blob blob)
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();
 

Parameters:
container - container where the blob resides
blob - what to upload
Throws:
UnsupportedOperationException - if not supported by the provider
See Also:
BlobBuilder.forSigning()


Copyright © 2009-2011 jclouds. All Rights Reserved.