Class DelegatingMutableContentMetadata
java.lang.Object
org.jclouds.atmos.domain.internal.DelegatingMutableContentMetadata
- All Implemented Interfaces:
MutableContentMetadata,ContentMetadata,MutableContentMetadata
-
Field Summary
Fields inherited from interface org.jclouds.io.ContentMetadata
HTTP_HEADERS, RFC1123_DATE_PATTERN -
Constructor Summary
ConstructorsConstructorDescriptionDelegatingMutableContentMetadata(URI uri, String name, String path, MutableContentMetadata delegate) -
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.getName()getPath()getUri()inthashCode()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[] contentMD5) Deprecated.usesetContentMD5(HashCode)instead.voidsetContentMD5(com.google.common.hash.HashCode contentMD5) voidsetContentType(String contentType) voidsetExpires(Date expires) voidvoidvoidtoString()
-
Constructor Details
-
DelegatingMutableContentMetadata
public DelegatingMutableContentMetadata() -
DelegatingMutableContentMetadata
public DelegatingMutableContentMetadata(URI uri, String name, String path, MutableContentMetadata delegate)
-
-
Method Details
-
getContentLength
Description copied from interface:ContentMetadataReturns 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
Description copied from interface:ContentMetadataA 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:
-
getName
- Specified by:
getNamein interfaceMutableContentMetadata
-
setContentLength
- Specified by:
setContentLengthin interfaceMutableContentMetadata
-
setContentMD5
Deprecated.usesetContentMD5(HashCode)instead.- Specified by:
setContentMD5in interfaceMutableContentMetadata
-
setContentMD5
public void setContentMD5(com.google.common.hash.HashCode contentMD5) - Specified by:
setContentMD5in interfaceMutableContentMetadata
-
setContentType
- Specified by:
setContentTypein interfaceMutableContentMetadata
-
setName
- Specified by:
setNamein interfaceMutableContentMetadata
-
equals
-
hashCode
public int hashCode() -
toString
-
getDelegate
-
setCacheControl
- Specified by:
setCacheControlin interfaceMutableContentMetadata
-
setContentDisposition
Description copied from interface:MutableContentMetadataSet Content Disposition of the payload Not all providers may support it- Specified by:
setContentDispositionin interfaceMutableContentMetadata- Parameters:
contentDisposition-
-
setContentEncoding
Description copied from interface:MutableContentMetadataSet Content Encoding of the payload Not all providers may support it- Specified by:
setContentEncodingin interfaceMutableContentMetadata- Parameters:
contentEncoding-
-
setContentLanguage
Description copied from interface:MutableContentMetadataSet Content Language of the payload Not all providers may support it- Specified by:
setContentLanguagein interfaceMutableContentMetadata- Parameters:
contentLanguage-
-
getCacheControl
- Specified by:
getCacheControlin interfaceContentMetadata
-
getContentDisposition
Description copied from interface:ContentMetadataSpecifies presentational information for the object.- Specified by:
getContentDispositionin interfaceContentMetadata- See Also:
-
getContentEncoding
Description copied from interface:ContentMetadataSpecifies 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:
-
getContentLanguage
Description copied from interface:ContentMetadataGet Content Language of the payload Not all providers may support it- Specified by:
getContentLanguagein interfaceContentMetadata
-
setExpires
- Specified by:
setExpiresin interfaceMutableContentMetadata
-
getExpires
Description copied from interface:ContentMetadataGives the date/time after which the response is considered stale.- Specified by:
getExpiresin interfaceContentMetadata- See Also:
-
toBuilder
- Specified by:
toBuilderin interfaceContentMetadata
-
getUri
- Specified by:
getUriin interfaceMutableContentMetadata
-
setUri
- Specified by:
setUriin interfaceMutableContentMetadata
-
getPath
- Specified by:
getPathin interfaceMutableContentMetadata
-
setPath
- Specified by:
setPathin interfaceMutableContentMetadata
-
getContentMD5AsHashCode()instead.