org.xmlecho.palomar.core
Class ECHORequestReaderAdapter

java.lang.Object
  extended byorg.xml.sax.helpers.XMLFilterImpl
      extended byorg.xmlecho.palomar.core.ECHORequestReaderAdapter
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.XMLFilter, org.xml.sax.XMLReader
Direct Known Subclasses:
NullDocEventXMLFilter

public class ECHORequestReaderAdapter
extends org.xml.sax.helpers.XMLFilterImpl

provides a SAX 2 XMLReader interface on top of an ECHO Request element


Constructor Summary
ECHORequestReaderAdapter(ECHOContext ctxt, ECHORequest req)
          construct with the ECHO request to be evaluated, and the context to be provided to that evaluation
 
Method Summary
 boolean getSendDocEvents(boolean state)
           
 void parse(org.xml.sax.InputSource s)
          evaluate the ECHO request object, routing it's SAX event stream to our ContentHandler
 void setFeature(java.lang.String name, boolean value)
          Set a feature flag for the parser.
 void setSendDocEvents(boolean state)
           
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setParent, setProperty, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECHORequestReaderAdapter

public ECHORequestReaderAdapter(ECHOContext ctxt,
                                ECHORequest req)
construct with the ECHO request to be evaluated, and the context to be provided to that evaluation

Method Detail

parse

public void parse(org.xml.sax.InputSource s)
           throws org.xml.sax.SAXException
evaluate the ECHO request object, routing it's SAX event stream to our ContentHandler

Throws:
org.xml.sax.SAXException

setSendDocEvents

public void setSendDocEvents(boolean state)

getSendDocEvents

public boolean getSendDocEvents(boolean state)

setFeature

public void setFeature(java.lang.String name,
                       boolean value)
                throws org.xml.sax.SAXNotRecognizedException,
                       org.xml.sax.SAXNotSupportedException
Set a feature flag for the parser.

The only features recognized are namespaces and namespace-prefixes.

Parameters:
name - The feature name, as a complete URI.
value - The requested feature value.
Throws:
org.xml.sax.SAXNotRecognizedException - If the feature can't be assigned or retrieved.
org.xml.sax.SAXNotSupportedException - If the feature can't be assigned that value.
See Also:
XMLReader.setFeature(java.lang.String, boolean)