Package org.jclouds.io
Interface ContentMetadata
- All Known Subinterfaces:
MutableContentMetadata
,MutableContentMetadata
- All Known Implementing Classes:
BaseImmutableContentMetadata
,BaseMutableContentMetadata
,DelegatingMutableContentMetadata
public interface ContentMetadata
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionSpecifies 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.
-
Field Details
-
HTTP_HEADERS
-
RFC1123_DATE_PATTERN
- See Also:
-
-
Method Details
-
getCacheControl
-
getContentLength
Returns the total size of the payload, or the chunk that's available. Chunking is only used wheninvalid reference
org.jclouds.http.GetOptions
- Returns:
- the length in bytes that can be be obtained from
invalid reference
#getInput()
- See Also:
-
getContentDisposition
Specifies presentational information for the object.- See Also:
-
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.- See Also:
-
getContentType
A standard MIME type describing the format of the contents. If none is provided, the default is binary/octet-stream.- See Also:
-
getContentMD5
Deprecated.usegetContentMD5AsHashCode()
instead. -
getContentMD5AsHashCode
-
getContentLanguage
Get Content Language of the payload Not all providers may support it -
getExpires
Gives the date/time after which the response is considered stale.- Throws:
IllegalStateException
- If the Expires header is non-null, and not a valid RFC 1123 date- See Also:
-
toBuilder
ContentMetadataBuilder toBuilder()
-
getContentMD5AsHashCode()
instead.