Package org.apache.shiro.web.env
Interface WebEnvironment
-
- All Superinterfaces:
org.apache.shiro.env.Environment
- All Known Subinterfaces:
MutableWebEnvironment
- All Known Implementing Classes:
DefaultWebEnvironment,IniWebEnvironment,ResourceBasedWebEnvironment
public interface WebEnvironment extends org.apache.shiro.env.EnvironmentA web-specificEnvironmentinstance, used in web applications.- Since:
- 1.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description FilterChainResolvergetFilterChainResolver()Returns the web application'sFilterChainResolverif one has been configured ornullif one is not available.javax.servlet.ServletContextgetServletContext()Returns theServletContextassociated with thisWebEnvironmentinstance.default ShiroFilterConfigurationgetShiroFilterConfiguration()Returns the configuration object used to configure the ShiroFilter.WebSecurityManagergetWebSecurityManager()Returns the web application's security manager instance.
-
-
-
Method Detail
-
getFilterChainResolver
FilterChainResolver 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
WebSecurityManager getWebSecurityManager()
Returns the web application's security manager instance.- Returns:
- the web application's security manager instance.
-
getShiroFilterConfiguration
default ShiroFilterConfiguration getShiroFilterConfiguration()
Returns the configuration object used to configure the ShiroFilter.- Returns:
- the configuration object used to configure the ShiroFilter.
-
-