Package org.jets3t.service.model
Class StorageBucket
java.lang.Object
org.jets3t.service.model.BaseStorageItem
org.jets3t.service.model.StorageBucket
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
ConstructorsConstructorDescriptionCreate a bucket without any name or location specifiedStorageBucket
(String name) Create a bucket with a name. -
Method Summary
Modifier and TypeMethodDescriptiongetAcl()
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.toString()
Methods inherited from class org.jets3t.service.model.BaseStorageItem
addAllMetadata, addMetadata, addMetadata, addMetadata, containsMetadata, getMetadata, getMetadataMap, getName, getOwner, removeMetadata, replaceAllMetadata, setName, setOwner
-
Constructor Details
-
StorageBucket
public StorageBucket()Create a bucket without any name or location specified -
StorageBucket
Create a bucket with a name.
-
-
Method Details
-
toString
-
getCreationDate
- Returns:
- the bucket's creation date, or null if it is unknown.
-
setCreationDate
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
- Returns:
- the bucket's Access Control List, or null if it is unknown.
-
setAcl
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
-
-