Interface EscapingRule


@Deprecated public interface EscapingRule
Deprecated.
This interface must be implemented for each ProtectionContext.
Since:
5.4
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configure(String policyPath, String[] relPathPrefixes, SlingRepository repository)
    Deprecated.
    Configures the rule.
    Deprecated.
    Escapes the specified string according to the implementes rule.
  • Method Details

    • configure

      void configure(String policyPath, String[] relPathPrefixes, SlingRepository repository) throws XSSProtectionException
      Deprecated.
      Configures the rule.
      Parameters:
      policyPath - Path to the policy file to be used
      relPathPrefixes - Array containing prefixes for resolving relative path prefixes
      repository - The repository to use
      Throws:
      XSSProtectionException - if an error occured during configuring the service
    • escape

      String escape(String str) throws XSSProtectionException
      Deprecated.
      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