Package org.apache.shiro.web.env
Interface MutableWebEnvironment
- All Superinterfaces:
org.apache.shiro.env.Environment,WebEnvironment
- All Known Implementing Classes:
DefaultWebEnvironment,IniWebEnvironment,ResourceBasedWebEnvironment
A
WebEnvironment that supports 'write' operations operations. This mainly exists to shield
WebEnvironment API consumers from modification operations, which are mostly only used during Shiro
environment initialization.- Since:
- 1.2
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetFilterChainResolver(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.env.Environment
getSecurityManagerMethods inherited from interface org.apache.shiro.web.env.WebEnvironment
getFilterChainResolver, getServletContext, getShiroFilterConfiguration, getWebSecurityManager
-
Method Details
-
setFilterChainResolver
Sets theWebEnvironment'sFilterChainResolver.- Parameters:
filterChainResolver- theWebEnvironment'sFilterChainResolver.
-
setServletContext
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
Sets theWebEnvironment'sWebSecurityManager.- Parameters:
webSecurityManager- theWebEnvironment'sWebSecurityManager.
-
setShiroFilterConfiguration
Sets theWebEnvironment'sShiroFilterConfiguration.- Parameters:
filterConfiguration- theWebEnvironment'sShiroFilterConfiguration.
-