Package org.jclouds.io.payloads
Class BaseMutableContentMetadata
java.lang.Object
org.jclouds.io.ContentMetadataBuilder
org.jclouds.io.payloads.BaseMutableContentMetadata
- All Implemented Interfaces:
ContentMetadata,MutableContentMetadata
public class BaseMutableContentMetadata
extends ContentMetadataBuilder
implements MutableContentMetadata
-
Field Summary
Fields inherited from class org.jclouds.io.ContentMetadataBuilder
cacheControl, contentDisposition, contentEncoding, contentLanguage, contentLength, contentMD5, contentType, expiresFields inherited from interface org.jclouds.io.ContentMetadata
HTTP_HEADERS, RFC1123_DATE_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BaseMutableContentMetadataSpecifies 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.voidsetCacheControl(String cacheControl) voidsetContentDisposition(String contentDisposition) Set Content Disposition of the payloadvoidsetContentEncoding(String contentEncoding) Set Content Encoding of the payloadvoidsetContentLanguage(String contentLanguage) Set Content Language of the payloadvoidsetContentLength(Long contentLength) voidsetContentMD5(byte[] md5) Deprecated.usesetContentMD5(HashCode)instead.voidsetContentMD5(com.google.common.hash.HashCode md5) voidsetContentType(String contentType) voidsetExpires(Date expires) Methods inherited from class org.jclouds.io.ContentMetadataBuilder
build, cacheControl, contentDisposition, contentEncoding, contentLanguage, contentLength, contentMD5, contentMD5, contentType, create, equals, expires, hashCode, toString
-
Constructor Details
-
BaseMutableContentMetadata
public BaseMutableContentMetadata()
-
-
Method Details
-
getCacheControl
- Specified by:
getCacheControlin interfaceContentMetadata
-
setCacheControl
- Specified by:
setCacheControlin interfaceMutableContentMetadata
-
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:
-
setContentLength
- Specified by:
setContentLengthin interfaceMutableContentMetadata
-
getContentMD5
Deprecated.usegetContentMD5AsHashCode()instead.- Specified by:
getContentMD5in interfaceContentMetadata
-
getContentMD5AsHashCode
public com.google.common.hash.HashCode getContentMD5AsHashCode()- Specified by:
getContentMD5AsHashCodein interfaceContentMetadata
-
setContentMD5
Deprecated.usesetContentMD5(HashCode)instead.- Specified by:
setContentMD5in interfaceMutableContentMetadata
-
setContentMD5
public void setContentMD5(com.google.common.hash.HashCode md5) - Specified by:
setContentMD5in interfaceMutableContentMetadata
-
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:
-
setContentType
- Specified by:
setContentTypein interfaceMutableContentMetadata
-
setContentDisposition
Set Content Disposition of the payload Not all providers may support it- Specified by:
setContentDispositionin interfaceMutableContentMetadata- Parameters:
contentDisposition-
-
getContentDisposition
Specifies presentational information for the object.- Specified by:
getContentDispositionin interfaceContentMetadata- See Also:
-
setContentLanguage
Set Content Language of the payload Not all providers may support it- Specified by:
setContentLanguagein interfaceMutableContentMetadata- Parameters:
contentLanguage-
-
getContentLanguage
Get Content Language of the payload Not all providers may support it- Specified by:
getContentLanguagein interfaceContentMetadata
-
setContentEncoding
Set Content Encoding of the payload Not all providers may support it- Specified by:
setContentEncodingin interfaceMutableContentMetadata- Parameters:
contentEncoding-
-
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:
-
setExpires
- Specified by:
setExpiresin interfaceMutableContentMetadata
-
getExpires
Gives the date/time after which the response is considered stale.- Specified by:
getExpiresin interfaceContentMetadata- See Also:
-
toBuilder
- Specified by:
toBuilderin interfaceContentMetadata
-
fromContentMetadata
-
getContentMD5AsHashCode()instead.