public class SubstitutorFactory extends Object
Substitutor
Constructor and Description |
---|
SubstitutorFactory() |
Modifier and Type | Method and Description |
---|---|
static Substitutor |
getEssEnvSubstitutor()
Create a
Substitutor using the EssEnvSubstitutionHandler |
static Substitutor |
getSubstitutor(RequestExecutionContext ctxt,
RequestParameters params)
Create the standard
Substitutor . |
static Substitutor |
getSubstitutorWithAltEnv(RequestExecutionContext ctxt,
RequestParameters params,
Map altAppEnv)
Create the standard
Substitutor . |
public static Substitutor getSubstitutor(RequestExecutionContext ctxt, RequestParameters params) throws RequestNotFoundException, RuntimeServiceException, SubstitutionException
Substitutor
. This substitutor utilizes
all the standard ESS SubstitutionHandler
s.ctxt
- The RequestExecutionContext
for the current request
executionparams
- The RequestParameters
for the current request
executionSubstitutor
RequestNotFoundException
- if the request could not be foundRuntimeServiceException
- if an error occurred retrieving request
informationSubstitutionException
public static Substitutor getSubstitutorWithAltEnv(RequestExecutionContext ctxt, RequestParameters params, Map altAppEnv) throws RequestNotFoundException, RuntimeServiceException, SubstitutionException
Substitutor
. This substitutor utilizes
all the standard ESS SubstitutionHandler
s, except the
usual application environment handler ("APP_ENV") source is replaced
by altAppEnv
.ctxt
- The RequestExecutionContext
for the current request
executionparams
- The RequestParameters
for the current request
executionaltAppEnv
- Alternate environment properties to be used in place
of the standard ESS application environment.Substitutor
RequestNotFoundException
- if the request could not be foundRuntimeServiceException
- if an error occurred retrieving request
informationSubstitutionException
public static Substitutor getEssEnvSubstitutor()
Substitutor
using the EssEnvSubstitutionHandler
Substitutor