Package org.jclouds.io.payloads
Class BaseImmutableContentMetadata
java.lang.Object
org.jclouds.io.payloads.BaseImmutableContentMetadata
- All Implemented Interfaces:
ContentMetadata
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
protected Long
protected com.google.common.hash.HashCode
protected String
protected Date
Fields inherited from interface org.jclouds.io.ContentMetadata
HTTP_HEADERS, RFC1123_DATE_PATTERN
-
Constructor Summary
ConstructorsConstructorDescriptionBaseImmutableContentMetadata
(String contentType, Long contentLength, byte[] contentMD5, String contentDisposition, String contentLanguage, String contentEncoding, Date expires) Deprecated.BaseImmutableContentMetadata
(String cacheControl, String contentType, Long contentLength, byte[] contentMD5, String contentDisposition, String contentLanguage, String contentEncoding, Date expires) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Specifies presentational information for the object.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.Get Content Language of the payloadReturns the total size of the payload, or the chunk that's available.byte[]
Deprecated.com.google.common.hash.HashCode
A standard MIME type describing the format of the contents.Gives the date/time after which the response is considered stale.int
hashCode()
toString()
-
Field Details
-
cacheControl
-
contentType
-
contentLength
-
contentMD5
protected com.google.common.hash.HashCode contentMD5 -
contentDisposition
-
contentLanguage
-
contentEncoding
-
expires
-
-
Constructor Details
-
Method Details
-
getCacheControl
- Specified by:
getCacheControl
in interfaceContentMetadata
-
getContentLength
Returns the total size of the payload, or the chunk that's available. Chunking is only used wheninvalid reference
org.jclouds.http.GetOptions
- Specified by:
getContentLength
in interfaceContentMetadata
- Returns:
- the length in bytes that can be be obtained from
invalid reference
#getInput()
- See Also:
-
getContentMD5
Deprecated.usegetContentMD5AsHashCode()
instead.- Specified by:
getContentMD5
in interfaceContentMetadata
-
getContentMD5AsHashCode
public com.google.common.hash.HashCode getContentMD5AsHashCode()- Specified by:
getContentMD5AsHashCode
in interfaceContentMetadata
-
getContentType
A standard MIME type describing the format of the contents. If none is provided, the default is binary/octet-stream.- Specified by:
getContentType
in interfaceContentMetadata
- See Also:
-
getContentDisposition
Specifies presentational information for the object.- Specified by:
getContentDisposition
in interfaceContentMetadata
- See Also:
-
getContentLanguage
Get Content Language of the payload Not all providers may support it- Specified by:
getContentLanguage
in interfaceContentMetadata
-
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.- Specified by:
getContentEncoding
in interfaceContentMetadata
- See Also:
-
getExpires
Gives the date/time after which the response is considered stale.- Specified by:
getExpires
in interfaceContentMetadata
- See Also:
-
toString
-
hashCode
public int hashCode() -
equals
-
toBuilder
- Specified by:
toBuilder
in interfaceContentMetadata
-
getContentMD5AsHashCode()
instead.