|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shiro.env.DefaultEnvironment
org.apache.shiro.web.env.DefaultWebEnvironment
public class DefaultWebEnvironment
Default WebEnvironment implementation based on a backing Map instance.
| Field Summary |
|---|
| Fields inherited from class org.apache.shiro.env.DefaultEnvironment |
|---|
DEFAULT_SECURITY_MANAGER_KEY, objects |
| Constructor Summary | |
|---|---|
DefaultWebEnvironment()
|
|
| Method Summary | |
|---|---|
FilterChainResolver |
getFilterChainResolver()
Returns the web application's FilterChainResolver if one has been configured or null if one
is not available. |
SecurityManager |
getSecurityManager()
|
javax.servlet.ServletContext |
getServletContext()
Returns the ServletContext associated with this WebEnvironment instance. |
WebSecurityManager |
getWebSecurityManager()
Returns the web application's security manager instance. |
void |
setFilterChainResolver(FilterChainResolver filterChainResolver)
Sets the WebEnvironment's FilterChainResolver. |
void |
setSecurityManager(SecurityManager securityManager)
|
void |
setServletContext(javax.servlet.ServletContext servletContext)
Sets the WebEnvironment's associated ServletContext instance. |
void |
setWebSecurityManager(WebSecurityManager wsm)
Sets the WebEnvironment's WebSecurityManager. |
| Methods inherited from class org.apache.shiro.env.DefaultEnvironment |
|---|
destroy, getObject, getObjects, getSecurityManagerName, lookupSecurityManager, setObject, setSecurityManagerName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultWebEnvironment()
| Method Detail |
|---|
public FilterChainResolver getFilterChainResolver()
WebEnvironmentFilterChainResolver if one has been configured or null if one
is not available.
getFilterChainResolver in interface WebEnvironmentFilterChainResolver if one has been configured or null if one
is not available.public void setFilterChainResolver(FilterChainResolver filterChainResolver)
MutableWebEnvironmentWebEnvironment's FilterChainResolver.
setFilterChainResolver in interface MutableWebEnvironmentfilterChainResolver - the WebEnvironment's FilterChainResolver.
public SecurityManager getSecurityManager()
throws IllegalStateException
getSecurityManager in interface EnvironmentgetSecurityManager in class DefaultEnvironmentIllegalStateExceptionpublic void setSecurityManager(SecurityManager securityManager)
setSecurityManager in class DefaultEnvironmentpublic WebSecurityManager getWebSecurityManager()
WebEnvironment
getWebSecurityManager in interface WebEnvironmentpublic void setWebSecurityManager(WebSecurityManager wsm)
MutableWebEnvironmentWebEnvironment's WebSecurityManager.
setWebSecurityManager in interface MutableWebEnvironmentwsm - the WebEnvironment's WebSecurityManager.public javax.servlet.ServletContext getServletContext()
WebEnvironmentServletContext associated with this WebEnvironment instance. A web application
typically only has a single WebEnvironment associated with its ServletContext.
getServletContext in interface WebEnvironmentServletContext associated with this WebEnvironment instance.public void setServletContext(javax.servlet.ServletContext servletContext)
MutableWebEnvironmentWebEnvironment'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 MutableWebEnvironmentservletContext - the WebEnvironment's associated ServletContext instance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||