public class FreeMarkerTemplateProcessor extends AbstractTemplateProcessor implements org.smooks.api.delivery.ordering.Consumer
FreeMarkerContentHandlerFactory
.
NOTE that this visitor supports the extra "useNodeModel" parameter when
using DOM based filtering. When set to true (default=false), the targeted
DOM element will be attached to the model that is passed to the FreeMarker
templating engine. This allows the DOM model to be referenced from within
the FreeMarker template, with the targeted element name being the "root"
name when forming expressions. See freemarker.org
for more info.TEMPLATE_SPLIT_PI
Modifier | Constructor and Description |
---|---|
protected |
FreeMarkerTemplateProcessor()
Default constructor.
|
|
FreeMarkerTemplateProcessor(TemplatingConfiguration templatingConfiguration)
Programmatically configure the FreeMarker Templating Visitor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyTemplate(Element element,
org.smooks.api.ExecutionContext executionContext,
Writer writer) |
protected void |
applyTemplate(freemarker.template.Template template,
Element element,
org.smooks.api.ExecutionContext executionContext,
Writer writer) |
boolean |
consumes(Object object) |
protected void |
loadTemplate(org.smooks.api.resource.config.ResourceConfig resourceConfig) |
applyTemplateBefore, getEncoding, postConstruct, setTemplatingConfiguration, visitAfter, visitBefore
protected FreeMarkerTemplateProcessor()
public FreeMarkerTemplateProcessor(TemplatingConfiguration templatingConfiguration)
templatingConfiguration
- The templating configuration.protected void loadTemplate(org.smooks.api.resource.config.ResourceConfig resourceConfig) throws IOException
loadTemplate
in class AbstractTemplateProcessor
IOException
public boolean consumes(Object object)
consumes
in interface org.smooks.api.delivery.ordering.Consumer
protected void applyTemplate(Element element, org.smooks.api.ExecutionContext executionContext, Writer writer)
applyTemplate
in class AbstractTemplateProcessor
Copyright © 2024. All rights reserved.