Package org.apache.shiro.web.env
Class ResourceBasedWebEnvironment
- java.lang.Object
-
- org.apache.shiro.env.DefaultEnvironment
-
- org.apache.shiro.web.env.DefaultWebEnvironment
-
- org.apache.shiro.web.env.ResourceBasedWebEnvironment
-
- All Implemented Interfaces:
ResourceConfigurable
,Environment
,NamedObjectEnvironment
,Destroyable
,MutableWebEnvironment
,WebEnvironment
- Direct Known Subclasses:
IniWebEnvironment
public abstract class ResourceBasedWebEnvironment extends DefaultWebEnvironment implements ResourceConfigurable
Abstract implementation forWebEnvironment
s that can be initialized via resource paths (config files).- Since:
- 1.2
-
-
Field Summary
-
Fields inherited from class org.apache.shiro.env.DefaultEnvironment
DEFAULT_SECURITY_MANAGER_KEY, objects
-
-
Constructor Summary
Constructors Constructor Description ResourceBasedWebEnvironment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getConfigLocations()
void
setConfigLocations(String locations)
Convenience method that accepts a comma-delimited string of config locations (resource paths).void
setConfigLocations(String[] configLocations)
Sets the configuration locations (resource paths) that will be used to configure the instance.-
Methods inherited from class org.apache.shiro.web.env.DefaultWebEnvironment
getFilterChainResolver, getSecurityManager, getServletContext, getWebSecurityManager, setFilterChainResolver, setSecurityManager, setServletContext, setWebSecurityManager
-
Methods inherited from class org.apache.shiro.env.DefaultEnvironment
destroy, getObject, getObjects, getSecurityManagerName, lookupSecurityManager, setObject, setSecurityManagerName
-
-
-
-
Constructor Detail
-
ResourceBasedWebEnvironment
public ResourceBasedWebEnvironment()
-
-
Method Detail
-
getConfigLocations
public String[] getConfigLocations()
-
setConfigLocations
public void setConfigLocations(String locations)
Description copied from interface:ResourceConfigurable
Convenience method that accepts a comma-delimited string of config locations (resource paths).- Specified by:
setConfigLocations
in interfaceResourceConfigurable
- Parameters:
locations
- comma-delimited list of config locations (resource paths).
-
setConfigLocations
public void setConfigLocations(String[] configLocations)
Description copied from interface:ResourceConfigurable
Sets the configuration locations (resource paths) that will be used to configure the instance.- Specified by:
setConfigLocations
in interfaceResourceConfigurable
- Parameters:
configLocations
- the configuration locations (resource paths) that will be used to configure the instance.
-
-