Package org.jets3t.service.model
Class GSBucket
- java.lang.Object
-
- org.jets3t.service.model.BaseStorageItem
-
- org.jets3t.service.model.StorageBucket
-
- org.jets3t.service.model.GSBucket
-
public class GSBucket extends StorageBucket
Represents a bucket in the Google Storage service.- 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.String
toString()
-
Methods inherited from class org.jets3t.service.model.StorageBucket
getCreationDate, setAcl, setCreationDate
-
Methods inherited from class org.jets3t.service.model.BaseStorageItem
addAllMetadata, addMetadata, addMetadata, addMetadata, containsMetadata, getMetadata, getMetadataMap, getName, getOwner, removeMetadata, replaceAllMetadata, setName, setOwner
-
-
-
-
Constructor Detail
-
GSBucket
public GSBucket()
Create a bucket without any name or location specified
-
GSBucket
public GSBucket(String name)
Create a bucket with a name. All buckets share a single namespace, so choose a unique name for your bucket.- Parameters:
name
- the name for the bucket
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classStorageBucket
-
getAcl
public GSAccessControlList getAcl()
- Overrides:
getAcl
in classStorageBucket
- Returns:
- the bucket's Access Control List, or null if it is unknown.
-
setAcl
public 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.- Parameters:
acl
-
-
cast
public static GSBucket[] cast(StorageBucket[] buckets)
-
-