public abstract class VelocityAction extends VelocityActionEvent
initialized, velocitybubbleUpException, BUTTON, BUTTON_LENGTH, DEFAULT_METHOD, LENGTH, log, METHOD_NAME_LENGTH, METHOD_NAME_PREFIXCACHE_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.
|
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.
|
doPerformconsiderKey, executeEvents, formatString, getMethodpublic void initialize()
throws Exception
initialize in class VelocityActionEventException - 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.public void perform(PipelineData pipelineData) throws Exception
pipelineData - Turbine information.Exception - a generic exception.public void setTemplate(PipelineData pipelineData, String template)
pipelineData - Turbine information.template - The template that will be executed next.Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.