public interface XSSFilter
| Modifier and Type | Field and Description |
|---|---|
static ProtectionContext |
DEFAULT_CONTEXT
Default context.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(ProtectionContext context,
String src)
Indicates whether or not a given source string contains XSS policy violations.
|
String |
filter(ProtectionContext context,
String src)
Protects the given source string from containing XSS stuff.
|
String |
filter(String src)
Prevents the given source string from containing XSS stuff.
|
static final ProtectionContext DEFAULT_CONTEXT
boolean check(ProtectionContext context, String src)
context - context to use for checkingsrc - source stringNullPointerException - if context is nullString filter(String src)
src - source stringString filter(ProtectionContext context, String src)
context - context to use for checkingsrc - source stringNullPointerException - if context is nullCopyright © 2007–2015 The Apache Software Foundation. All rights reserved.