public class BlobBuilderImpl.PayloadBlobBuilderImpl extends Object implements BlobBuilder.PayloadBlobBuilder
BlobBuilder.PayloadBlobBuilder
Constructor and Description |
---|
BlobBuilderImpl.PayloadBlobBuilderImpl(BlobBuilder builder,
Payload payload,
Crypto crypto) |
public BlobBuilderImpl.PayloadBlobBuilderImpl(BlobBuilder builder, Payload payload, Crypto crypto)
public BlobBuilder name(String name)
name
in interface BlobBuilder
name
- The name of the Blob
. Typically refers to an http path.public BlobBuilder type(StorageType type)
type
in interface BlobBuilder
type
- overrides default type of StorageType.BLOB
public BlobBuilder userMetadata(Map<String,String> userMetadata)
userMetadata
in interface BlobBuilder
userMetadata
- User defined metadata associated with this Blob
.public BlobBuilder.PayloadBlobBuilder payload(Payload payload)
payload
in interface BlobBuilder
payload
- payload you wish to construct the Blob
with.public BlobBuilder.PayloadBlobBuilder calculateMD5() throws IOException
calculateMD5
in interface BlobBuilder.PayloadBlobBuilder
IOException
Payloads.calculateMD5(org.jclouds.io.Payload, java.security.MessageDigest)
public BlobBuilder.PayloadBlobBuilder payload(InputStream payload)
payload
in interface BlobBuilder
payload
- payload you wish to construct the Blob
with.public BlobBuilder.PayloadBlobBuilder payload(byte[] payload)
payload
in interface BlobBuilder
payload
- payload you wish to construct the Blob
with.public BlobBuilder.PayloadBlobBuilder payload(String payload)
payload
in interface BlobBuilder
payload
- payload you wish to construct the Blob
with.public BlobBuilder.PayloadBlobBuilder payload(File payload)
payload
in interface BlobBuilder
payload
- payload you wish to construct the Blob
with.public Blob build()
BlobBuilder
build
in interface BlobBuilder
public BlobBuilder.PayloadBlobBuilder contentLength(long contentLength)
contentLength
in interface BlobBuilder.PayloadBlobBuilder
public BlobBuilder.PayloadBlobBuilder contentMD5(byte[] md5)
contentMD5
in interface BlobBuilder.PayloadBlobBuilder
public BlobBuilder.PayloadBlobBuilder contentType(String contentType)
contentType
in interface BlobBuilder.PayloadBlobBuilder
public BlobBuilder.PayloadBlobBuilder contentDisposition(String contentDisposition)
contentDisposition
in interface BlobBuilder.PayloadBlobBuilder
public BlobBuilder.PayloadBlobBuilder contentLanguage(String contentLanguage)
contentLanguage
in interface BlobBuilder.PayloadBlobBuilder
public BlobBuilder.PayloadBlobBuilder contentEncoding(String contentEncoding)
contentEncoding
in interface BlobBuilder.PayloadBlobBuilder
public BlobBuilder.PayloadBlobBuilder forSigning()
BlobBuilder
BlobRequestSigner
forSigning
in interface BlobBuilder
Copyright © 2009-2012 jclouds. All Rights Reserved.