|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.io.payloads.BaseMutableContentMetadata
public class BaseMutableContentMetadata
| Field Summary | |
|---|---|
protected String |
contentDisposition
|
protected String |
contentEncoding
|
protected String |
contentLanguage
|
protected Long |
contentLength
|
protected byte[] |
contentMD5
|
protected String |
contentType
|
| Fields inherited from interface org.jclouds.io.ContentMetadata |
|---|
HTTP_HEADERS |
| Constructor Summary | |
|---|---|
BaseMutableContentMetadata()
|
|
| Method Summary | |
|---|---|
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. |
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[] md5)
|
void |
setContentType(String contentType)
|
void |
setPropertiesFromHttpHeaders(com.google.common.collect.Multimap<String,String> headers)
sets properties related to the http headers listed in ContentMetadata.HTTP_HEADERS |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String contentType
protected Long contentLength
protected byte[] contentMD5
protected String contentDisposition
protected String contentLanguage
protected String contentEncoding
| Constructor Detail |
|---|
public BaseMutableContentMetadata()
| Method Detail |
|---|
public void setPropertiesFromHttpHeaders(com.google.common.collect.Multimap<String,String> headers)
MutableContentMetadataContentMetadata.HTTP_HEADERS
setPropertiesFromHttpHeaders in interface MutableContentMetadatapublic Long getContentLength()
org.jclouds.http.GetOptions is called with options like
tail, range, or startAt.
getContentLength in interface ContentMetadata#getInput()HttpHeaders.CONTENT_LENGTH,
GetOptions
public void setContentLength(@Nullable
Long contentLength)
setContentLength in interface MutableContentMetadatapublic byte[] getContentMD5()
getContentMD5 in interface ContentMetadatapublic void setContentMD5(byte[] md5)
setContentMD5 in interface MutableContentMetadatapublic String getContentType()
getContentType in interface ContentMetadata
public void setContentType(@Nullable
String contentType)
setContentType in interface MutableContentMetadata
public void setContentDisposition(@Nullable
String contentDisposition)
setContentDisposition in interface MutableContentMetadatapublic String getContentDisposition()
getContentDisposition in interface ContentMetadata
public void setContentLanguage(@Nullable
String contentLanguage)
setContentLanguage in interface MutableContentMetadatapublic String getContentLanguage()
getContentLanguage in interface ContentMetadata
public void setContentEncoding(@Nullable
String contentEncoding)
setContentEncoding in interface MutableContentMetadatapublic String getContentEncoding()
getContentEncoding in interface ContentMetadatapublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||