org.jets3t.service.model
Class GSBucketLoggingStatus

java.lang.Object
  extended by org.jets3t.service.model.StorageBucketLoggingStatus
      extended by org.jets3t.service.model.GSBucketLoggingStatus

public class GSBucketLoggingStatus
extends StorageBucketLoggingStatus

Represents Bucket Logging Status settings used to control bucket-based Server Access Logging in Google Storage.

For logging to be enabled for a bucket both the targetBucketName and logfilePrefix must be non-null, and the named bucket must exist. When both variables are non-null, this object represents an enabled logging status (as indicated by StorageBucketLoggingStatus.isLoggingEnabled()) and the XML document generated by StorageBucketLoggingStatus.toXml() will enable logging for the named bucket when provided to GoogleStorageService.setBucketLoggingStatus(String, GSBucketLoggingStatus)

If either the targetBucketName or logfilePrefix are null, this object will represent a disabled logging status (as indicated by StorageBucketLoggingStatus.isLoggingEnabled()) and the XML document generated by StorageBucketLoggingStatus.toXml() will disable logging for the named bucket when provided to GoogleStorageService.setBucketLoggingStatus(String, GSBucketLoggingStatus).


Constructor Summary
GSBucketLoggingStatus()
           
GSBucketLoggingStatus(java.lang.String targetBucketName, java.lang.String logfilePrefix)
           
 
Method Summary
 void setPredefinedAcl(GSAccessControlList predefinedAcl)
           
 com.jamesmurty.utils.XMLBuilder toXMLBuilder()
           
 
Methods inherited from class org.jets3t.service.model.StorageBucketLoggingStatus
getLogfilePrefix, getTargetBucketName, isLoggingEnabled, setLogfilePrefix, setTargetBucketName, toString, toXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GSBucketLoggingStatus

public GSBucketLoggingStatus()

GSBucketLoggingStatus

public GSBucketLoggingStatus(java.lang.String targetBucketName,
                             java.lang.String logfilePrefix)
Method Detail

setPredefinedAcl

public void setPredefinedAcl(GSAccessControlList predefinedAcl)

toXMLBuilder

public com.jamesmurty.utils.XMLBuilder toXMLBuilder()
                                             throws javax.xml.parsers.ParserConfigurationException,
                                                    javax.xml.parsers.FactoryConfigurationError,
                                                    javax.xml.transform.TransformerException
Specified by:
toXMLBuilder in class StorageBucketLoggingStatus
Throws:
javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.FactoryConfigurationError
javax.xml.transform.TransformerException