public class ElementReplacementFilter extends DeXSSFilterImpl
xssChangeListener
Constructor and Description |
---|
ElementReplacementFilter(DeXSSChangeListener xssChangeListener) |
ElementReplacementFilter(DeXSSChangeListener xssChangeListener,
java.util.Map<java.lang.String,java.lang.String> replacements) |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String from,
java.lang.String to)
Adds from and to to the list of element names for elements names that this filter should rename.
|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName) |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts) |
getXSSChangeListener, logXSSChange, logXSSChange, logXSSChange, setDeXSSChangeListener, setParent
characters, endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public ElementReplacementFilter(DeXSSChangeListener xssChangeListener)
public ElementReplacementFilter(DeXSSChangeListener xssChangeListener, java.util.Map<java.lang.String,java.lang.String> replacements)
public void add(java.lang.String from, java.lang.String to)
from
- old nameto
- new namepublic void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.XMLFilterImpl
org.xml.sax.SAXException
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.XMLFilterImpl
org.xml.sax.SAXException