Class GatewayEnvironment

  • All Implemented Interfaces:
    Environment

    public class GatewayEnvironment
    extends EnvironmentDelegate
    Represents an Environment built from a webapp. It tries to create an environment from different sources (init-params, process-scoped values or default location). It goes from the most specific one (servlet's init-params) to the default one (default platform specific location).
    Since:
    2.2
    • Field Detail

      • BASE_INIT_PARAM

        public static final String BASE_INIT_PARAM
        Servlet's init-param name.
        
         <servlet>
           <servlet-name>GatewayServlet</servlet-name>
           <servlet-class>org.forgerock.openig.servlet.GatewayServlet</servlet-class>
           <init-param>
             <param-name>openig-base</param-name>
             <param-value>/my/openig/path</param-value>
           </init-param>
         </servlet>
         
        See Also:
        Constant Field Values
      • BASE_SYSTEM_PROPERTY

        public static final String BASE_SYSTEM_PROPERTY
        System property name that can be specified through command line. java -Dopenig.base=/my/openig/path ....
        See Also:
        Constant Field Values
      • BASE_ENV_VARIABLE

        public static final String BASE_ENV_VARIABLE
        Environment variable name. Under UNIX: export OPENIG_BASE=/my/openig/path Under Windows: set OPENIG_BASE=c:\my\openig\path
        See Also:
        Constant Field Values
    • Constructor Detail

      • GatewayEnvironment

        public GatewayEnvironment()
        Builds a new web environment.