public class AttributeNameRegexpFilter extends DeXSSFilterImpl
add(String)
.xssChangeListener
Constructor and Description |
---|
AttributeNameRegexpFilter(DeXSSChangeListener xssChangeListener,
java.util.List<java.util.regex.Pattern> regexps) |
AttributeNameRegexpFilter(DeXSSChangeListener xssChangeListener,
java.lang.String regexp) |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String regexp)
Adds regexp to the list of 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 AttributeNameRegexpFilter(DeXSSChangeListener xssChangeListener, java.util.List<java.util.regex.Pattern> regexps)
public AttributeNameRegexpFilter(DeXSSChangeListener xssChangeListener, java.lang.String regexp)
public void add(java.lang.String regexp)
regexp
- regexp 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