public class GSBucket extends StorageBucket
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOCATION_DEFAULT |
static java.lang.String |
LOCATION_EUROPE |
static java.lang.String |
LOCATION_US |
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 |
---|
GSBucket()
Create a bucket without any name or location specified
|
GSBucket(java.lang.String name)
Create a bucket with a name.
|
GSBucket(java.lang.String name,
java.lang.String location) |
Modifier and Type | Method and Description |
---|---|
static GSBucket[] |
cast(StorageBucket[] buckets) |
GSAccessControlList |
getAcl() |
void |
setAcl(GSAccessControlList acl)
Sets the bucket's Access Control List - this should only be used internally
by JetS3t methods that retrieve information directly from the service.
|
java.lang.String |
toString() |
getCreationDate, getLocation, isLocationKnown, setAcl, setCreationDate, setLocation
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 static final java.lang.String LOCATION_DEFAULT
public static final java.lang.String LOCATION_US
public static final java.lang.String LOCATION_EUROPE
public GSBucket()
public GSBucket(java.lang.String name)
name
- the name for the bucketpublic GSBucket(java.lang.String name, java.lang.String location)
public java.lang.String toString()
toString
in class StorageBucket
public GSAccessControlList getAcl()
getAcl
in class StorageBucket
public void setAcl(GSAccessControlList acl)
acl
- public static GSBucket[] cast(StorageBucket[] buckets)