public class BaseFreemarkerTemplateParser extends java.lang.Object implements TemplateParser
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VAR_DEPLOYED_CI
Define constant with name of deployed CI which can be used with the freemarker template.
|
| Modifier | Constructor and Description |
|---|---|
protected |
BaseFreemarkerTemplateParser() |
protected |
BaseFreemarkerTemplateParser(freemarker.template.Configuration freemarkerConfiguration)
Initialize new base freemarker template parser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
parse(java.lang.String templateName,
com.xebialabs.deployit.plugin.api.udm.Deployed<?,?> deployedCi,
java.util.Map<java.lang.String,?> context,
java.io.OutputStream out)
Parse the template identified by the
templateName using deployed CI and the parameters provided by the context. |
void |
parse(java.lang.String templateName,
java.util.Map<java.lang.String,?> context,
java.io.OutputStream out)
Parse the template identified by the
templateName using the parameters provided by the context. |
public static final java.lang.String VAR_DEPLOYED_CI
protected BaseFreemarkerTemplateParser(freemarker.template.Configuration freemarkerConfiguration)
freemarkerConfiguration - The configuration used to locate and parse templates.protected BaseFreemarkerTemplateParser()
public void parse(java.lang.String templateName,
java.util.Map<java.lang.String,?> context,
java.io.OutputStream out)
throws TemplateParseException
templateName using the parameters provided by the context. The output is send to the outputstream out.parse in interface TemplateParsertemplateName - Name of the template to parse.context - The context with parameters/variables using during parsing.out - The output stream that will contain the parsed template.TemplateParseException - Thrown if an error occurs while parsing the template.public void parse(java.lang.String templateName,
com.xebialabs.deployit.plugin.api.udm.Deployed<?,?> deployedCi,
java.util.Map<java.lang.String,?> context,
java.io.OutputStream out)
throws TemplateParseException
templateName using deployed CI and the parameters provided by the context. The output is send to the outputstream out
.parse in interface TemplateParsertemplateName - Name of the template to parse.deployedCi - The deployed CI used during parsing.context - The context with parameters/variables using during parsing.out - The output stream that will contain the parsed template.TemplateParseException - Thrown if an error occurs while parsing the template.