|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.XMLFilterImpl
com.sun.xml.messaging.saaj.util.RejectDoctypeSaxFilter
public class RejectDoctypeSaxFilter
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.
| Field Summary | |
|---|---|
protected static Logger |
log
|
| Constructor Summary | |
|---|---|
RejectDoctypeSaxFilter(SAXParser saxParser)
|
|
| Method Summary | |
|---|---|
void |
comment(char[] ch,
int start,
int length)
|
void |
endCDATA()
|
void |
endDTD()
|
void |
endEntity(String name)
|
void |
setProperty(String name,
Object value)
|
void |
startCDATA()
|
void |
startDTD(String name,
String publicId,
String systemId)
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
|
void |
startEntity(String name)
|
| 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 |
| Field Detail |
|---|
protected static final Logger log
| Constructor Detail |
|---|
public RejectDoctypeSaxFilter(SAXParser saxParser)
throws SOAPException
SOAPException| Method Detail |
|---|
public void setProperty(String name,
Object value)
throws SAXNotRecognizedException,
SAXNotSupportedException
setProperty in interface XMLReadersetProperty in class org.xml.sax.helpers.XMLFilterImplSAXNotRecognizedException
SAXNotSupportedException
public void startDTD(String name,
String publicId,
String systemId)
throws SAXException
startDTD in interface LexicalHandlerSAXException
public void endDTD()
throws SAXException
endDTD in interface LexicalHandlerSAXException
public void startEntity(String name)
throws SAXException
startEntity in interface LexicalHandlerSAXException
public void endEntity(String name)
throws SAXException
endEntity in interface LexicalHandlerSAXException
public void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerSAXException
public void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerSAXException
public void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlerSAXException
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.XMLFilterImplSAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||