Spring Web Services Framework

org.springframework.ws.soap.saaj.support
Class SaajXmlReader

java.lang.Object
  extended by org.springframework.xml.sax.AbstractXmlReader
      extended by org.springframework.ws.soap.saaj.support.SaajXmlReader
All Implemented Interfaces:
XMLReader

public class SaajXmlReader
extends AbstractXmlReader

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:
Node, SOAPElement

Constructor Summary
SaajXmlReader(Node startNode)
          Constructs a new instance of the SaajXmlReader that reads from the given Node.
 
Method Summary
 boolean getFeature(String name)
          Throws a SAXNotRecognizedException exception.
 void parse(InputSource ignored)
          Parses the StAX XML reader passed at construction-time.
 void parse(String ignored)
          Parses the StAX XML reader passed at construction-time.
 void setFeature(String name, boolean value)
          Throws a SAXNotRecognizedException exception.
 
Methods inherited from class org.springframework.xml.sax.AbstractXmlReader
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getLexicalHandler, getProperty, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaajXmlReader

public SaajXmlReader(Node startNode)
Constructs a new instance of the SaajXmlReader that reads from the given Node.

Parameters:
startNode - the SAAJ Node to read from
Method Detail

getFeature

public boolean getFeature(String name)
                   throws SAXNotRecognizedException,
                          SAXNotSupportedException
Description copied from class: AbstractXmlReader
Throws a SAXNotRecognizedException exception.

Specified by:
getFeature in interface XMLReader
Overrides:
getFeature in class AbstractXmlReader
Throws:
SAXNotRecognizedException - always
SAXNotSupportedException

setFeature

public void setFeature(String name,
                       boolean value)
                throws SAXNotRecognizedException,
                       SAXNotSupportedException
Description copied from class: AbstractXmlReader
Throws a SAXNotRecognizedException exception.

Specified by:
setFeature in interface XMLReader
Overrides:
setFeature in class AbstractXmlReader
Throws:
SAXNotRecognizedException - always
SAXNotSupportedException

parse

public final void parse(InputSource ignored)
                 throws SAXException
Parses the StAX XML reader passed at construction-time.

Note that the given InputSource is not read, but ignored.

Parameters:
ignored - is ignored
Throws:
SAXException - A SAX exception, possibly wrapping a XMLStreamException

parse

public final void parse(String ignored)
                 throws SAXException
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 a XMLStreamException

Spring Web Services Framework

Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.