A B C D E F G I L M O P R S T U X 

A

add(String) - Method in class org.dexss.filters.AttributeNameRegexpFilter
Adds regexp to the list of regexps for attribute names that this filter should remove.
add(String) - Method in class org.dexss.filters.AttributeNameRemovalFilter
Adds name to the list names regexps for attribute names that this filter should remove.
add(String) - Method in class org.dexss.filters.AttributeNameStartFilter
Adds startsWith to the list of starting strings of attribute names that this filter should remove.
add(String) - Method in class org.dexss.filters.AttributeValueFilter
Adds contains to the list strings for attribute values that this filter should remove.
add(String) - Method in class org.dexss.filters.AttributeValueRegexpFilter
Adds regexp to the list of regexps for attribute values that this filter should remove.
add(String) - Method in class org.dexss.filters.AttributeValueStartFilter
Adds startsWith to the list of startting strings for attribute values that this filter should remove.
add(String) - Method in class org.dexss.filters.ElementLiftingFilter
Adds tagname to the list of names for element names that this filter should "lift".
add(String, String) - Method in class org.dexss.filters.ElementReplacementFilter
Adds from and to to the list of element names for elements names that this filter should rename.
AttributeNameRegexpFilter - Class in org.dexss.filters
Attribute Removal Filter; Removes attributes matching regexps added with AttributeNameRegexpFilter.add(String).
AttributeNameRegexpFilter(DeXSSChangeListener, List<Pattern>) - Constructor for class org.dexss.filters.AttributeNameRegexpFilter
 
AttributeNameRegexpFilter(DeXSSChangeListener, String) - Constructor for class org.dexss.filters.AttributeNameRegexpFilter
 
AttributeNameRemovalFilter - Class in org.dexss.filters
Attribute Removal Filter; Removes attributes matching names added with AttributeNameRemovalFilter.add(String).
AttributeNameRemovalFilter(DeXSSChangeListener) - Constructor for class org.dexss.filters.AttributeNameRemovalFilter
 
AttributeNameRemovalFilter(DeXSSChangeListener, Set<String>) - Constructor for class org.dexss.filters.AttributeNameRemovalFilter
 
AttributeNameStartFilter - Class in org.dexss.filters
Attribute Start Filter; removes attributes whose name starts with the specified name
AttributeNameStartFilter(DeXSSChangeListener) - Constructor for class org.dexss.filters.AttributeNameStartFilter
 
AttributeNameStartFilter(DeXSSChangeListener, List<String>) - Constructor for class org.dexss.filters.AttributeNameStartFilter
 
AttributeNameStartFilter(DeXSSChangeListener, String) - Constructor for class org.dexss.filters.AttributeNameStartFilter
 
AttributeNameValueReplacementFilter - Class in org.dexss.filters
Attribute Name/Value replacement Filter; Updates attribute values with specified name by with the specified callback.
AttributeNameValueReplacementFilter(DeXSSChangeListener, String, StringFilter) - Constructor for class org.dexss.filters.AttributeNameValueReplacementFilter
 
AttributeValueFilter - Class in org.dexss.filters
Attribute Value Filter; removes attributes whose value contains the specified content
AttributeValueFilter(DeXSSChangeListener, List<String>) - Constructor for class org.dexss.filters.AttributeValueFilter
 
AttributeValueFilter(DeXSSChangeListener, String) - Constructor for class org.dexss.filters.AttributeValueFilter
 
AttributeValueRegexpFilter - Class in org.dexss.filters
AttributeValue Regexp Filter; removes attributes whose content matches the specified regexp
AttributeValueRegexpFilter(DeXSSChangeListener, List<Pattern>) - Constructor for class org.dexss.filters.AttributeValueRegexpFilter
 
AttributeValueRegexpFilter(DeXSSChangeListener, String) - Constructor for class org.dexss.filters.AttributeValueRegexpFilter
 
AttributeValueRegexpFilter(DeXSSChangeListener, String, int) - Constructor for class org.dexss.filters.AttributeValueRegexpFilter
 
AttributeValueStartFilter - Class in org.dexss.filters
Attribute Start Filter; removes attributes whose content starts with the specified content
AttributeValueStartFilter(DeXSSChangeListener, String, List<String>) - Constructor for class org.dexss.filters.AttributeValueStartFilter
 
AttributeValueStartFilter(DeXSSChangeListener, String) - Constructor for class org.dexss.filters.AttributeValueStartFilter
 

B

BODY_ONLY - Static variable in class org.dexss.DeXSSFilterPipeline
Feature.
BodyContentsFilter - Class in org.dexss.filters
Body Contents Filter; drops everything that's not in <body>
BodyContentsFilter(DeXSSChangeListener) - Constructor for class org.dexss.filters.BodyContentsFilter
 

C

characters(char[], int, int) - Method in class org.dexss.filters.BodyContentsFilter
 
characters(char[], int, int) - Method in class org.dexss.filters.ElementRemovalFilter
 
characters(char[], int, int) - Method in class org.dexss.filters.IdentityFilter
 
clearAttribute(Attributes, int) - Static method in class org.dexss.Utils
Given a SAX2 Attributes and an index, remove the specified attribute as best we can.
CSSParsingStringFilter - Class in org.dexss.filters
CSS String value replacement Filter.
CSSParsingStringFilter(DeXSSChangeListener) - Constructor for class org.dexss.filters.CSSParsingStringFilter
 

D

DeXSS - Class in org.dexss
Call createInstance to specify an xssChangeWriter and a Writer.
DeXSS() - Constructor for class org.dexss.DeXSS
Create a DeXSS object.
DEXSS_CHANGE_LISTENER - Static variable in class org.dexss.DeXSSFilterPipeline
Property.
DeXSSChangeListener - Interface in org.dexss
Objects implementing this interface are suitable for Property DeXSSFilterPipeline#DeXSS_CHANGE_LISTENER.
DeXSSFilterImpl - Class in org.dexss.filters
Base class for XSS filters Extends XMLFilterImpl and provides the methods for DeXSSChangeListener.
DeXSSFilterImpl(DeXSSChangeListener) - Constructor for class org.dexss.filters.DeXSSFilterImpl
 
DeXSSFilterPipeline - Class in org.dexss
DeXSSFilterPipeline sets up a pipeline of other filters.
DeXSSFilterPipeline() - Constructor for class org.dexss.DeXSSFilterPipeline
 
DeXSSParser - Class in org.dexss
The DeXSSParser object.
DeXSSParser() - Constructor for class org.dexss.DeXSSParser
Creates a DeXSSParser with the following feature set: DeXSSFilterPipeline.BODY_ONLY true And uses as parent a org.ccil.cowan.tagsoup.Parser with the following feature set: org.ccil.cowan.tagsoup.Parser#ignoreBogonsFeature true org.ccil.cowan.tagsoup.Parser#defaultAttributesFeature false TODO: Should be made more configurable.

E

ElementLiftingFilter - Class in org.dexss.filters
Element Lifting Filter; Lifts content of matching element (and its attributes) by eliding it and replacing it with its own content.
ElementLiftingFilter(DeXSSChangeListener) - Constructor for class org.dexss.filters.ElementLiftingFilter
 
ElementLiftingFilter(DeXSSChangeListener, Set<String>) - Constructor for class org.dexss.filters.ElementLiftingFilter
 
ElementRemovalFilter - Class in org.dexss.filters
Element Removal Filter; Removes the specified element and all its content.
ElementRemovalFilter(DeXSSChangeListener, String) - Constructor for class org.dexss.filters.ElementRemovalFilter
Element Removal Filter Removes Elements matching elementName.
ElementReplacementFilter - Class in org.dexss.filters
Element Replacement filter; replaces one element name with another, but leaves content alone.
ElementReplacementFilter(DeXSSChangeListener) - Constructor for class org.dexss.filters.ElementReplacementFilter
 
ElementReplacementFilter(DeXSSChangeListener, Map<String, String>) - Constructor for class org.dexss.filters.ElementReplacementFilter
 
endElement(String, String, String) - Method in class org.dexss.filters.BodyContentsFilter
 
endElement(String, String, String) - Method in class org.dexss.filters.ElementLiftingFilter
 
endElement(String, String, String) - Method in class org.dexss.filters.ElementRemovalFilter
 
endElement(String, String, String) - Method in class org.dexss.filters.ElementReplacementFilter
 
endElement(String, String, String) - Method in class org.dexss.filters.IdentityFilter
 

F

filter(String) - Method in class org.dexss.filters.CSSParsingStringFilter
Runs string through corgrath-osbcp-css-parser.
filter(String) - Method in interface org.dexss.filters.StringFilter
 

G

getDeXSSChangeListener() - Method in class org.dexss.DeXSSFilterPipeline
Equivalent to getProperty(#DeXSS_CHANGE_LISTENER)
getFeature(String) - Method in class org.dexss.DeXSSFilterPipeline
Processes feature DeXSSFilterPipeline.BODY_ONLY directly; other features are referred to the superclass.
getProperty(String) - Method in class org.dexss.DeXSSFilterPipeline
Processes property DeXSSFilterPipeline.DEXSS_CHANGE_LISTENER directly; other properties are referred to the superclass.
getXSSChangeListener() - Method in class org.dexss.filters.DeXSSFilterImpl
 

I

IdentityFilter - Class in org.dexss.filters
Identity Filter; Makes no changes.
IdentityFilter(DeXSSChangeListener) - Constructor for class org.dexss.filters.IdentityFilter
 
ignorableWhitespace(char[], int, int) - Method in class org.dexss.filters.BodyContentsFilter
 
ignorableWhitespace(char[], int, int) - Method in class org.dexss.filters.ElementRemovalFilter
 
ignorableWhitespace(char[], int, int) - Method in class org.dexss.filters.IdentityFilter
 

L

logXSSChange(String) - Method in interface org.dexss.DeXSSChangeListener
Called when a change happens but there is no other information.
logXSSChange(String, String) - Method in interface org.dexss.DeXSSChangeListener
Called when a change happens and there is one other informational item.
logXSSChange(String, String, String) - Method in interface org.dexss.DeXSSChangeListener
Called when a change happens and there are two informational items.
logXSSChange(String) - Method in class org.dexss.DeXSSFilterPipeline
Called when a change happens and there are no informational items.
logXSSChange(String, String) - Method in class org.dexss.DeXSSFilterPipeline
Called when a change happens and there is one informational item.
logXSSChange(String, String, String) - Method in class org.dexss.DeXSSFilterPipeline
Called when a change happens and there are two informational items.
logXSSChange(String) - Method in class org.dexss.filters.DeXSSFilterImpl
 
logXSSChange(String, String) - Method in class org.dexss.filters.DeXSSFilterImpl
 
logXSSChange(String, String, String) - Method in class org.dexss.filters.DeXSSFilterImpl
 
logXSSChange(String) - Method in class org.dexss.Test
 
logXSSChange(String, String) - Method in class org.dexss.Test
 
logXSSChange(String, String, String) - Method in class org.dexss.Test
 

M

main(String[]) - Static method in class org.dexss.Test
This command-line test program processes the specified files or literals, and for each one prints to System.out the following: the file name (if any) Any change messages from DeXSSChangeListener Serialized XML result A summary indicating whether the input changed or not (based on whether there were any XSSChangeListener messages) TODO: A better test and regression harness.

O

org.dexss - package org.dexss
Provides a SAX2 Parser which uses TagSoup to parse the input, and then invokes a pipeline of XMLFilters to protect against Cross-Site Scripting (XSS).
org.dexss.filters - package org.dexss.filters
Implements a set of XMLFilters to protect against Cross-Site Scripting (XSS).

P

process(String) - Method in class org.dexss.DeXSS
Call process to parse inputString using TagSoup.
process(String, DeXSSChangeListener) - Method in class org.dexss.DeXSS
 

R

removeAttribute(Attributes, int) - Static method in class org.dexss.Utils
Given a SAX2 Attributes and an index, remove the specified attribute as best we can.

S

setAttributeValue(Attributes, int, String) - Static method in class org.dexss.Utils
Given a SAX2 Attributes and an index, set the specified attribute as best we can.
setDeXSSChangeListener(DeXSSChangeListener) - Method in class org.dexss.DeXSSFilterPipeline
Equivalent to setProperty(DeXSSFilterPipeline.DEXSS_CHANGE_LISTENER, xssChangeListener)
setDeXSSChangeListener(DeXSSChangeListener) - Method in class org.dexss.filters.DeXSSFilterImpl
 
setFeature(String, boolean) - Method in class org.dexss.DeXSSFilterPipeline
Processes feature DeXSSFilterPipeline.BODY_ONLY directly; other features are referred to the superclass.
setParent(XMLReader) - Method in class org.dexss.DeXSSFilterPipeline
Specializes XMLFilterImpl.setParent(XMLReader) and constructs the DeXSS filter pipeline first.
setParent(XMLReader) - Method in class org.dexss.filters.DeXSSFilterImpl
 
setProperty(String, Object) - Method in class org.dexss.DeXSSFilterPipeline
Processes property DeXSSFilterPipeline.DEXSS_CHANGE_LISTENER directly; other features are referred to the superclass.
startElement(String, String, String, Attributes) - Method in class org.dexss.filters.AttributeNameRegexpFilter
 
startElement(String, String, String, Attributes) - Method in class org.dexss.filters.AttributeNameRemovalFilter
 
startElement(String, String, String, Attributes) - Method in class org.dexss.filters.AttributeNameStartFilter
 
startElement(String, String, String, Attributes) - Method in class org.dexss.filters.AttributeNameValueReplacementFilter
 
startElement(String, String, String, Attributes) - Method in class org.dexss.filters.AttributeValueFilter
 
startElement(String, String, String, Attributes) - Method in class org.dexss.filters.AttributeValueRegexpFilter
 
startElement(String, String, String, Attributes) - Method in class org.dexss.filters.AttributeValueStartFilter
 
startElement(String, String, String, Attributes) - Method in class org.dexss.filters.BodyContentsFilter
 
startElement(String, String, String, Attributes) - Method in class org.dexss.filters.ElementLiftingFilter
 
startElement(String, String, String, Attributes) - Method in class org.dexss.filters.ElementRemovalFilter
 
startElement(String, String, String, Attributes) - Method in class org.dexss.filters.ElementReplacementFilter
 
startElement(String, String, String, Attributes) - Method in class org.dexss.filters.IdentityFilter
 
StringFilter - Interface in org.dexss.filters
String Value replacement Filter;

T

Test - Class in org.dexss
This class satisfies the @link DeXSSChangeListener interface and offers a command-line utility for applying DeXSS to files.
Test() - Constructor for class org.dexss.Test
 

U

Utils - Class in org.dexss
Utility functions
Utils() - Constructor for class org.dexss.Utils
 

X

xssChangeListener - Variable in class org.dexss.filters.DeXSSFilterImpl
 
A B C D E F G I L M O P R S T U X