public class MutableObjectMetadataImpl extends Object implements MutableObjectMetadata
ObjectMetadata.StorageClass
Constructor and Description |
---|
MutableObjectMetadataImpl() |
MutableObjectMetadataImpl(ObjectMetadata from) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ObjectMetadata o) |
boolean |
equals(Object obj) |
String |
getBucket() |
String |
getCacheControl()
Deprecated.
call getContentMetadata().getCacheControl() instead
|
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)
Deprecated.
call getContentMetadata().setCacheControl(String) instead
|
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() |
public MutableObjectMetadataImpl()
public MutableObjectMetadataImpl(ObjectMetadata from)
public String getKey()
getKey
in interface ObjectMetadata
public String getBucket()
getBucket
in interface ObjectMetadata
public URI getUri()
getUri
in interface ObjectMetadata
public void setUri(URI uri)
setUri
in interface MutableObjectMetadata
public CanonicalUser getOwner()
getOwner
in interface ObjectMetadata
public ObjectMetadata.StorageClass getStorageClass()
getStorageClass
in interface ObjectMetadata
@Deprecated public String getCacheControl()
ObjectMetadata
getCacheControl
in interface ObjectMetadata
public Date getLastModified()
getLastModified
in interface ObjectMetadata
public String getETag()
getETag
in interface ObjectMetadata
public int compareTo(ObjectMetadata o)
compareTo
in interface Comparable<ObjectMetadata>
public Map<String,String> getUserMetadata()
getUserMetadata
in interface ObjectMetadata
@Deprecated public void setCacheControl(String cacheControl)
MutableObjectMetadata
setCacheControl
in interface MutableObjectMetadata
public void setETag(String eTag)
setETag
in interface MutableObjectMetadata
public void setKey(String key)
setKey
in interface MutableObjectMetadata
public void setBucket(String bucket)
setBucket
in interface MutableObjectMetadata
public void setLastModified(Date lastModified)
setLastModified
in interface MutableObjectMetadata
public void setOwner(CanonicalUser owner)
setOwner
in interface MutableObjectMetadata
public void setStorageClass(ObjectMetadata.StorageClass storageClass)
setStorageClass
in interface MutableObjectMetadata
public void setUserMetadata(Map<String,String> userMetadata)
setUserMetadata
in interface MutableObjectMetadata
public MutableContentMetadata getContentMetadata()
getContentMetadata
in interface MutableObjectMetadata
getContentMetadata
in interface ObjectMetadata
public void setContentMetadata(MutableContentMetadata contentMetadata)
setContentMetadata
in interface MutableObjectMetadata
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.