org.jclouds.s3.domain.internal
Class MutableObjectMetadataImpl

java.lang.Object
  extended by org.jclouds.s3.domain.internal.MutableObjectMetadataImpl
All Implemented Interfaces:
Serializable, Comparable<ObjectMetadata>, MutableObjectMetadata, ObjectMetadata

public class MutableObjectMetadataImpl
extends Object
implements Serializable, MutableObjectMetadata

Allows you to manipulate metadata.

Author:
Adrian Cole
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jclouds.s3.domain.ObjectMetadata
ObjectMetadata.StorageClass
 
Constructor Summary
MutableObjectMetadataImpl()
           
MutableObjectMetadataImpl(ObjectMetadata from)
           
 
Method Summary
 int compareTo(ObjectMetadata o)
          
 boolean equals(Object obj)
           
 String getBucket()
          
 String getCacheControl()
          Can be used to specify caching behavior along the request/reply chain.
 MutableContentMetadata getContentMetadata()
          
 String getETag()
          
 String getKey()
          The key is the handle that you assign to an object that allows you retrieve it later.
 Date getLastModified()
          
 CanonicalUser getOwner()
          Every bucket and object in Amazon S3 has an owner, the user that created the bucket or object.
 ObjectMetadata.StorageClass getStorageClass()
          Currently defaults to 'STANDARD' and not used.
 URI getUri()
          
 Map<String,String> getUserMetadata()
          
 int hashCode()
           
 void setBucket(String bucket)
          
 void setCacheControl(String cacheControl)
          Can be used to specify caching behavior along the request/reply chain.
 void setContentMetadata(MutableContentMetadata contentMetadata)
          
 void setETag(String eTag)
          
 void setKey(String key)
          The key is the handle that you assign to an object that allows you retrieve it later.
 void setLastModified(Date lastModified)
          
 void setOwner(CanonicalUser owner)
          Every bucket and object in Amazon S3 has an owner, the user that created the bucket or object.
 void setStorageClass(ObjectMetadata.StorageClass storageClass)
          Currently defaults to 'STANDARD' and not used.
 void setUri(URI uri)
          
 void setUserMetadata(Map<String,String> userMetadata)
          
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MutableObjectMetadataImpl

public MutableObjectMetadataImpl()

MutableObjectMetadataImpl

public MutableObjectMetadataImpl(ObjectMetadata from)
Method Detail

getKey

public String getKey()
The key is the handle that you assign to an object that allows you retrieve it later. A key is a sequence of Unicode characters whose UTF-8 encoding is at most 1024 bytes long. Each object in a bucket must have a unique key.

Specified by:
getKey in interface ObjectMetadata
See Also:

getBucket

public String getBucket()

Specified by:
getBucket in interface ObjectMetadata

getUri

public URI getUri()

Specified by:
getUri in interface ObjectMetadata

setUri

public void setUri(URI uri)

Specified by:
setUri in interface MutableObjectMetadata

getOwner

public CanonicalUser getOwner()
Every bucket and object in Amazon S3 has an owner, the user that created the bucket or object. The owner of a bucket or object cannot be changed. However, if the object is overwritten by another user (deleted and rewritten), the new object will have a new owner.

Specified by:
getOwner in interface ObjectMetadata

getStorageClass

public ObjectMetadata.StorageClass getStorageClass()
Currently defaults to 'STANDARD' and not used.

Specified by:
getStorageClass in interface ObjectMetadata

getCacheControl

public String getCacheControl()
Can be used to specify caching behavior along the request/reply chain.

Specified by:
getCacheControl in interface ObjectMetadata

getLastModified

public Date getLastModified()

Specified by:
getLastModified in interface ObjectMetadata

getETag

public String getETag()

Specified by:
getETag in interface ObjectMetadata

compareTo

public int compareTo(ObjectMetadata o)

Specified by:
compareTo in interface Comparable<ObjectMetadata>

getUserMetadata

public Map<String,String> getUserMetadata()

Specified by:
getUserMetadata in interface ObjectMetadata

setCacheControl

public void setCacheControl(String cacheControl)
Can be used to specify caching behavior along the request/reply chain.

Specified by:
setCacheControl in interface MutableObjectMetadata

setETag

public void setETag(String eTag)

Specified by:
setETag in interface MutableObjectMetadata

setKey

public void setKey(String key)
The key is the handle that you assign to an object that allows you retrieve it later. A key is a sequence of Unicode characters whose UTF-8 encoding is at most 1024 bytes long. Each object in a bucket must have a unique key.

Specified by:
setKey in interface MutableObjectMetadata
See Also:

setBucket

public void setBucket(String bucket)

Specified by:
setBucket in interface MutableObjectMetadata

setLastModified

public void setLastModified(Date lastModified)

Specified by:
setLastModified in interface MutableObjectMetadata

setOwner

public void setOwner(CanonicalUser owner)
Every bucket and object in Amazon S3 has an owner, the user that created the bucket or object. The owner of a bucket or object cannot be changed. However, if the object is overwritten by another user (deleted and rewritten), the new object will have a new owner.

Specified by:
setOwner in interface MutableObjectMetadata

setStorageClass

public void setStorageClass(ObjectMetadata.StorageClass storageClass)
Currently defaults to 'STANDARD' and not used.

Specified by:
setStorageClass in interface MutableObjectMetadata

setUserMetadata

public void setUserMetadata(Map<String,String> userMetadata)

Specified by:
setUserMetadata in interface MutableObjectMetadata

getContentMetadata

public MutableContentMetadata getContentMetadata()

Specified by:
getContentMetadata in interface MutableObjectMetadata
Specified by:
getContentMetadata in interface ObjectMetadata

setContentMetadata

public void setContentMetadata(MutableContentMetadata contentMetadata)

Specified by:
setContentMetadata in interface MutableObjectMetadata

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 jclouds. All Rights Reserved.