Uses of Interface
org.apache.shiro.web.env.WebEnvironment
Packages that use WebEnvironment
Package
Description
Web-specific
Environment implementation and support.Concepts used to represent Shiro's aggregate state in an application.
-
Uses of WebEnvironment in org.apache.shiro.web.env
Subinterfaces of WebEnvironment in org.apache.shiro.web.envModifier and TypeInterfaceDescriptioninterfaceAWebEnvironmentthat supports 'write' operations operations.Classes in org.apache.shiro.web.env that implement WebEnvironmentModifier and TypeClassDescriptionclassDefaultWebEnvironmentimplementation based on a backingMapinstance.classclassAbstract implementation forWebEnvironments that can be initialized via resource paths (config files).Methods in org.apache.shiro.web.env that return WebEnvironmentModifier and TypeMethodDescriptionprotected WebEnvironmentEnvironmentLoader.createEnvironment(javax.servlet.ServletContext sc) Instantiates aWebEnvironmentbased on the specified ServletContext.protected WebEnvironmentEnvironmentLoader.determineWebEnvironment(javax.servlet.ServletContext servletContext) Return the WebEnvironment implementation class to use, based on the order of: A custom WebEnvironment class - specified in theservletContextEnvironmentLoader.ENVIRONMENT_ATTRIBUTE_KEYpropertyServiceLoader.load(WebEnvironment.class)- (if more then one instance is found aConfigurationExceptionwill be thrown A call toEnvironmentLoader.getDefaultWebEnvironmentClass(ServletContext)(default:IniWebEnvironment)EnvironmentLoader.initEnvironment(javax.servlet.ServletContext servletContext) Initializes Shiro'sWebEnvironmentinstance for the specifiedServletContextbased on theEnvironmentLoader.CONFIG_LOCATIONS_PARAMvalue.Methods in org.apache.shiro.web.env that return types with arguments of type WebEnvironmentModifier and TypeMethodDescriptionprotected Iterator<WebEnvironment> EnvironmentLoader.doLoadWebEnvironmentsFromServiceLoader()protected Class<? extends WebEnvironment> EnvironmentLoader.getDefaultWebEnvironmentClass(javax.servlet.ServletContext ctx) Returns the default WebEnvironment class, which is unless overridden:IniWebEnvironment.Methods in org.apache.shiro.web.env with parameters of type WebEnvironmentModifier and TypeMethodDescriptionprotected voidEnvironmentLoader.customizeEnvironment(WebEnvironment environment) Any additional customization of the Environment can be by overriding this method.protected voidEnvironmentLoader.finalizeEnvironment(WebEnvironment environment) Any additional cleanup of the Environment can be done by overriding this method. -
Uses of WebEnvironment in org.apache.shiro.web.util
Methods in org.apache.shiro.web.util that return WebEnvironmentModifier and TypeMethodDescriptionstatic WebEnvironmentWebUtils.getRequiredWebEnvironment(javax.servlet.ServletContext sc) Find the ShiroWebEnvironmentfor this web application, which is typically loaded via theEnvironmentLoaderListener.static WebEnvironmentWebUtils.getWebEnvironment(javax.servlet.ServletContext sc) Find the ShiroWebEnvironmentfor this web application, which is typically loaded viaEnvironmentLoaderListener.static WebEnvironmentWebUtils.getWebEnvironment(javax.servlet.ServletContext sc, String attrName) Find the ShiroWebEnvironmentfor this web application.