Class DefaultXSSFilterConfig

    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultXSSFilterConfig​(javax.servlet.FilterConfig filterConfig)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      XSSMatchAction getActionOnMatch()
      The action to be performed whenever a value is encountered which matches a filtering pattern.
      java.util.Map<java.lang.String,​java.lang.String> getHeadersToInject()
      In addition to matching patterns this method allows to specify a map of response headers to be injected into each response.
      java.util.Map<java.lang.String,​java.lang.String> getHostHeaderWhiteList()
      RegExp patterns that host header whitelist is made of.
      java.util.Map<java.lang.String,​java.lang.String> getPatternDefinitions()
      All regExp patterns to scan for.
      boolean isEnabled()
      Enables/disables XSS logic.
      void registerForConfigChanges​(XSSFilter toUpdateOnConfigChange)
      Called by the filter in case it wants to be notified on configuration changes ( any property matching XSSFilter.CONFIG_RULE_PREFIX_REGEXP ).
      boolean sortRules()
      Enables sorting rules by their names in alphabetical order.
      void unregisterConfigChangeListener()
      Called by the filter when it does no longer wants to be notified about configuration changes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait