org.jclouds.openstack.swift.domain.internal
Class DelegatingMutableObjectInfoWithMetadata
java.lang.Object
org.jclouds.io.ContentMetadataBuilder
org.jclouds.io.payloads.BaseMutableContentMetadata
org.jclouds.openstack.swift.domain.internal.DelegatingMutableObjectInfoWithMetadata
- All Implemented Interfaces:
- Serializable, Comparable<ObjectInfo>, org.jclouds.io.ContentMetadata, org.jclouds.io.MutableContentMetadata, MutableObjectInfoWithMetadata, ObjectInfo
public class DelegatingMutableObjectInfoWithMetadata
- extends org.jclouds.io.payloads.BaseMutableContentMetadata
- implements MutableObjectInfoWithMetadata
- Author:
- Adrian Cole
- See Also:
- Serialized Form
| Fields inherited from class org.jclouds.io.ContentMetadataBuilder |
contentDisposition, contentEncoding, contentLanguage, contentLength, contentMD5, contentType, expires |
| Fields inherited from interface org.jclouds.io.ContentMetadata |
HTTP_HEADERS, RFC1123_DATE_PATTERN |
| Methods inherited from class org.jclouds.io.payloads.BaseMutableContentMetadata |
fromContentMetadata, getContentDisposition, getContentEncoding, getContentLanguage, getExpires, setContentDisposition, setContentEncoding, setContentLanguage, setExpires, toBuilder |
| Methods inherited from class org.jclouds.io.ContentMetadataBuilder |
build, contentDisposition, contentEncoding, contentLanguage, contentLength, contentMD5, contentType, create, equals, expires, toString |
DelegatingMutableObjectInfoWithMetadata
public DelegatingMutableObjectInfoWithMetadata(MutableObjectInfoWithMetadata delegate)
getContentLength
public Long getContentLength()
- Specified by:
getContentLength in interface org.jclouds.io.ContentMetadata- Overrides:
getContentLength in class org.jclouds.io.payloads.BaseMutableContentMetadata
getContentType
public String getContentType()
- Specified by:
getContentType in interface org.jclouds.io.ContentMetadata- Specified by:
getContentType in interface ObjectInfo- Overrides:
getContentType in class org.jclouds.io.payloads.BaseMutableContentMetadata
getContentMD5
public byte[] getContentMD5()
- Specified by:
getContentMD5 in interface org.jclouds.io.ContentMetadata- Overrides:
getContentMD5 in class org.jclouds.io.payloads.BaseMutableContentMetadata
hashCode
public int hashCode()
- Overrides:
hashCode in class org.jclouds.io.ContentMetadataBuilder
setContentLength
public void setContentLength(Long bytes)
- Specified by:
setContentLength in interface org.jclouds.io.MutableContentMetadata- Overrides:
setContentLength in class org.jclouds.io.payloads.BaseMutableContentMetadata
setContentType
public void setContentType(String contentType)
- Specified by:
setContentType in interface org.jclouds.io.MutableContentMetadata- Specified by:
setContentType in interface MutableObjectInfoWithMetadata- Overrides:
setContentType in class org.jclouds.io.payloads.BaseMutableContentMetadata
setContentMD5
public void setContentMD5(byte[] hash)
- Specified by:
setContentMD5 in interface org.jclouds.io.MutableContentMetadata- Overrides:
setContentMD5 in class org.jclouds.io.payloads.BaseMutableContentMetadata
getDelegate
public MutableObjectInfoWithMetadata getDelegate()
getMetadata
public Map<String,String> getMetadata()
- Specified by:
getMetadata in interface MutableObjectInfoWithMetadata
setBytes
public void setBytes(Long bytes)
- Specified by:
setBytes in interface MutableObjectInfoWithMetadata
setHash
public void setHash(byte[] hash)
- Specified by:
setHash in interface MutableObjectInfoWithMetadata
setLastModified
public void setLastModified(Date lastModified)
- Specified by:
setLastModified in interface MutableObjectInfoWithMetadata
setName
public void setName(String name)
- Specified by:
setName in interface MutableObjectInfoWithMetadata
getBytes
public Long getBytes()
- Specified by:
getBytes in interface ObjectInfo
getHash
public byte[] getHash()
- Specified by:
getHash in interface ObjectInfo
getLastModified
public Date getLastModified()
- Specified by:
getLastModified in interface ObjectInfo
getName
public String getName()
- Specified by:
getName in interface ObjectInfo
compareTo
public int compareTo(ObjectInfo o)
- Specified by:
compareTo in interface Comparable<ObjectInfo>
setContainer
public void setContainer(String container)
- Specified by:
setContainer in interface MutableObjectInfoWithMetadata
getContainer
public String getContainer()
- Specified by:
getContainer in interface ObjectInfo
setUri
public void setUri(URI uri)
- Specified by:
setUri in interface MutableObjectInfoWithMetadata
getUri
public URI getUri()
- Specified by:
getUri in interface ObjectInfo
Copyright © 2009-2012 jclouds. All Rights Reserved.