org.jets3t.service.model
Class GSBucket

java.lang.Object
  extended by org.jets3t.service.model.BaseStorageItem
      extended by org.jets3t.service.model.StorageBucket
          extended by 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
 
Constructor Summary
GSBucket()
          Create a bucket without any name or location specified
GSBucket(String name)
          Create a bucket with a name.
 
Method Summary
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 class StorageBucket

getAcl

public GSAccessControlList getAcl()
Overrides:
getAcl in class StorageBucket
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)