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

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.BucketLocationHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Enclosing class:
XmlResponsesSaxParser

public class XmlResponsesSaxParser.BucketLocationHandler
extends DefaultXmlHandler

Handler for CreateBucketConfiguration response XML documents for a bucket. The document is parsed into a String representing the bucket's location, available via the getLocation() method.

Author:
James Murty

Constructor Summary
XmlResponsesSaxParser.BucketLocationHandler()
           
 
Method Summary
 void endElement(String name, String elementText)
           
 String getLocation()
           
 
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.BucketLocationHandler

public XmlResponsesSaxParser.BucketLocationHandler()
Method Detail

getLocation

public String getLocation()
Returns:
the bucket's location.

endElement

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