Package com.day.cq.xss
Interface EscapingRule
-
@Deprecated public interface EscapingRuleDeprecated.This interface must be implemented for eachProtectionContext.- Since:
- 5.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidconfigure(java.lang.String policyPath, java.lang.String[] relPathPrefixes, SlingRepository repository)Deprecated.Configures the rule.java.lang.Stringescape(java.lang.String str)Deprecated.Escapes the specified string according to the implementes rule.
-
-
-
Method Detail
-
configure
void configure(java.lang.String policyPath, java.lang.String[] relPathPrefixes, SlingRepository repository) throws XSSProtectionExceptionDeprecated.Configures the rule.- Parameters:
policyPath- Path to the policy file to be usedrelPathPrefixes- Array containing prefixes for resolving relative path prefixesrepository- The repository to use- Throws:
XSSProtectionException- if an error occured during configuring the service
-
escape
java.lang.String escape(java.lang.String str) throws XSSProtectionExceptionDeprecated.Escapes the specified string according to the implementes rule.- Parameters:
str- The string to be encoded- Returns:
- The escaped string
- Throws:
XSSProtectionException- if an error occured while escaping the string
-
-