Package org.jclouds.io.payloads
Class BaseImmutableContentMetadata
java.lang.Object
org.jclouds.io.payloads.BaseImmutableContentMetadata
- All Implemented Interfaces:
ContentMetadata
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected Longprotected com.google.common.hash.HashCodeprotected Stringprotected DateFields 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 TypeMethodDescriptionbooleanSpecifies 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.HashCodeA standard MIME type describing the format of the contents.Gives the date/time after which the response is considered stale.inthashCode()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:
getCacheControlin interfaceContentMetadata
-
getContentLength
Returns the total size of the payload, or the chunk that's available. Chunking is only used whenis called with options like tail, range, or startAt.invalid reference
org.jclouds.http.GetOptions- Specified by:
getContentLengthin interfaceContentMetadata- Returns:
- the length in bytes that can be be obtained from
invalid reference
#getInput() - See Also:
-
getContentMD5
Deprecated.usegetContentMD5AsHashCode()instead.- Specified by:
getContentMD5in interfaceContentMetadata
-
getContentMD5AsHashCode
public com.google.common.hash.HashCode getContentMD5AsHashCode()- Specified by:
getContentMD5AsHashCodein interfaceContentMetadata
-
getContentType
A standard MIME type describing the format of the contents. If none is provided, the default is binary/octet-stream.- Specified by:
getContentTypein interfaceContentMetadata- See Also:
-
getContentDisposition
Specifies presentational information for the object.- Specified by:
getContentDispositionin interfaceContentMetadata- See Also:
-
getContentLanguage
Get Content Language of the payload Not all providers may support it- Specified by:
getContentLanguagein 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:
getContentEncodingin interfaceContentMetadata- See Also:
-
getExpires
Gives the date/time after which the response is considered stale.- Specified by:
getExpiresin interfaceContentMetadata- See Also:
-
toString
-
hashCode
public int hashCode() -
equals
-
toBuilder
- Specified by:
toBuilderin interfaceContentMetadata
-
getContentMD5AsHashCode()instead.