com.sun.xml.messaging.saaj.util
Class RejectDoctypeSaxFilter
java.lang.Object
org.xml.sax.helpers.XMLFilterImpl
com.sun.xml.messaging.saaj.util.RejectDoctypeSaxFilter
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler, LexicalHandler, XMLFilter, XMLReader
public class RejectDoctypeSaxFilter
- extends XMLFilterImpl
- implements XMLReader, LexicalHandler
Users of this class see a SAX2 XMLReader (via XMLFilterImpl). This
class creates a parent XMLReader via JAXP and installs itself as a SAX2
extension LexicalHandler which rejects document type declarations
because they are not legal in SOAP. If the user of this class sets a
LexicalHandler, then it forwards events to that handler.
- Author:
- Edwin Goei
| 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, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xml.sax.XMLReader |
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getProperty, parse, parse, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature |
log
protected static final Logger log
RejectDoctypeSaxFilter
public RejectDoctypeSaxFilter(SAXParser saxParser)
throws SOAPException
- Throws:
SOAPException
setProperty
public void setProperty(String name,
Object value)
throws SAXNotRecognizedException,
SAXNotSupportedException
- Specified by:
setProperty in interface XMLReader- Overrides:
setProperty in class XMLFilterImpl
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
startDTD
public void startDTD(String name,
String publicId,
String systemId)
throws SAXException
- Specified by:
startDTD in interface LexicalHandler
- Throws:
SAXException
endDTD
public void endDTD()
throws SAXException
- Specified by:
endDTD in interface LexicalHandler
- Throws:
SAXException
startEntity
public void startEntity(String name)
throws SAXException
- Specified by:
startEntity in interface LexicalHandler
- Throws:
SAXException
endEntity
public void endEntity(String name)
throws SAXException
- Specified by:
endEntity in interface LexicalHandler
- Throws:
SAXException
startCDATA
public void startCDATA()
throws SAXException
- Specified by:
startCDATA in interface LexicalHandler
- Throws:
SAXException
endCDATA
public void endCDATA()
throws SAXException
- Specified by:
endCDATA in interface LexicalHandler
- Throws:
SAXException
comment
public void comment(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
comment in interface LexicalHandler
- Throws:
SAXException
startElement
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
throws SAXException
- Specified by:
startElement in interface ContentHandler- Overrides:
startElement in class XMLFilterImpl
- Throws:
SAXException
Copyright © 2005-2011 Oracle Corporation. All Rights Reserved.