Package org.forgerock.openig.http
Class GatewayEnvironment
- java.lang.Object
-
- org.forgerock.openig.config.env.EnvironmentDelegate
-
- org.forgerock.openig.http.GatewayEnvironment
-
- All Implemented Interfaces:
Environment
public class GatewayEnvironment extends EnvironmentDelegate
Represents anEnvironmentbuilt 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 Summary
Fields Modifier and Type Field Description static StringBASE_ENV_VARIABLEEnvironment variable name.static StringBASE_INIT_PARAMServlet's init-param name.static StringBASE_SYSTEM_PROPERTYSystem property name that can be specified through command line.
-
Constructor Summary
Constructors Constructor Description GatewayEnvironment()Builds a new web environment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Environmentdelegate()Returns the environment delegatee.-
Methods inherited from class org.forgerock.openig.config.env.EnvironmentDelegate
getBaseDirectory, getConfigDirectory, getScriptDirectory, getTempDirectory
-
-
-
-
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/pathUnder Windows:set OPENIG_BASE=c:\my\openig\path- See Also:
- Constant Field Values
-
-
Method Detail
-
delegate
protected Environment delegate()
Description copied from class:EnvironmentDelegateReturns the environment delegatee.- Specified by:
delegatein classEnvironmentDelegate- Returns:
- the environment delegatee.
-
-