public class DeXSSFilterPipeline extends org.xml.sax.helpers.XMLFilterImpl implements DeXSSChangeListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BODY_ONLY
Feature.
|
static java.lang.String |
DEXSS_CHANGE_LISTENER
Property.
|
| Constructor and Description |
|---|
DeXSSFilterPipeline() |
| Modifier and Type | Method and Description |
|---|---|
DeXSSChangeListener |
getDeXSSChangeListener()
Equivalent to
|
boolean |
getFeature(java.lang.String name)
Processes feature
BODY_ONLY directly; other features are referred to the superclass. |
java.lang.Object |
getProperty(java.lang.String name)
Processes property
DEXSS_CHANGE_LISTENER directly; other properties are referred to the superclass. |
void |
logXSSChange(java.lang.String message)
Called when a change happens and there are no informational items.
|
void |
logXSSChange(java.lang.String message,
java.lang.String item1)
Called when a change happens and there is one informational item.
|
void |
logXSSChange(java.lang.String message,
java.lang.String item1,
java.lang.String item2)
Called when a change happens and there are two informational items.
|
void |
setDeXSSChangeListener(DeXSSChangeListener xssChangeListener)
Equivalent to
|
void |
setFeature(java.lang.String name,
boolean state)
Processes feature
BODY_ONLY directly; other features are referred to the superclass. |
void |
setParent(org.xml.sax.XMLReader rr)
Specializes
XMLFilterImpl.setParent(XMLReader) and constructs the DeXSS filter pipeline first. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Processes property
DEXSS_CHANGE_LISTENER directly; other features are referred to the superclass. |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getParent, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warningpublic static final java.lang.String BODY_ONLY
public static final java.lang.String DEXSS_CHANGE_LISTENER
DeXSSChangeListener.public void setFeature(java.lang.String name,
boolean state)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
BODY_ONLY directly; other features are referred to the superclass.setFeature in interface org.xml.sax.XMLReadersetFeature in class org.xml.sax.helpers.XMLFilterImplname - feature namestate - feature stateSAXNotRecognizedException, - SAXNotSupportedExceptionorg.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedExceptionpublic boolean getFeature(java.lang.String name)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
BODY_ONLY directly; other features are referred to the superclass.getFeature in interface org.xml.sax.XMLReadergetFeature in class org.xml.sax.helpers.XMLFilterImplname - feature nameSAXNotRecognizedException, - SAXNotSupportedExceptionorg.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedExceptionpublic void setProperty(java.lang.String name,
java.lang.Object value)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
DEXSS_CHANGE_LISTENER directly; other features are referred to the superclass.setProperty in interface org.xml.sax.XMLReadersetProperty in class org.xml.sax.helpers.XMLFilterImplname - property nameSAXNotRecognizedException, - SAXNotSupportedExceptionorg.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedExceptionpublic java.lang.Object getProperty(java.lang.String name)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
DEXSS_CHANGE_LISTENER directly; other properties are referred to the superclass.getProperty in interface org.xml.sax.XMLReadergetProperty in class org.xml.sax.helpers.XMLFilterImplname - property nameSAXNotRecognizedException, - SAXNotSupportedExceptionorg.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedExceptionpublic void setDeXSSChangeListener(DeXSSChangeListener xssChangeListener)
setProperty(DEXSS_CHANGE_LISTENER, xssChangeListener)getDeXSSChangeListener()public DeXSSChangeListener getDeXSSChangeListener()
getProperty(#DeXSS_CHANGE_LISTENER)DeXSSChangeListener or null if none set.setDeXSSChangeListener(DeXSSChangeListener)public void setParent(org.xml.sax.XMLReader rr)
XMLFilterImpl.setParent(XMLReader) and constructs the DeXSS filter pipeline first.
TODO: Pipeline configuration is controlled by inline boolean constants.
Configuration should be made better, perhaps with a Properties
parameter to the constructor.
setParent in interface org.xml.sax.XMLFiltersetParent in class org.xml.sax.helpers.XMLFilterImplpublic void logXSSChange(java.lang.String message)
logXSSChange in interface DeXSSChangeListenermessage - Main messagepublic void logXSSChange(java.lang.String message,
java.lang.String item1)
logXSSChange in interface DeXSSChangeListenermessage - Main messageitem1 - Information itempublic void logXSSChange(java.lang.String message,
java.lang.String item1,
java.lang.String item2)
logXSSChange in interface DeXSSChangeListenermessage - Main messageitem1 - Information item 1item2 - Information item 2