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 boolean
equals(Object obj)
String
getCacheControl()
String
getContentDisposition()
Specifies presentational information for the object.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.String
getContentLanguage()
Get Content Language of the payloadLong
getContentLength()
Returns the total size of the payload, or the chunk that's available.byte[]
getContentMD5()
Deprecated.usegetContentMD5AsHashCode()
instead.com.google.common.hash.HashCode
getContentMD5AsHashCode()
String
getContentType()
A standard MIME type describing the format of the contents.MutableContentMetadata
getDelegate()
Date
getExpires()
Gives the date/time after which the response is considered stale.String
getName()
String
getPath()
URI
getUri()
int
hashCode()
void
setCacheControl(String cacheControl)
void
setContentDisposition(String contentDisposition)
Set Content Disposition of the payloadvoid
setContentEncoding(String contentEncoding)
Set Content Encoding of the payloadvoid
setContentLanguage(String contentLanguage)
Set Content Language of the payloadvoid
setContentLength(Long contentLength)
void
setContentMD5(byte[] contentMD5)
Deprecated.usesetContentMD5(HashCode)
instead.void
setContentMD5(com.google.common.hash.HashCode contentMD5)
void
setContentType(String contentType)
void
setExpires(Date expires)
void
setName(String name)
void
setPath(String path)
void
setUri(URI uri)
ContentMetadataBuilder
toBuilder()
String
toString()
-
-
-
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:ContentMetadata
Returns the total size of the payload, or the chunk that's available. Chunking is only used whenorg.jclouds.http.GetOptions
is called with options like tail, range, or startAt.- Specified by:
getContentLength
in 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:
getContentMD5
in interfaceContentMetadata
-
getContentMD5AsHashCode
public com.google.common.hash.HashCode getContentMD5AsHashCode()
- Specified by:
getContentMD5AsHashCode
in interfaceContentMetadata
-
getContentType
public String getContentType()
Description copied from interface:ContentMetadata
A standard MIME type describing the format of the contents. If none is provided, the default is binary/octet-stream.- Specified by:
getContentType
in interfaceContentMetadata
- See Also:
-
getName
public String getName()
- Specified by:
getName
in interfaceMutableContentMetadata
-
setContentLength
public void setContentLength(Long contentLength)
- Specified by:
setContentLength
in interfaceMutableContentMetadata
-
setContentMD5
@Deprecated public void setContentMD5(byte[] contentMD5)
Deprecated.usesetContentMD5(HashCode)
instead.- Specified by:
setContentMD5
in interfaceMutableContentMetadata
-
setContentMD5
public void setContentMD5(com.google.common.hash.HashCode contentMD5)
- Specified by:
setContentMD5
in interfaceMutableContentMetadata
-
setContentType
public void setContentType(String contentType)
- Specified by:
setContentType
in interfaceMutableContentMetadata
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceMutableContentMetadata
-
getDelegate
public MutableContentMetadata getDelegate()
-
setCacheControl
public void setCacheControl(String cacheControl)
- Specified by:
setCacheControl
in interfaceMutableContentMetadata
-
setContentDisposition
public void setContentDisposition(String contentDisposition)
Description copied from interface:MutableContentMetadata
Set Content Disposition of the payload Not all providers may support it- Specified by:
setContentDisposition
in interfaceMutableContentMetadata
-
setContentEncoding
public void setContentEncoding(String contentEncoding)
Description copied from interface:MutableContentMetadata
Set Content Encoding of the payload Not all providers may support it- Specified by:
setContentEncoding
in interfaceMutableContentMetadata
-
setContentLanguage
public void setContentLanguage(String contentLanguage)
Description copied from interface:MutableContentMetadata
Set Content Language of the payload Not all providers may support it- Specified by:
setContentLanguage
in interfaceMutableContentMetadata
-
getCacheControl
public String getCacheControl()
- Specified by:
getCacheControl
in interfaceContentMetadata
-
getContentDisposition
public String getContentDisposition()
Description copied from interface:ContentMetadata
Specifies presentational information for the object.- Specified by:
getContentDisposition
in interfaceContentMetadata
- See Also:
-
getContentEncoding
public String getContentEncoding()
Description copied from interface:ContentMetadata
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:
getContentEncoding
in interfaceContentMetadata
- See Also:
-
getContentLanguage
public String getContentLanguage()
Description copied from interface:ContentMetadata
Get Content Language of the payload Not all providers may support it- Specified by:
getContentLanguage
in interfaceContentMetadata
-
setExpires
public void setExpires(Date expires)
- Specified by:
setExpires
in interfaceMutableContentMetadata
-
getExpires
public Date getExpires()
Description copied from interface:ContentMetadata
Gives the date/time after which the response is considered stale.- Specified by:
getExpires
in interfaceContentMetadata
- See Also:
-
toBuilder
public ContentMetadataBuilder toBuilder()
- Specified by:
toBuilder
in interfaceContentMetadata
-
getUri
public URI getUri()
- Specified by:
getUri
in interfaceMutableContentMetadata
-
setUri
public void setUri(URI uri)
- Specified by:
setUri
in interfaceMutableContentMetadata
-
getPath
public String getPath()
- Specified by:
getPath
in interfaceMutableContentMetadata
-
setPath
public void setPath(String path)
- Specified by:
setPath
in interfaceMutableContentMetadata
-
-