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

A

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

B

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

C

characters(char[], int, int) - Method in class com.xerox.adoc.dexss.filters.BodyContentsFilter
 
characters(char[], int, int) - Method in class com.xerox.adoc.dexss.filters.ElementRemovalFilter
 
characters(char[], int, int) - Method in class com.xerox.adoc.dexss.filters.IdentityFilter
 
clearAttribute(Attributes, int) - Static method in class com.xerox.adoc.dexss.Utils
Given a SAX2 Attributes and an index, remove the specified attribute as best we can.
com.xerox.adoc.dexss - package com.xerox.adoc.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).
com.xerox.adoc.dexss.filters - package com.xerox.adoc.dexss.filters
Implements a set of XMLFilters to protect against Cross-Site Scripting (XSS).
createInstance(DeXSSChangeListener, Writer) - Static method in class com.xerox.adoc.dexss.DeXSS
Create a DeXSS object using createInstance.

D

DeXSS - Class in com.xerox.adoc.dexss
Call createInstance to specify an xssChangeWriter and a Writer.
DEXSS_CHANGE_LISTENER - Static variable in class com.xerox.adoc.dexss.DeXSSFilterPipeline
Property.
DeXSSChangeListener - Interface in com.xerox.adoc.dexss
Objects implementing this interface are suitable for Property DeXSSFilterPipeline#DeXSS_CHANGE_LISTENER.
DeXSSFilterImpl - Class in com.xerox.adoc.dexss.filters
Base class for XSS filters Extends XMLFilterImpl and provides the methods for DeXSSChangeListener.
DeXSSFilterImpl(DeXSSChangeListener) - Constructor for class com.xerox.adoc.dexss.filters.DeXSSFilterImpl
 
DeXSSFilterPipeline - Class in com.xerox.adoc.dexss
DeXSSFilterPipeline sets up a pipeline of other filters.
DeXSSFilterPipeline() - Constructor for class com.xerox.adoc.dexss.DeXSSFilterPipeline
 
DeXSSParser - Class in com.xerox.adoc.dexss
The DeXSSParser object.
DeXSSParser() - Constructor for class com.xerox.adoc.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 com.xerox.adoc.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 com.xerox.adoc.dexss.filters.ElementLiftingFilter
 
ElementLiftingFilter(DeXSSChangeListener, Set) - Constructor for class com.xerox.adoc.dexss.filters.ElementLiftingFilter
 
ElementRemovalFilter - Class in com.xerox.adoc.dexss.filters
Element Removal Filter; Removes the specified element and all its content.
ElementRemovalFilter(DeXSSChangeListener, String) - Constructor for class com.xerox.adoc.dexss.filters.ElementRemovalFilter
Element Removal Filter Removes Elements matching elementName.
ElementReplacementFilter - Class in com.xerox.adoc.dexss.filters
Element Replacement filter; replaces one element name with another, but leaves content alone.
ElementReplacementFilter(DeXSSChangeListener) - Constructor for class com.xerox.adoc.dexss.filters.ElementReplacementFilter
 
ElementReplacementFilter(DeXSSChangeListener, Map) - Constructor for class com.xerox.adoc.dexss.filters.ElementReplacementFilter
 
endElement(String, String, String) - Method in class com.xerox.adoc.dexss.filters.BodyContentsFilter
 
endElement(String, String, String) - Method in class com.xerox.adoc.dexss.filters.ElementLiftingFilter
 
endElement(String, String, String) - Method in class com.xerox.adoc.dexss.filters.ElementRemovalFilter
 
endElement(String, String, String) - Method in class com.xerox.adoc.dexss.filters.ElementReplacementFilter
 
endElement(String, String, String) - Method in class com.xerox.adoc.dexss.filters.IdentityFilter
 

G

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

I

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

L

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

M

main(String[]) - Static method in class com.xerox.adoc.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.

P

process(String) - Method in class com.xerox.adoc.dexss.DeXSS
Call createInstance to specify an xssChangeWriter and a Writer.

R

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

S

setDeXSSChangeListener(DeXSSChangeListener) - Method in class com.xerox.adoc.dexss.DeXSSFilterPipeline
Equivalent to setProperty(DeXSSFilterPipeline.DEXSS_CHANGE_LISTENER, xssChangeListener)
setDeXSSChangeListener(DeXSSChangeListener) - Method in class com.xerox.adoc.dexss.filters.DeXSSFilterImpl
 
setFeature(String, boolean) - Method in class com.xerox.adoc.dexss.DeXSSFilterPipeline
Processes feature DeXSSFilterPipeline.BODY_ONLY directly; other features are referred to the superclass.
setParent(XMLReader) - Method in class com.xerox.adoc.dexss.DeXSSFilterPipeline
Specializes XMLFilterImpl.setParent(XMLReader) and constructs the DeXSS filter pipeline first.
setParent(XMLReader) - Method in class com.xerox.adoc.dexss.filters.DeXSSFilterImpl
 
setProperty(String, Object) - Method in class com.xerox.adoc.dexss.DeXSSFilterPipeline
Processes property DeXSSFilterPipeline.DEXSS_CHANGE_LISTENER directly; other features are referred to the superclass.
startElement(String, String, String, Attributes) - Method in class com.xerox.adoc.dexss.filters.AttributeNameRegexpFilter
 
startElement(String, String, String, Attributes) - Method in class com.xerox.adoc.dexss.filters.AttributeNameRemovalFilter
 
startElement(String, String, String, Attributes) - Method in class com.xerox.adoc.dexss.filters.AttributeNameStartFilter
 
startElement(String, String, String, Attributes) - Method in class com.xerox.adoc.dexss.filters.AttributeValueFilter
 
startElement(String, String, String, Attributes) - Method in class com.xerox.adoc.dexss.filters.AttributeValueRegexpFilter
 
startElement(String, String, String, Attributes) - Method in class com.xerox.adoc.dexss.filters.AttributeValueStartFilter
 
startElement(String, String, String, Attributes) - Method in class com.xerox.adoc.dexss.filters.BodyContentsFilter
 
startElement(String, String, String, Attributes) - Method in class com.xerox.adoc.dexss.filters.ElementLiftingFilter
 
startElement(String, String, String, Attributes) - Method in class com.xerox.adoc.dexss.filters.ElementRemovalFilter
 
startElement(String, String, String, Attributes) - Method in class com.xerox.adoc.dexss.filters.ElementReplacementFilter
 
startElement(String, String, String, Attributes) - Method in class com.xerox.adoc.dexss.filters.IdentityFilter
 

T

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

U

Utils - Class in com.xerox.adoc.dexss
Utility functions
Utils() - Constructor for class com.xerox.adoc.dexss.Utils
 

X

xssChangeListener - Variable in class com.xerox.adoc.dexss.filters.DeXSSFilterImpl
 

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