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
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GSBucket[]
cast
(StorageBucket[] buckets) getAcl()
void
Sets the bucket's Access Control List - this should only be used internally by JetS3t methods that retrieve information directly from the service.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 Details
-
GSBucket
public GSBucket()Create a bucket without any name or location specified -
GSBucket
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 Details
-
toString
- Overrides:
toString
in classStorageBucket
-
getAcl
- Overrides:
getAcl
in classStorageBucket
- Returns:
- the bucket's Access Control List, or null if it is unknown.
-
setAcl
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
-