org.jets3t.service.impl.rest
Class XmlResponsesSaxParser.RequestPaymentConfigurationHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.jets3t.service.impl.rest.DefaultXmlHandler
          extended by org.jets3t.service.impl.rest.XmlResponsesSaxParser.RequestPaymentConfigurationHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
Enclosing class:
XmlResponsesSaxParser

public class XmlResponsesSaxParser.RequestPaymentConfigurationHandler
extends DefaultXmlHandler

Handler for RequestPaymentConfiguration response XML documents for a bucket. The document is parsed into a boolean value: true if the bucket is configured as Requester Pays, false if it is configured as Owner pays. This boolean value is available via the isRequesterPays() method.

Author:
James Murty

Constructor Summary
XmlResponsesSaxParser.RequestPaymentConfigurationHandler()
           
 
Method Summary
 void endElement(java.lang.String name, java.lang.String elementText)
           
 boolean isRequesterPays()
           
 
Methods inherited from class org.jets3t.service.impl.rest.DefaultXmlHandler
characters, endDocument, endElement, startDocument, startElement, startElement, startElement
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlResponsesSaxParser.RequestPaymentConfigurationHandler

public XmlResponsesSaxParser.RequestPaymentConfigurationHandler()
Method Detail

isRequesterPays

public boolean isRequesterPays()
Returns:
true if the bucket is configured as Requester Pays, false if it is configured as Owner pays.

endElement

public void endElement(java.lang.String name,
                       java.lang.String elementText)
Overrides:
endElement in class DefaultXmlHandler