| Package | Description | 
|---|---|
| org.apache.sling.xss | 
 XSS Protection Service 
 | 
| Modifier and Type | Field and Description | 
|---|---|
static ProtectionContext | 
XSSFilter.DEFAULT_CONTEXT
Default context. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static ProtectionContext | 
ProtectionContext.fromName(String name)
Gets a protection context from the specified name. 
 | 
static ProtectionContext | 
ProtectionContext.valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static ProtectionContext[] | 
ProtectionContext.values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
XSSFilter.check(ProtectionContext context,
     String src)
Indicates whether or not a given source string contains XSS policy violations. 
 | 
String | 
XSSFilter.filter(ProtectionContext context,
      String src)
Protects the given source string from containing XSS stuff. 
 | 
Copyright © 2017 The Apache Software Foundation. All rights reserved.