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 static String |
prefix
The prefix for lookup up screen pages
|
protected String |
templateError |
protected TemplateService |
templateService
Injected service instance
|
protected VelocityService |
velocity
Injected service instance
|
log
CACHE_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, setTemplate
protected static final String prefix
protected 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 TemplateScreen
pipelineData
- Turbine information.Exception
- a generic exception.public String buildTemplate(PipelineData pipelineData) throws Exception
buildTemplate
in class TemplateScreen
pipelineData
- Turbine information.Exception
- a generic exception.Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.