public class BaseMutableContentMetadata extends ContentMetadataBuilder implements MutableContentMetadata
contentDisposition, contentEncoding, contentLanguage, contentLength, contentMD5, contentType, expiresHTTP_HEADERS, RFC1123_DATE_PATTERN| Constructor and Description |
|---|
BaseMutableContentMetadata() |
| Modifier and Type | Method and Description |
|---|---|
static BaseMutableContentMetadata |
fromContentMetadata(ContentMetadata in) |
String |
getContentDisposition()
Specifies presentational information for the object.
|
String |
getContentEncoding()
Specifies what content encodings have been applied to the object and thus what decoding
mechanisms must be applied in order to obtain the media-type referenced by the Content-Type
header field.
|
String |
getContentLanguage()
Get Content Language of the payload
Not all providers may support it
|
Long |
getContentLength()
Returns the total size of the payload, or the chunk that's available.
|
byte[] |
getContentMD5()
Deprecated.
use
getContentMD5AsHashCode() instead. |
com.google.common.hash.HashCode |
getContentMD5AsHashCode() |
String |
getContentType()
A standard MIME type describing the format of the contents.
|
Date |
getExpires()
Gives the date/time after which the response is considered stale.
|
void |
setContentDisposition(String contentDisposition)
Set Content Disposition of the payload
Not all providers may support it
|
void |
setContentEncoding(String contentEncoding)
Set Content Encoding of the payload
Not all providers may support it
|
void |
setContentLanguage(String contentLanguage)
Set Content Language of the payload
Not all providers may support it
|
void |
setContentLength(Long contentLength) |
void |
setContentMD5(byte[] md5)
Deprecated.
use
setContentMD5(HashCode) instead. |
void |
setContentMD5(com.google.common.hash.HashCode md5) |
void |
setContentType(String contentType) |
void |
setExpires(Date expires) |
BaseMutableContentMetadata |
toBuilder() |
build, contentDisposition, contentEncoding, contentLanguage, contentLength, contentMD5, contentMD5, contentType, create, equals, expires, hashCode, toStringpublic Long getContentLength()
org.jclouds.http.GetOptions is called with options like
tail, range, or startAt.getContentLength in interface ContentMetadata#getInput()HttpHeaders.CONTENT_LENGTH,
GetOptionspublic void setContentLength(@Nullable Long contentLength)
setContentLength in interface MutableContentMetadata@Deprecated public byte[] getContentMD5()
getContentMD5AsHashCode() instead.getContentMD5 in interface ContentMetadatapublic com.google.common.hash.HashCode getContentMD5AsHashCode()
getContentMD5AsHashCode in interface ContentMetadata@Deprecated public void setContentMD5(byte[] md5)
setContentMD5(HashCode) instead.setContentMD5 in interface MutableContentMetadatapublic void setContentMD5(com.google.common.hash.HashCode md5)
setContentMD5 in interface MutableContentMetadatapublic String getContentType()
getContentType in interface ContentMetadatapublic void setContentType(@Nullable String contentType)
setContentType in interface MutableContentMetadatapublic void setContentDisposition(@Nullable String contentDisposition)
setContentDisposition in interface MutableContentMetadatapublic String getContentDisposition()
getContentDisposition in interface ContentMetadatapublic void setContentLanguage(@Nullable String contentLanguage)
setContentLanguage in interface MutableContentMetadatapublic String getContentLanguage()
getContentLanguage in interface ContentMetadatapublic void setContentEncoding(@Nullable String contentEncoding)
setContentEncoding in interface MutableContentMetadatapublic String getContentEncoding()
getContentEncoding in interface ContentMetadatapublic void setExpires(@Nullable Date expires)
setExpires in interface MutableContentMetadatapublic Date getExpires()
getExpires in interface ContentMetadatapublic BaseMutableContentMetadata toBuilder()
toBuilder in interface ContentMetadatapublic static BaseMutableContentMetadata fromContentMetadata(ContentMetadata in)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.