Class DelegatingMutableContentMetadata
- java.lang.Object
-
- org.jclouds.atmos.domain.internal.DelegatingMutableContentMetadata
-
- All Implemented Interfaces:
MutableContentMetadata,ContentMetadata,MutableContentMetadata
public class DelegatingMutableContentMetadata extends Object implements MutableContentMetadata
-
-
Field Summary
-
Fields inherited from interface org.jclouds.io.ContentMetadata
HTTP_HEADERS, RFC1123_DATE_PATTERN
-
-
Constructor Summary
Constructors Constructor Description DelegatingMutableContentMetadata()DelegatingMutableContentMetadata(URI uri, String name, String path, MutableContentMetadata delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)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.MutableContentMetadatagetDelegate()DategetExpires()Gives the date/time after which the response is considered stale.StringgetName()StringgetPath()URIgetUri()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)voidsetName(String name)voidsetPath(String path)voidsetUri(URI uri)ContentMetadataBuildertoBuilder()StringtoString()
-
-
-
Constructor Detail
-
DelegatingMutableContentMetadata
public DelegatingMutableContentMetadata()
-
DelegatingMutableContentMetadata
public DelegatingMutableContentMetadata(URI uri, String name, String path, MutableContentMetadata delegate)
-
-
Method Detail
-
getContentLength
public Long getContentLength()
Description copied from interface:ContentMetadataReturns 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.- Specified by:
getContentLengthin interfaceContentMetadata- Returns:
- the length in bytes that can be be obtained from
#getInput() - See Also:
HttpHeaders.CONTENT_LENGTH,GetOptions
-
getContentMD5
@Deprecated public byte[] getContentMD5()
Deprecated.usegetContentMD5AsHashCode()instead.- Specified by:
getContentMD5in interfaceContentMetadata
-
getContentMD5AsHashCode
public com.google.common.hash.HashCode getContentMD5AsHashCode()
- Specified by:
getContentMD5AsHashCodein interfaceContentMetadata
-
getContentType
public String 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
public String getName()
- Specified by:
getNamein interfaceMutableContentMetadata
-
setContentLength
public void setContentLength(Long contentLength)
- Specified by:
setContentLengthin interfaceMutableContentMetadata
-
setContentMD5
@Deprecated public void setContentMD5(byte[] contentMD5)
Deprecated.usesetContentMD5(HashCode)instead.- Specified by:
setContentMD5in interfaceMutableContentMetadata
-
setContentMD5
public void setContentMD5(com.google.common.hash.HashCode contentMD5)
- Specified by:
setContentMD5in interfaceMutableContentMetadata
-
setContentType
public void setContentType(String contentType)
- Specified by:
setContentTypein interfaceMutableContentMetadata
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceMutableContentMetadata
-
getDelegate
public MutableContentMetadata getDelegate()
-
setCacheControl
public void setCacheControl(String cacheControl)
- Specified by:
setCacheControlin interfaceMutableContentMetadata
-
setContentDisposition
public void setContentDisposition(String contentDisposition)
Description copied from interface:MutableContentMetadataSet Content Disposition of the payload Not all providers may support it- Specified by:
setContentDispositionin interfaceMutableContentMetadata
-
setContentEncoding
public void setContentEncoding(String contentEncoding)
Description copied from interface:MutableContentMetadataSet Content Encoding of the payload Not all providers may support it- Specified by:
setContentEncodingin interfaceMutableContentMetadata
-
setContentLanguage
public void setContentLanguage(String contentLanguage)
Description copied from interface:MutableContentMetadataSet Content Language of the payload Not all providers may support it- Specified by:
setContentLanguagein interfaceMutableContentMetadata
-
getCacheControl
public String getCacheControl()
- Specified by:
getCacheControlin interfaceContentMetadata
-
getContentDisposition
public String getContentDisposition()
Description copied from interface:ContentMetadataSpecifies presentational information for the object.- Specified by:
getContentDispositionin interfaceContentMetadata- See Also:
-
getContentEncoding
public String 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
public String getContentLanguage()
Description copied from interface:ContentMetadataGet Content Language of the payload Not all providers may support it- Specified by:
getContentLanguagein interfaceContentMetadata
-
setExpires
public void setExpires(Date expires)
- Specified by:
setExpiresin interfaceMutableContentMetadata
-
getExpires
public Date getExpires()
Description copied from interface:ContentMetadataGives the date/time after which the response is considered stale.- Specified by:
getExpiresin interfaceContentMetadata- See Also:
-
toBuilder
public ContentMetadataBuilder toBuilder()
- Specified by:
toBuilderin interfaceContentMetadata
-
getUri
public URI getUri()
- Specified by:
getUriin interfaceMutableContentMetadata
-
setUri
public void setUri(URI uri)
- Specified by:
setUriin interfaceMutableContentMetadata
-
getPath
public String getPath()
- Specified by:
getPathin interfaceMutableContentMetadata
-
setPath
public void setPath(String path)
- Specified by:
setPathin interfaceMutableContentMetadata
-
-