public class DelegatingMutableContentMetadata extends Object implements MutableContentMetadata
HTTP_HEADERS, RFC1123_DATE_PATTERN
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() |
Date |
getExpires()
Gives the date/time after which the response is considered stale.
|
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 |
setExpires(Date expires) |
void |
setName(String name) |
void |
setPath(String path) |
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 setExpires(Date expires)
setExpires
in interface MutableContentMetadata
public Date getExpires()
ContentMetadata
getExpires
in interface ContentMetadata
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-2014 The Apache Software Foundation. All Rights Reserved.