public class DefaultWebEnvironment extends DefaultEnvironmentimplements MutableWebEnvironment
WebEnvironment implementation based on a backing
Map instance.
DEFAULT_SECURITY_MANAGER_KEY, objects| Constructor and Description |
|---|
DefaultWebEnvironment()
|
| Modifier and Type | Method and Description |
|---|---|
FilterChainResolver |
getFilterChainResolver()
Returns the web application's
FilterChainResolver if one has been configured or
null if one is not available.
|
SecurityManager |
getSecurityManager()
|
ServletContext |
getServletContext()
Returns the
ServletContext associated with this
WebEnvironment instance.
|
WebSecurityManager |
getWebSecurityManager()
Returns the web application's security manager instance.
|
void |
setFilterChainResolver(FilterChainResolver
Sets the
WebEnvironment's
FilterChainResolver.
|
void |
setSecurityManager(SecurityManager
|
void |
setServletContext(ServletContext servletContext)
Sets the
WebEnvironment's associated
ServletContext instance.
|
void |
setWebSecurityManager(WebSecurityManager
Sets the
WebEnvironment's
WebSecurityManager.
|
destroy, getObject, getObjects, getSecurityManagerName, lookupSecurityManager, setObject, setSecurityManagerNamepublic FilterChainResolvergetFilterChainResolver()
WebEnvironment
FilterChainResolver if one has been configured or
null if one is not available.
getFilterChainResolver in interface
WebEnvironment
FilterChainResolver if one has been configured or
null if one is not available.
public void setFilterChainResolver(FilterChainResolverfilterChainResolver)
MutableWebEnvironment
WebEnvironment's
FilterChainResolver.
setFilterChainResolver in interface
MutableWebEnvironment
filterChainResolver - the
WebEnvironment's
FilterChainResolver.
public SecurityManagergetSecurityManager() throws IllegalStateException
getSecurityManager in interface
Environment
getSecurityManager in class
DefaultEnvironment
IllegalStateException
public void setSecurityManager(SecurityManagersecurityManager)
public WebSecurityManagergetWebSecurityManager()
WebEnvironment
getWebSecurityManager in interface
WebEnvironment
public void setWebSecurityManager(WebSecurityManagerwsm)
MutableWebEnvironment
WebEnvironment's
WebSecurityManager.
setWebSecurityManager in interface
MutableWebEnvironment
wsm - the
WebEnvironment's
WebSecurityManager.
public ServletContext getServletContext()
WebEnvironment
ServletContext associated with this
WebEnvironment instance. A web application typically only has a single
WebEnvironment associated with its
ServletContext.
getServletContext in interface
WebEnvironment
ServletContext associated with this
WebEnvironment instance.
public void setServletContext(ServletContext servletContext)
MutableWebEnvironment
WebEnvironment's associated
ServletContext instance. Invoking this method merely makes the
ServletContext available to the underlying instance - it does not trigger initialization behavior.
setServletContext in interface
MutableWebEnvironment
servletContext - the
WebEnvironment's associated
ServletContext instance.