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 TypeMethodDescriptionboolean
Specifies 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.HashCode
A standard MIME type describing the format of the contents.Gives the date/time after which the response is considered stale.getName()
getPath()
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
void
void
toString()
-
Constructor Details
-
DelegatingMutableContentMetadata
public DelegatingMutableContentMetadata() -
DelegatingMutableContentMetadata
public DelegatingMutableContentMetadata(URI uri, String name, String path, MutableContentMetadata delegate)
-
-
Method Details
-
getContentLength
Description copied from interface:ContentMetadata
Returns the total size of the payload, or the chunk that's available. Chunking is only used wheninvalid reference
org.jclouds.http.GetOptions
- Specified by:
getContentLength
in interfaceContentMetadata
- Returns:
- the length in bytes that can be be obtained from
invalid reference
#getInput()
- See Also:
-
getContentMD5
Deprecated.usegetContentMD5AsHashCode()
instead.- Specified by:
getContentMD5
in interfaceContentMetadata
-
getContentMD5AsHashCode
public com.google.common.hash.HashCode getContentMD5AsHashCode()- Specified by:
getContentMD5AsHashCode
in interfaceContentMetadata
-
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
- Specified by:
getName
in interfaceMutableContentMetadata
-
setContentLength
- Specified by:
setContentLength
in interfaceMutableContentMetadata
-
setContentMD5
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
- Specified by:
setContentType
in interfaceMutableContentMetadata
-
setName
- Specified by:
setName
in interfaceMutableContentMetadata
-
equals
-
hashCode
public int hashCode() -
toString
-
getDelegate
-
setCacheControl
- Specified by:
setCacheControl
in interfaceMutableContentMetadata
-
setContentDisposition
Description copied from interface:MutableContentMetadata
Set Content Disposition of the payload Not all providers may support it- Specified by:
setContentDisposition
in interfaceMutableContentMetadata
- Parameters:
contentDisposition
-
-
setContentEncoding
Description copied from interface:MutableContentMetadata
Set Content Encoding of the payload Not all providers may support it- Specified by:
setContentEncoding
in interfaceMutableContentMetadata
- Parameters:
contentEncoding
-
-
setContentLanguage
Description copied from interface:MutableContentMetadata
Set Content Language of the payload Not all providers may support it- Specified by:
setContentLanguage
in interfaceMutableContentMetadata
- Parameters:
contentLanguage
-
-
getCacheControl
- Specified by:
getCacheControl
in interfaceContentMetadata
-
getContentDisposition
Description copied from interface:ContentMetadata
Specifies presentational information for the object.- Specified by:
getContentDisposition
in interfaceContentMetadata
- See Also:
-
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
Description copied from interface:ContentMetadata
Get Content Language of the payload Not all providers may support it- Specified by:
getContentLanguage
in interfaceContentMetadata
-
setExpires
- Specified by:
setExpires
in interfaceMutableContentMetadata
-
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
- Specified by:
toBuilder
in interfaceContentMetadata
-
getUri
- Specified by:
getUri
in interfaceMutableContentMetadata
-
setUri
- Specified by:
setUri
in interfaceMutableContentMetadata
-
getPath
- Specified by:
getPath
in interfaceMutableContentMetadata
-
setPath
- Specified by:
setPath
in interfaceMutableContentMetadata
-
getContentMD5AsHashCode()
instead.