public interface ITemplatingRequestContextAddon<R extends IRequestContext<?>>
| Modifier and Type | Method and Description |
|---|---|
void |
addTemplatingGlobalVariable(String key,
Object value)
Adds a global variable that will be available to any following
evaluation by the templating engine.
|
void |
addTemplatingGlobalVariables(Map<String,Object> variables)
Adds global variables that will be available to any following
evaluation by the templating engine.
|
void |
deleteAllTemplatingGlobalVariables()
Deletes all global templating variables.
|
void |
deleteTemplatingGlobalVariable(String key)
Deletes a global templating variable.
|
String |
evaluate(String content,
Map<String,Object> params)
Evaluates some content using the given parameters.
|
String |
evaluate(String content,
Map<String,Object> params,
Locale locale)
Evaluates some content using the given parameters.
|
String |
fromTemplate(String templatePath,
Map<String,Object> params)
Renders a template using the given parameters.
|
String |
fromTemplate(String templatePath,
Map<String,Object> params,
Locale locale)
Renders a template usgin the given parameters.
|
Object |
getTemplatingGlobalVariable(String key)
Gets a global templating variable.
|
Map<String,Object> |
getTemplatingGlobalVariables()
The global templating variables.
|
void addTemplatingGlobalVariable(String key, Object value)
void addTemplatingGlobalVariables(Map<String,Object> variables)
Map<String,Object> getTemplatingGlobalVariables()
Object getTemplatingGlobalVariable(String key)
void deleteAllTemplatingGlobalVariables()
void deleteTemplatingGlobalVariable(String key)
String evaluate(String content, Map<String,Object> params)
Locale found by the LocaleResolver.String evaluate(String content, Map<String,Object> params, Locale locale)
Locale.String fromTemplate(String templatePath, Map<String,Object> params)
Locale found by the LocaleResolver.Copyright © 2016. All rights reserved.