Class ShiroFilterConfiguration

java.lang.Object
org.apache.shiro.web.config.ShiroFilterConfiguration

public class ShiroFilterConfiguration extends Object
Configuration for Shiro's root level servlet filter.
Since:
1.10.0
  • Constructor Details

  • Method Details

    • isFilterOncePerRequest

      public boolean isFilterOncePerRequest()
      Returns true if the filter should only execute once per request. If set to false the filter will execute each time it is invoked.
      Returns:
      true if this filter should only execute once per request.
    • setFilterOncePerRequest

      public void setFilterOncePerRequest(boolean filterOncePerRequest)
      Sets whether the filter executes once per request or for every invocation of the filter. It is recommended to leave this disabled if you are using a RequestDispatcher to forward or include request (JSP tags, programmatically, or via a framework).
      Parameters:
      filterOncePerRequest - Whether this filter executes once per request.
    • isStaticSecurityManagerEnabled

      Returns true if the constructed SecurityManager associated with the filter should be bound to static memory (via SecurityUtils.setSecurityManager), false otherwise.

      The default value is false.

      Returns:
      true if the constructed SecurityManager associated with the filter should be bound to static memory (via SecurityUtils.setSecurityManager), false otherwise.
      See Also:
    • setStaticSecurityManagerEnabled

      public ShiroFilterConfiguration setStaticSecurityManagerEnabled(boolean staticSecurityManagerEnabled)
      Sets if the constructed SecurityManager associated with the filter should be bound to static memory (via SecurityUtils. setSecurityManager).

      The default value is false.

      Parameters:
      staticSecurityManagerEnabled - if the constructed SecurityManager associated with the filter should be bound to static memory (via SecurityUtils. setSecurityManager).
      See Also: