Class DefaultWebEnvironment

    • Constructor Detail

      • DefaultWebEnvironment

        public DefaultWebEnvironment()
    • Method Detail

      • getFilterChainResolver

        public FilterChainResolver getFilterChainResolver()
        Description copied from interface: WebEnvironment
        Returns the web application's FilterChainResolver if one has been configured or null if one is not available.
        Specified by:
        getFilterChainResolver in interface WebEnvironment
        Returns:
        the web application's FilterChainResolver if one has been configured or null if one is not available.
      • getSecurityManager

        public org.apache.shiro.mgt.SecurityManager getSecurityManager()
                                                                throws IllegalStateException
        Specified by:
        getSecurityManager in interface org.apache.shiro.env.Environment
        Overrides:
        getSecurityManager in class org.apache.shiro.env.DefaultEnvironment
        Throws:
        IllegalStateException
      • setSecurityManager

        public void setSecurityManager​(org.apache.shiro.mgt.SecurityManager securityManager)
        Overrides:
        setSecurityManager in class org.apache.shiro.env.DefaultEnvironment
      • getServletContext

        public javax.servlet.ServletContext getServletContext()
        Description copied from interface: WebEnvironment
        Returns the ServletContext associated with this WebEnvironment instance. A web application typically only has a single WebEnvironment associated with its ServletContext.
        Specified by:
        getServletContext in interface WebEnvironment
        Returns:
        the ServletContext associated with this WebEnvironment instance.
      • setServletContext

        public void setServletContext​(javax.servlet.ServletContext servletContext)
        Description copied from interface: MutableWebEnvironment
        Sets the WebEnvironment's associated ServletContext instance. Invoking this method merely makes the ServletContext available to the underlying instance - it does not trigger initialization behavior.
        Specified by:
        setServletContext in interface MutableWebEnvironment
        Parameters:
        servletContext - the WebEnvironment's associated ServletContext instance.