Package com.sun.xml.ws.message
Class RootElementSniffer
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.sun.xml.ws.message.RootElementSniffer
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
Sniffs the root element name and its attributes from SAX events.
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNsUri()voidstartElement(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
-
Constructor Details
-
RootElementSniffer
public RootElementSniffer(boolean parseAttributes) -
RootElementSniffer
public RootElementSniffer()
-
-
Method Details
-
startElement
public void startElement(String uri, String localName, String qName, Attributes a) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
getNsUri
-
getLocalName
-
getAttributes
-