Class SaajXmlReader
java.lang.Object
org.springframework.xml.sax.AbstractXmlReader
org.springframework.ws.soap.saaj.support.SaajXmlReader
- All Implemented Interfaces:
XMLReader
SAX
XMLReader that reads from a SAAJ Node. Consumes XMLEvents from an XMLEventReader,
and calls the corresponding methods on the SAX callback interfaces.- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
-
NodeSOAPElement
-
Constructor Summary
ConstructorsConstructorDescriptionSaajXmlReader(jakarta.xml.soap.Node startNode) Constructs a new instance of theSaajXmlReaderthat reads from the givenNode. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetFeature(String name) Throws aSAXNotRecognizedExceptionexception.final voidParses the StAX XML reader passed at construction-time.final voidparse(InputSource ignored) Parses the StAX XML reader passed at construction-time.voidsetFeature(String name, boolean value) Throws aSAXNotRecognizedExceptionexception.Methods inherited from class org.springframework.xml.sax.AbstractXmlReader
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getLexicalHandler, getProperty, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setProperty
-
Constructor Details
-
SaajXmlReader
public SaajXmlReader(jakarta.xml.soap.Node startNode) Constructs a new instance of theSaajXmlReaderthat reads from the givenNode.- Parameters:
startNode- the SAAJNodeto read from
-
-
Method Details
-
getFeature
Description copied from class:AbstractXmlReaderThrows aSAXNotRecognizedExceptionexception.- Specified by:
getFeaturein interfaceXMLReader- Overrides:
getFeaturein classAbstractXmlReader- Throws:
SAXNotRecognizedException- alwaysSAXNotSupportedException
-
setFeature
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException Description copied from class:AbstractXmlReaderThrows aSAXNotRecognizedExceptionexception.- Specified by:
setFeaturein interfaceXMLReader- Overrides:
setFeaturein classAbstractXmlReader- Throws:
SAXNotRecognizedException- alwaysSAXNotSupportedException
-
parse
Parses the StAX XML reader passed at construction-time.Note that the given
InputSourceis not read, but ignored.- Parameters:
ignored- is ignored- Throws:
SAXException- A SAX exception, possibly wrapping aXMLStreamException
-
parse
Parses the StAX XML reader passed at construction-time.Note that the given system identifier is not read, but ignored.
- Parameters:
ignored- is ignored- Throws:
SAXException- A SAX exception, possibly wrapping aXMLStreamException
-