public abstract class VelocityAction extends VelocityActionEvent
initialized
bubbleUpException, BUTTON, BUTTON_LENGTH, DEFAULT_METHOD, LENGTH, log, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX
CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX
Constructor and Description |
---|
VelocityAction() |
Modifier and Type | Method and Description |
---|---|
abstract void |
doPerform(PipelineData pipelineData,
org.apache.velocity.context.Context context)
You SHOULD override this method and implement it in your action.
|
void |
initialize()
Initialize the module.
|
protected void |
perform(PipelineData pipelineData)
Sets up the context and then calls super.perform(); thus, subclasses
don't have to worry about getting a context themselves!
|
void |
setTemplate(PipelineData pipelineData,
String template)
This method is used when you want to short circuit an Action and change
the template that will be executed next.
|
doPerform
considerKey, executeEvents, formatString, getMethod
getRunData
public VelocityAction()
public void initialize() throws Exception
initialize
in class VelocityActionEvent
Exception
- a generic exception.public abstract void doPerform(PipelineData pipelineData, org.apache.velocity.context.Context context) throws Exception
pipelineData
- Turbine information.context
- Context for web pages.Exception
- a generic exception.protected void perform(PipelineData pipelineData) throws Exception
public void setTemplate(PipelineData pipelineData, String template)
pipelineData
- Turbine information.template
- The template that will be executed next.Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.