Package org.jets3t.service.model
Class StorageBucket
- java.lang.Object
-
- org.jets3t.service.model.BaseStorageItem
-
- org.jets3t.service.model.StorageBucket
-
public class StorageBucket extends BaseStorageItem
A generic storage bucket.- Author:
- James Murty
-
-
Field Summary
-
Fields inherited from class org.jets3t.service.model.BaseStorageItem
METADATA_HEADER_CONTENT_DISPOSITION, METADATA_HEADER_CONTENT_ENCODING, METADATA_HEADER_CONTENT_LANGUAGE, METADATA_HEADER_CONTENT_LENGTH, METADATA_HEADER_CONTENT_MD5, METADATA_HEADER_CONTENT_TYPE, METADATA_HEADER_CREATION_DATE, METADATA_HEADER_DATE, METADATA_HEADER_ETAG, METADATA_HEADER_LAST_MODIFIED_DATE
-
-
Constructor Summary
Constructors Constructor Description StorageBucket()
Create a bucket without any name or location specifiedStorageBucket(String name)
Create a bucket with a name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessControlList
getAcl()
Date
getCreationDate()
void
setAcl(AccessControlList acl)
Sets the bucket's Access Control List in S3 - this should only be used internally by J3tS3t methods that retrieve information directly from S3.void
setCreationDate(Date creationDate)
Sets the bucket's creation date - this should only be used internally by JetS3t methods that retrieve information directly from a service.String
toString()
-
Methods inherited from class org.jets3t.service.model.BaseStorageItem
addAllMetadata, addMetadata, addMetadata, addMetadata, containsMetadata, getMetadata, getMetadataMap, getName, getOwner, removeMetadata, replaceAllMetadata, setName, setOwner
-
-
-
-
Constructor Detail
-
StorageBucket
public StorageBucket()
Create a bucket without any name or location specified
-
StorageBucket
public StorageBucket(String name)
Create a bucket with a name.
-
-
Method Detail
-
getCreationDate
public Date getCreationDate()
- Returns:
- the bucket's creation date, or null if it is unknown.
-
setCreationDate
public void setCreationDate(Date creationDate)
Sets the bucket's creation date - this should only be used internally by JetS3t methods that retrieve information directly from a service.- Parameters:
creationDate
-
-
getAcl
public AccessControlList getAcl()
- Returns:
- the bucket's Access Control List, or null if it is unknown.
-
setAcl
public void setAcl(AccessControlList acl)
Sets the bucket's Access Control List in S3 - this should only be used internally by J3tS3t methods that retrieve information directly from S3.- Parameters:
acl
-
-
-