com.sun.xml.ws.message
Class RootElementSniffer

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.sun.xml.ws.message.RootElementSniffer
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public final class RootElementSniffer
extends DefaultHandler

Sniffs the root element name and its attributes from SAX events.


Constructor Summary
RootElementSniffer()
           
RootElementSniffer(boolean parseAttributes)
           
 
Method Summary
 Attributes getAttributes()
           
 String getLocalName()
           
 String getNsUri()
           
 void startElement(String uri, String localName, String qName, Attributes a)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootElementSniffer

public RootElementSniffer(boolean parseAttributes)

RootElementSniffer

public RootElementSniffer()
Method Detail

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes a)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException

getNsUri

public String getNsUri()

getLocalName

public String getLocalName()

getAttributes

public Attributes getAttributes()