Package org.jclouds.io
Interface ContentMetadata
-
- All Known Subinterfaces:
MutableContentMetadata,MutableContentMetadata
- All Known Implementing Classes:
BaseImmutableContentMetadata,BaseMutableContentMetadata,DelegatingMutableContentMetadata
public interface ContentMetadata
-
-
Field Summary
Fields Modifier and Type Field Description static Set<String>HTTP_HEADERSstatic StringRFC1123_DATE_PATTERN
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description StringgetCacheControl()StringgetContentDisposition()Specifies presentational information for the object.StringgetContentEncoding()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.StringgetContentLanguage()Get Content Language of the payloadLonggetContentLength()Returns the total size of the payload, or the chunk that's available.byte[]getContentMD5()Deprecated.usegetContentMD5AsHashCode()instead.com.google.common.hash.HashCodegetContentMD5AsHashCode()StringgetContentType()A standard MIME type describing the format of the contents.DategetExpires()Gives the date/time after which the response is considered stale.ContentMetadataBuildertoBuilder()
-
-
-
Field Detail
-
RFC1123_DATE_PATTERN
static final String RFC1123_DATE_PATTERN
- See Also:
- Constant Field Values
-
-
Method Detail
-
getContentLength
@Nullable Long getContentLength()
Returns the total size of the payload, or the chunk that's available. Chunking is only used whenorg.jclouds.http.GetOptionsis called with options like tail, range, or startAt.- Returns:
- the length in bytes that can be be obtained from
#getInput() - See Also:
HttpHeaders.CONTENT_LENGTH,GetOptions
-
getContentDisposition
@Nullable String getContentDisposition()
Specifies presentational information for the object.
-
getContentEncoding
@Nullable 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.
-
getContentType
@Nullable String getContentType()
A standard MIME type describing the format of the contents. If none is provided, the default is binary/octet-stream.
-
getContentMD5
@Deprecated @Nullable byte[] getContentMD5()
Deprecated.usegetContentMD5AsHashCode()instead.
-
getContentMD5AsHashCode
@Nullable com.google.common.hash.HashCode getContentMD5AsHashCode()
-
getContentLanguage
@Nullable String getContentLanguage()
Get Content Language of the payload Not all providers may support it
-
getExpires
@Nullable Date 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()
-
-