Package org.apache.shiro.web.env
Interface MutableWebEnvironment
-
- All Superinterfaces:
org.apache.shiro.env.Environment,WebEnvironment
- All Known Implementing Classes:
DefaultWebEnvironment,IniWebEnvironment,ResourceBasedWebEnvironment
public interface MutableWebEnvironment extends WebEnvironment
AWebEnvironmentthat supports 'write' operations operations. This mainly exists to shieldWebEnvironmentAPI consumers from modification operations, which are mostly only used during Shiro environment initialization.- Since:
- 1.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetFilterChainResolver(FilterChainResolver filterChainResolver)Sets theWebEnvironment'sFilterChainResolver.voidsetServletContext(javax.servlet.ServletContext servletContext)Sets theWebEnvironment's associatedServletContextinstance.voidsetShiroFilterConfiguration(ShiroFilterConfiguration filterConfiguration)Sets theWebEnvironment'sShiroFilterConfiguration.voidsetWebSecurityManager(WebSecurityManager webSecurityManager)Sets theWebEnvironment'sWebSecurityManager.-
Methods inherited from interface org.apache.shiro.web.env.WebEnvironment
getFilterChainResolver, getServletContext, getShiroFilterConfiguration, getWebSecurityManager
-
-
-
-
Method Detail
-
setFilterChainResolver
void setFilterChainResolver(FilterChainResolver filterChainResolver)
Sets theWebEnvironment'sFilterChainResolver.- Parameters:
filterChainResolver- theWebEnvironment'sFilterChainResolver.
-
setServletContext
void setServletContext(javax.servlet.ServletContext servletContext)
Sets theWebEnvironment's associatedServletContextinstance. Invoking this method merely makes theServletContextavailable to the underlying instance - it does not trigger initialization behavior.- Parameters:
servletContext- theWebEnvironment's associatedServletContextinstance.
-
setWebSecurityManager
void setWebSecurityManager(WebSecurityManager webSecurityManager)
Sets theWebEnvironment'sWebSecurityManager.- Parameters:
webSecurityManager- theWebEnvironment'sWebSecurityManager.
-
setShiroFilterConfiguration
void setShiroFilterConfiguration(ShiroFilterConfiguration filterConfiguration)
Sets theWebEnvironment'sShiroFilterConfiguration.- Parameters:
filterConfiguration- theWebEnvironment'sShiroFilterConfiguration.
-
-