Interface WebEnvironment
- All Superinterfaces:
org.apache.shiro.env.Environment
- All Known Subinterfaces:
MutableWebEnvironment
- All Known Implementing Classes:
DefaultWebEnvironment,IniWebEnvironment,ResourceBasedWebEnvironment
A web-specific
Environment instance, used in web applications.- Since:
- 1.2
-
Method Summary
Modifier and TypeMethodDescriptionReturns the web application'sFilterChainResolverif one has been configured ornullif one is not available.javax.servlet.ServletContextReturns theServletContextassociated with thisWebEnvironmentinstance.default ShiroFilterConfigurationReturns the configuration object used to configure the ShiroFilter.Returns the web application's security manager instance.Methods inherited from interface org.apache.shiro.env.Environment
getSecurityManager
-
Method Details
-
getFilterChainResolver
Returns the web application'sFilterChainResolverif one has been configured ornullif one is not available.- Returns:
- the web application's
FilterChainResolverif one has been configured ornullif one is not available.
-
getServletContext
javax.servlet.ServletContext getServletContext()Returns theServletContextassociated with thisWebEnvironmentinstance. A web application typically only has a singleWebEnvironmentassociated with itsServletContext.- Returns:
- the
ServletContextassociated with thisWebEnvironmentinstance.
-
getWebSecurityManager
Returns the web application's security manager instance.- Returns:
- the web application's security manager instance.
-
getShiroFilterConfiguration
Returns the configuration object used to configure the ShiroFilter.- Returns:
- the configuration object used to configure the ShiroFilter.
-