public class AttributeNameRemovalFilter extends DeXSSFilterImpl
add(String)
.xssChangeListener
Constructor and Description |
---|
AttributeNameRemovalFilter(DeXSSChangeListener xssChangeListener) |
AttributeNameRemovalFilter(DeXSSChangeListener xssChangeListener,
java.util.Set<java.lang.String> attributeLocalNames) |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String name)
Adds name to the list names regexps for attribute names that this filter should remove.
|
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, endElement, 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 AttributeNameRemovalFilter(DeXSSChangeListener xssChangeListener)
public AttributeNameRemovalFilter(DeXSSChangeListener xssChangeListener, java.util.Set<java.lang.String> attributeLocalNames)
public void add(java.lang.String name)
name
- name to addpublic 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