public final class VariablesResolver extends Object
Modifier and Type | Method and Description |
---|---|
static void |
configure()
Loads variables according to default configuration file org/esigate/vars.properties.
|
static void |
configure(Properties props)
Loads variables from properties.
|
static URL |
getVariablessUrl() |
static String |
replaceAllVariables(String strVars)
Replace all ESI variables found in strVars by their matching value in vars.properties.
|
static String |
replaceAllVariables(String strVars,
DriverRequest request)
Replace all ESI variables found in strVars by their matching value in vars.properties.
|
public static void configure(Properties props)
props
- propertiespublic static void configure()
public static URL getVariablessUrl()
public static String replaceAllVariables(String strVars)
strVars
- a String containing variables.public static String replaceAllVariables(String strVars, DriverRequest request)
strVars
- a String containing variables.request
- Copyright © 2008–2018. All rights reserved.