public class ContentMetadataBuilder extends Object
Modifier and Type | Field and 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 and Description |
---|
ContentMetadataBuilder() |
Modifier and Type | Method and 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.
use
contentMD5(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() |
protected String cacheControl
protected String contentType
protected Long contentLength
protected com.google.common.hash.HashCode contentMD5
protected String contentDisposition
protected String contentLanguage
protected String contentEncoding
protected Date expires
public static ContentMetadataBuilder create()
public ContentMetadataBuilder cacheControl(@Nullable String cacheControl)
public ContentMetadataBuilder contentLength(@Nullable Long contentLength)
@Deprecated public ContentMetadataBuilder contentMD5(@Nullable byte[] contentMD5)
contentMD5(HashCode)
instead.public ContentMetadataBuilder contentMD5(@Nullable com.google.common.hash.HashCode contentMD5)
public ContentMetadataBuilder contentType(@Nullable String contentType)
public ContentMetadataBuilder contentDisposition(@Nullable String contentDisposition)
public ContentMetadataBuilder contentLanguage(@Nullable String contentLanguage)
public ContentMetadataBuilder contentEncoding(@Nullable String contentEncoding)
public ContentMetadataBuilder expires(@Nullable Date expires)
public ContentMetadata build()
public static ContentMetadataBuilder fromContentMetadata(ContentMetadata in)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.