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, warning
public 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.XMLReader
setFeature
in class org.xml.sax.helpers.XMLFilterImpl
name
- feature namestate
- feature stateSAXNotRecognizedException,
- SAXNotSupportedExceptionorg.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public 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.XMLReader
getFeature
in class org.xml.sax.helpers.XMLFilterImpl
name
- feature nameSAXNotRecognizedException,
- SAXNotSupportedExceptionorg.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public 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.XMLReader
setProperty
in class org.xml.sax.helpers.XMLFilterImpl
name
- property nameSAXNotRecognizedException,
- SAXNotSupportedExceptionorg.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public 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.XMLReader
getProperty
in class org.xml.sax.helpers.XMLFilterImpl
name
- property nameSAXNotRecognizedException,
- SAXNotSupportedExceptionorg.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public 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.XMLFilter
setParent
in class org.xml.sax.helpers.XMLFilterImpl
public void logXSSChange(java.lang.String message)
logXSSChange
in interface DeXSSChangeListener
message
- Main messagepublic void logXSSChange(java.lang.String message, java.lang.String item1)
logXSSChange
in interface DeXSSChangeListener
message
- Main messageitem1
- Information itempublic void logXSSChange(java.lang.String message, java.lang.String item1, java.lang.String item2)
logXSSChange
in interface DeXSSChangeListener
message
- Main messageitem1
- Information item 1item2
- Information item 2