public class DelegatingMutableObjectInfoWithMetadata extends BaseMutableContentMetadata implements MutableObjectInfoWithMetadata
contentDisposition, contentEncoding, contentLanguage, contentLength, contentMD5, contentType, expires
HTTP_HEADERS, RFC1123_DATE_PATTERN
Constructor and Description |
---|
DelegatingMutableObjectInfoWithMetadata(MutableObjectInfoWithMetadata delegate) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ObjectInfo o) |
Long |
getBytes() |
String |
getContainer() |
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.
|
MutableObjectInfoWithMetadata |
getDelegate() |
byte[] |
getHash() |
Date |
getLastModified() |
Map<String,String> |
getMetadata() |
String |
getName() |
URI |
getUri() |
int |
hashCode() |
void |
setBytes(Long bytes) |
void |
setContainer(String container) |
void |
setContentLength(Long bytes) |
void |
setContentMD5(byte[] hash) |
void |
setContentType(String contentType) |
void |
setHash(byte[] hash) |
void |
setLastModified(Date lastModified) |
void |
setName(String name) |
void |
setUri(URI uri) |
fromContentMetadata, getContentDisposition, getContentEncoding, getContentLanguage, getExpires, setContentDisposition, setContentEncoding, setContentLanguage, setExpires, toBuilder
build, contentDisposition, contentEncoding, contentLanguage, contentLength, contentMD5, contentType, create, equals, expires, toString
public DelegatingMutableObjectInfoWithMetadata(MutableObjectInfoWithMetadata delegate)
public Long getContentLength()
BaseMutableContentMetadata
org.jclouds.http.GetOptions
is called with options like
tail, range, or startAt.getContentLength
in interface ContentMetadata
getContentLength
in class BaseMutableContentMetadata
#getInput()
HttpHeaders.CONTENT_LENGTH
,
GetOptions
public String getContentType()
BaseMutableContentMetadata
getContentType
in interface ContentMetadata
getContentType
in interface ObjectInfo
getContentType
in class BaseMutableContentMetadata
public byte[] getContentMD5()
BaseMutableContentMetadata
getContentMD5
in interface ContentMetadata
getContentMD5
in class BaseMutableContentMetadata
public int hashCode()
hashCode
in class ContentMetadataBuilder
public void setContentLength(Long bytes)
BaseMutableContentMetadata
setContentLength
in interface MutableContentMetadata
setContentLength
in class BaseMutableContentMetadata
public void setContentType(String contentType)
BaseMutableContentMetadata
setContentType
in interface MutableContentMetadata
setContentType
in interface MutableObjectInfoWithMetadata
setContentType
in class BaseMutableContentMetadata
public void setContentMD5(byte[] hash)
BaseMutableContentMetadata
setContentMD5
in interface MutableContentMetadata
setContentMD5
in class BaseMutableContentMetadata
public MutableObjectInfoWithMetadata getDelegate()
public Map<String,String> getMetadata()
getMetadata
in interface MutableObjectInfoWithMetadata
public void setBytes(Long bytes)
setBytes
in interface MutableObjectInfoWithMetadata
public void setHash(byte[] hash)
setHash
in interface MutableObjectInfoWithMetadata
public void setLastModified(Date lastModified)
setLastModified
in interface MutableObjectInfoWithMetadata
public void setName(String name)
setName
in interface MutableObjectInfoWithMetadata
public Long getBytes()
getBytes
in interface ObjectInfo
public byte[] getHash()
getHash
in interface ObjectInfo
public Date getLastModified()
getLastModified
in interface ObjectInfo
public String getName()
getName
in interface ObjectInfo
public int compareTo(ObjectInfo o)
compareTo
in interface Comparable<ObjectInfo>
public void setContainer(String container)
setContainer
in interface MutableObjectInfoWithMetadata
public String getContainer()
getContainer
in interface ObjectInfo
public void setUri(URI uri)
setUri
in interface MutableObjectInfoWithMetadata
public URI getUri()
getUri
in interface ObjectInfo
Copyright © 2009-2013 jclouds. All Rights Reserved.