org.jets3t.service.impl.rest
Class XmlResponsesSaxParser.RequestPaymentConfigurationHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
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 org.xml.sax.helpers.DefaultHandler
Handler for RequestPaymentConfiguration response XML documents for a bucket.
The document is parsed into a boolean value: true if the bucket's is configured
as Requester Pays, false if it is configured as Owner pays. This boolean value
is available via the isRequesterPays() method.
| 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlResponsesSaxParser.RequestPaymentConfigurationHandler
public XmlResponsesSaxParser.RequestPaymentConfigurationHandler()
isRequesterPays
public boolean isRequesterPays()
- Returns:
- true if the bucket's is configured as Requester Pays, false if it is
configured as Owner pays.
startDocument
public void startDocument()
- Specified by:
startDocument in interface org.xml.sax.ContentHandler- Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler
endDocument
public void endDocument()
- Specified by:
endDocument in interface org.xml.sax.ContentHandler- Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler
startElement
public void startElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName,
org.xml.sax.Attributes attrs)
- Specified by:
startElement in interface org.xml.sax.ContentHandler- Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
endElement
public void endElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName)
- Specified by:
endElement in interface org.xml.sax.ContentHandler- Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
characters
public void characters(char[] ch,
int start,
int length)
- Specified by:
characters in interface org.xml.sax.ContentHandler- Overrides:
characters in class org.xml.sax.helpers.DefaultHandler