public class ShiroFilterConfiguration extends Object
| Constructor and Description |
|---|
ShiroFilterConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFilterOncePerRequest()
Returns
true if the filter should only execute once per request. |
boolean |
isStaticSecurityManagerEnabled()
Returns
true if the constructed SecurityManager associated with the filter
should be bound to static memory (via
SecurityUtils.setSecurityManager),
false otherwise. |
void |
setFilterOncePerRequest(boolean filterOncePerRequest)
Sets whether the filter executes once per request or for every invocation of the filter.
|
ShiroFilterConfiguration |
setStaticSecurityManagerEnabled(boolean staticSecurityManagerEnabled)
Sets if the constructed
SecurityManager associated with the filter should be bound
to static memory (via SecurityUtils.setSecurityManager). |
public boolean isFilterOncePerRequest()
true if the filter should only execute once per request. If set to false the filter
will execute each time it is invoked.true if this filter should only execute once per request.public void setFilterOncePerRequest(boolean filterOncePerRequest)
RequestDispatcher to forward
or include request (JSP tags, programmatically, or via a framework).filterOncePerRequest - Whether this filter executes once per request.public boolean isStaticSecurityManagerEnabled()
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.
true if the constructed SecurityManager associated with the filter should be bound
to static memory (via SecurityUtils.setSecurityManager),
false otherwise.public ShiroFilterConfiguration setStaticSecurityManagerEnabled(boolean staticSecurityManagerEnabled)
SecurityManager associated with the filter should be bound
to static memory (via SecurityUtils.setSecurityManager).
The default value is false.staticSecurityManagerEnabled - if the constructed SecurityManager associated with the filter
should be bound to static memory (via
SecurityUtils.setSecurityManager).Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.