org.jclouds.blobstore.domain
Interface BlobBuilder

All Known Subinterfaces:
BlobBuilder.PayloadBlobBuilder
All Known Implementing Classes:
BlobBuilderImpl, BlobBuilderImpl.PayloadBlobBuilderImpl

public interface BlobBuilder

In case the name was confusing, this indeed builds a Blob.

Author:
Adrian Cole

Nested Class Summary
static interface BlobBuilder.PayloadBlobBuilder
           
 
Method Summary
 Blob build()
          This makes a blob from the currently configured parameters.
 BlobBuilder.PayloadBlobBuilder forSigning()
          If you are creating a blob only for signing, use this.
 BlobBuilder name(String name)
           
 BlobBuilder.PayloadBlobBuilder payload(byte[] payload)
           
 BlobBuilder.PayloadBlobBuilder payload(File payload)
           
 BlobBuilder.PayloadBlobBuilder payload(InputStream payload)
           
 BlobBuilder.PayloadBlobBuilder payload(Payload payload)
           
 BlobBuilder.PayloadBlobBuilder payload(String payload)
           
 BlobBuilder type(StorageType type)
           
 BlobBuilder userMetadata(Map<String,String> userMetadata)
           
 

Method Detail

name

BlobBuilder name(String name)
Parameters:
name - The name of the Blob. Typically refers to an http path.

type

BlobBuilder type(StorageType type)
Parameters:
type - overrides default type of StorageType.BLOB

userMetadata

BlobBuilder userMetadata(Map<String,String> userMetadata)
Parameters:
userMetadata - User defined metadata associated with this Blob.

payload

BlobBuilder.PayloadBlobBuilder payload(Payload payload)
Parameters:
payload - payload you wish to construct the Blob with.

payload

BlobBuilder.PayloadBlobBuilder payload(InputStream payload)
Parameters:
payload - payload you wish to construct the Blob with.

forSigning

BlobBuilder.PayloadBlobBuilder forSigning()
If you are creating a blob only for signing, use this. BlobRequestSigner


payload

BlobBuilder.PayloadBlobBuilder payload(byte[] payload)
Parameters:
payload - payload you wish to construct the Blob with.

payload

BlobBuilder.PayloadBlobBuilder payload(String payload)
Parameters:
payload - payload you wish to construct the Blob with.

payload

BlobBuilder.PayloadBlobBuilder payload(File payload)
Parameters:
payload - payload you wish to construct the Blob with.

build

Blob build()
This makes a blob from the currently configured parameters.

Returns:
a new blob from the current parameters


Copyright © 2009-2011 jclouds. All Rights Reserved.