Package org.jclouds.s3.domain.internal
Class BucketListObjectMetadata
- java.lang.Object
-
- org.jclouds.s3.domain.internal.BucketListObjectMetadata
-
- All Implemented Interfaces:
Comparable<ObjectMetadata>,ObjectMetadata
public class BucketListObjectMetadata extends Object implements ObjectMetadata
Returns the metadata parsable from a bucket listing
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jclouds.s3.domain.ObjectMetadata
ObjectMetadata.StorageClass
-
-
Constructor Summary
Constructors Constructor Description BucketListObjectMetadata(String key, String bucket, URI uri, Date lastModified, String eTag, byte[] md5, long contentLength, CanonicalUser owner, ObjectMetadata.StorageClass storageClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ObjectMetadata o)booleanequals(Object obj)StringgetBucket()StringgetCacheControl()Can be used to specify caching behavior along the request/reply chain.ContentMetadatagetContentMetadata()StringgetETag()StringgetKey()The key is the handle that you assign to an object that allows you retrieve it later.DategetLastModified()CanonicalUsergetOwner()Every bucket and object in Amazon S3 has an owner, the user that created the bucket or object.ObjectMetadata.StorageClassgetStorageClass()Currently defaults to 'STANDARD' and not used.URIgetUri()Map<String,String>getUserMetadata()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
BucketListObjectMetadata
public BucketListObjectMetadata(String key, String bucket, URI uri, Date lastModified, String eTag, byte[] md5, long contentLength, CanonicalUser owner, ObjectMetadata.StorageClass storageClass)
-
-
Method Detail
-
getUri
public URI getUri()
- Specified by:
getUriin interfaceObjectMetadata
-
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:
getKeyin interfaceObjectMetadata- See Also:
-
getBucket
public String getBucket()
- Specified by:
getBucketin interfaceObjectMetadata
-
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:
getOwnerin interfaceObjectMetadata
-
getStorageClass
public ObjectMetadata.StorageClass getStorageClass()
Currently defaults to 'STANDARD' and not used.- Specified by:
getStorageClassin interfaceObjectMetadata
-
getCacheControl
public String getCacheControl()
Can be used to specify caching behavior along the request/reply chain.- Specified by:
getCacheControlin interfaceObjectMetadata
-
getLastModified
public Date getLastModified()
- Specified by:
getLastModifiedin interfaceObjectMetadata
-
getETag
public String getETag()
- Specified by:
getETagin interfaceObjectMetadata
-
compareTo
public int compareTo(ObjectMetadata o)
- Specified by:
compareToin interfaceComparable<ObjectMetadata>
-
getUserMetadata
public Map<String,String> getUserMetadata()
- Specified by:
getUserMetadatain interfaceObjectMetadata
-
getContentMetadata
public ContentMetadata getContentMetadata()
- Specified by:
getContentMetadatain interfaceObjectMetadata
-
-