public class BaseImmutableContentMetadata extends Object implements ContentMetadata
Modifier and Type | Field and Description |
---|---|
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 |
HTTP_HEADERS, RFC1123_DATE_PATTERN
Constructor and Description |
---|
BaseImmutableContentMetadata(String contentType,
Long contentLength,
byte[] contentMD5,
String contentDisposition,
String contentLanguage,
String contentEncoding,
Date expires) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
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.
|
int |
hashCode() |
ContentMetadataBuilder |
toBuilder() |
String |
toString() |
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 Long getContentLength()
org.jclouds.http.GetOptions
is called with options like
tail, range, or startAt.getContentLength
in interface ContentMetadata
#getInput()
HttpHeaders.CONTENT_LENGTH
,
GetOptions
@Deprecated public byte[] getContentMD5()
getContentMD5AsHashCode()
instead.getContentMD5
in interface ContentMetadata
public com.google.common.hash.HashCode getContentMD5AsHashCode()
getContentMD5AsHashCode
in interface ContentMetadata
public String getContentType()
getContentType
in interface ContentMetadata
public String getContentDisposition()
getContentDisposition
in interface ContentMetadata
public String getContentLanguage()
getContentLanguage
in interface ContentMetadata
public String getContentEncoding()
getContentEncoding
in interface ContentMetadata
public Date getExpires()
getExpires
in interface ContentMetadata
public ContentMetadataBuilder toBuilder()
toBuilder
in interface ContentMetadata
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.