Package org.jets3t.service.impl.rest
Class XmlResponsesSaxParser.RequestPaymentConfigurationHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.jets3t.service.impl.rest.DefaultXmlHandler
-
- org.jets3t.service.impl.rest.XmlResponsesSaxParser.RequestPaymentConfigurationHandler
-
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,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 theisRequesterPays()
method.- Author:
- James Murty
-
-
Constructor Summary
Constructors Constructor Description RequestPaymentConfigurationHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endElement(String name, 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
-
-
-
-
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(String name, String elementText)
- Overrides:
endElement
in classDefaultXmlHandler
-
-