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 SubstitutionHandlers.ctxt - The RequestExecutionContext for the current request executionparams - The RequestParameters for the current request executionSubstitutorRequestNotFoundException - if the request could not be foundRuntimeServiceException - if an error occurred retrieving request informationSubstitutionExceptionpublic static Substitutor getSubstitutorWithAltEnv(RequestExecutionContext ctxt, RequestParameters params, Map altAppEnv) throws RequestNotFoundException, RuntimeServiceException, SubstitutionException
Substitutor. This substitutor utilizes all the standard ESS SubstitutionHandlers, 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.SubstitutorRequestNotFoundException - if the request could not be foundRuntimeServiceException - if an error occurred retrieving request informationSubstitutionExceptionpublic static Substitutor getEssEnvSubstitutor()
Substitutor using the EssEnvSubstitutionHandlerSubstitutor