Package org.jclouds.io
Class ContentMetadataBuilder
- java.lang.Object
-
- org.jclouds.io.ContentMetadataBuilder
-
- Direct Known Subclasses:
BaseMutableContentMetadata
public class ContentMetadataBuilder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected String
cacheControl
protected String
contentDisposition
protected String
contentEncoding
protected String
contentLanguage
protected Long
contentLength
protected com.google.common.hash.HashCode
contentMD5
protected String
contentType
protected Date
expires
-
Constructor Summary
Constructors Constructor Description ContentMetadataBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ContentMetadata
build()
ContentMetadataBuilder
cacheControl(String cacheControl)
ContentMetadataBuilder
contentDisposition(String contentDisposition)
ContentMetadataBuilder
contentEncoding(String contentEncoding)
ContentMetadataBuilder
contentLanguage(String contentLanguage)
ContentMetadataBuilder
contentLength(Long contentLength)
ContentMetadataBuilder
contentMD5(byte[] contentMD5)
Deprecated.usecontentMD5(HashCode)
instead.ContentMetadataBuilder
contentMD5(com.google.common.hash.HashCode contentMD5)
ContentMetadataBuilder
contentType(String contentType)
static ContentMetadataBuilder
create()
boolean
equals(Object obj)
ContentMetadataBuilder
expires(Date expires)
static ContentMetadataBuilder
fromContentMetadata(ContentMetadata in)
int
hashCode()
String
toString()
-
-
-
Field Detail
-
cacheControl
protected String cacheControl
-
contentType
protected String contentType
-
contentLength
protected Long contentLength
-
contentMD5
protected com.google.common.hash.HashCode contentMD5
-
contentDisposition
protected String contentDisposition
-
contentLanguage
protected String contentLanguage
-
contentEncoding
protected String contentEncoding
-
expires
protected Date expires
-
-
Method Detail
-
create
public static ContentMetadataBuilder create()
-
cacheControl
public ContentMetadataBuilder cacheControl(@Nullable String cacheControl)
-
contentLength
public ContentMetadataBuilder contentLength(@Nullable Long contentLength)
-
contentMD5
@Deprecated public ContentMetadataBuilder contentMD5(@Nullable byte[] contentMD5)
Deprecated.usecontentMD5(HashCode)
instead.
-
contentMD5
public ContentMetadataBuilder contentMD5(@Nullable com.google.common.hash.HashCode contentMD5)
-
contentType
public ContentMetadataBuilder contentType(@Nullable String contentType)
-
contentDisposition
public ContentMetadataBuilder contentDisposition(@Nullable String contentDisposition)
-
contentLanguage
public ContentMetadataBuilder contentLanguage(@Nullable String contentLanguage)
-
contentEncoding
public ContentMetadataBuilder contentEncoding(@Nullable String contentEncoding)
-
expires
public ContentMetadataBuilder expires(@Nullable Date expires)
-
build
public ContentMetadata build()
-
fromContentMetadata
public static ContentMetadataBuilder fromContentMetadata(ContentMetadata in)
-
-