Uses of Enum
org.apache.sling.xss.ProtectionContext
-
Uses of ProtectionContext in org.apache.sling.xss
Modifier and TypeFieldDescriptionstatic final ProtectionContext
XSSFilter.DEFAULT_CONTEXT
Default context.Modifier and TypeMethodDescriptionstatic ProtectionContext
Gets a protection context from the specified name.static ProtectionContext
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 TypeMethodDescriptionboolean
XSSFilter.check
(ProtectionContext context, String src) Indicates whether or not a given source string contains XSS policy violations.XSSFilter.filter
(ProtectionContext context, String src) Protects the given source string from containing XSS stuff.