public class DelegatingMutableContentMetadata extends Object implements MutableContentMetadata
HTTP_HEADERS
Constructor and Description |
---|
DelegatingMutableContentMetadata() |
DelegatingMutableContentMetadata(URI uri,
String name,
String path,
MutableContentMetadata delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
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 payload
Not all providers may support it
|
Long |
getContentLength()
Returns the total size of the payload, or the chunk that's available.
|
byte[] |
getContentMD5() |
String |
getContentType()
A standard MIME type describing the format of the contents.
|
MutableContentMetadata |
getDelegate() |
String |
getName() |
String |
getPath() |
URI |
getUri() |
int |
hashCode() |
void |
setContentDisposition(String contentDisposition)
Set Content Disposition of the payload
Not all providers may support it
|
void |
setContentEncoding(String contentEncoding)
Set Content Encoding of the payload
Not all providers may support it
|
void |
setContentLanguage(String contentLanguage)
Set Content Language of the payload
Not all providers may support it
|
void |
setContentLength(Long contentLength) |
void |
setContentMD5(byte[] contentMD5) |
void |
setContentType(String contentType) |
void |
setName(String name) |
void |
setPath(String path) |
void |
setPropertiesFromHttpHeaders(com.google.common.collect.Multimap<String,String> headers)
sets properties related to the http headers listed in
ContentMetadata.HTTP_HEADERS |
void |
setUri(URI uri) |
ContentMetadataBuilder |
toBuilder() |
String |
toString() |
public DelegatingMutableContentMetadata()
public DelegatingMutableContentMetadata(URI uri, String name, String path, MutableContentMetadata delegate)
public Long getContentLength()
ContentMetadata
org.jclouds.http.GetOptions
is called with options like
tail, range, or startAt.getContentLength
in interface ContentMetadata
#getInput()
HttpHeaders.CONTENT_LENGTH
,
GetOptions
public byte[] getContentMD5()
getContentMD5
in interface ContentMetadata
public String getContentType()
ContentMetadata
getContentType
in interface ContentMetadata
public String getName()
public void setContentLength(Long contentLength)
setContentLength
in interface MutableContentMetadata
public void setContentMD5(byte[] contentMD5)
setContentMD5
in interface MutableContentMetadata
public void setContentType(String contentType)
setContentType
in interface MutableContentMetadata
public void setName(String name)
public MutableContentMetadata getDelegate()
public void setContentDisposition(String contentDisposition)
MutableContentMetadata
setContentDisposition
in interface MutableContentMetadata
public void setContentEncoding(String contentEncoding)
MutableContentMetadata
setContentEncoding
in interface MutableContentMetadata
public void setContentLanguage(String contentLanguage)
MutableContentMetadata
setContentLanguage
in interface MutableContentMetadata
public String getContentDisposition()
ContentMetadata
getContentDisposition
in interface ContentMetadata
public String getContentEncoding()
ContentMetadata
getContentEncoding
in interface ContentMetadata
public String getContentLanguage()
ContentMetadata
getContentLanguage
in interface ContentMetadata
public void setPropertiesFromHttpHeaders(com.google.common.collect.Multimap<String,String> headers)
MutableContentMetadata
ContentMetadata.HTTP_HEADERS
setPropertiesFromHttpHeaders
in interface MutableContentMetadata
public ContentMetadataBuilder toBuilder()
toBuilder
in interface ContentMetadata
public URI getUri()
public void setUri(URI uri)
public String getPath()
public void setPath(String path)
Copyright © 2009-2012 jclouds. All Rights Reserved.