public class VelocityScreen extends TemplateScreen
If you need more specific behavior in your application, extend this class and override the doBuildTemplate() method.
| Modifier and Type | Field and Description |
|---|---|
protected String |
templateError |
protected TemplateService |
templateService
Injected service instance
|
protected VelocityService |
velocity
Injected service instance
|
logCACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX| Constructor and Description |
|---|
VelocityScreen() |
| Modifier and Type | Method and Description |
|---|---|
String |
buildTemplate(PipelineData pipelineData)
This builds the Velocity template.
|
protected void |
doBuildTemplate(PipelineData pipelineData)
Needs to be implemented to make TemplateScreen like us.
|
protected void |
doBuildTemplate(PipelineData pipelineData,
org.apache.velocity.context.Context context)
Velocity Screens extending this class should override this
method to perform any particular business logic and add
information to the context.
|
doBuild, doPostBuildTemplate, doRedirect, doRedirect, setTemplatebuild, getLayout, getPrefix, setLayoutgetRunDataprotected VelocityService velocity
protected TemplateService templateService
protected String templateError
public VelocityScreen()
protected void doBuildTemplate(PipelineData pipelineData, org.apache.velocity.context.Context context) throws Exception
pipelineData - Turbine information.context - Context for web pages.Exception - a generic exception.protected void doBuildTemplate(PipelineData pipelineData) throws Exception
doBuildTemplate in class TemplateScreenpipelineData - Turbine information.Exception - a generic exception.public String buildTemplate(PipelineData pipelineData) throws Exception
buildTemplate in class TemplateScreenpipelineData - Turbine information.Exception - a generic exception.Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.