public class WebEnvironment extends EnvironmentDelegate
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).Modifier and Type | Field and Description |
---|---|
static String |
BASE_ENV_VARIABLE
Environment variable name.
|
static String |
BASE_INIT_PARAM
Servlet's init-param name.
|
static String |
BASE_SYSTEM_PROPERTY
System property name that can be specified through command line.
|
ENVIRONMENT_HEAP_KEY
Constructor and Description |
---|
WebEnvironment(javax.servlet.ServletConfig config)
Builds a new web environment.
|
Modifier and Type | Method and Description |
---|---|
protected Environment |
delegate()
Returns the environment delegatee.
|
getBaseDirectory, getConfigDirectory, getScriptDirectory, getTempDirectory
public static final String BASE_INIT_PARAM
<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>
public static final String BASE_SYSTEM_PROPERTY
java -Dopenig.base=/my/openig/path ....
public static final String BASE_ENV_VARIABLE
export OPENIG_BASE=/my/openig/path
Under Windows:
set OPENIG_BASE=c:\my\openig\path
public WebEnvironment(javax.servlet.ServletConfig config)
config
- webapp's configurationprotected Environment delegate()
EnvironmentDelegate
delegate
in class EnvironmentDelegate
Copyright © 2014 ForgeRock AS. All rights reserved.