public class StorageBucket extends 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 and Description |
---|
StorageBucket()
Create a bucket without any name or location specified
|
StorageBucket(java.lang.String name)
Create a bucket with a name.
|
StorageBucket(java.lang.String name,
java.lang.String location) |
Modifier and Type | Method and Description |
---|---|
AccessControlList |
getAcl() |
java.util.Date |
getCreationDate() |
java.lang.String |
getLocation() |
boolean |
isLocationKnown() |
void |
setAcl(AccessControlList acl)
Sets the bucket's Access Control List - this should only be used internally by JetS3t
methods that retrieve information directly from a storage service.
|
void |
setCreationDate(java.util.Date creationDate)
Sets the bucket's creation date - this should only be used internally by JetS3t
methods that retrieve information directly from a service.
|
void |
setLocation(java.lang.String location)
Set's the bucket's location.
|
java.lang.String |
toString() |
addAllMetadata, addMetadata, addMetadata, addMetadata, addMetadata, containsMetadata, getCompleteMetadataMap, getHttpMetadata, getHttpMetadataMap, getMetadata, getMetadataCaseInsensitiveFromMap, getMetadataMap, getName, getOwner, getServiceMetadata, getServiceMetadataMap, getUserMetadata, getUserMetadataMap, isMatchingMetadataName, lookupMetadataSubsetMap, removeMetadata, replaceAllMetadata, setName, setOwner
public StorageBucket()
public StorageBucket(java.lang.String name)
public StorageBucket(java.lang.String name, java.lang.String location)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Date getCreationDate()
public void setCreationDate(java.util.Date creationDate)
creationDate
- public AccessControlList getAcl()
public void setAcl(AccessControlList acl)
acl
- public void setLocation(java.lang.String location)
location
- A string representing the location. Legal values include
S3Bucket.LOCATION_US
, S3Bucket.LOCATION_EUROPE
, GSBucket.LOCATION_US
etc.public boolean isLocationKnown()
public java.lang.String getLocation()