Class LegacyVelocityAction
- java.lang.Object
-
- org.apache.turbine.modules.ActionEvent
-
- org.apache.turbine.util.velocity.VelocityActionEvent
-
- org.apache.turbine.modules.actions.VelocityAction
-
- org.apache.turbine.modules.actions.LegacyVelocityAction
-
- Direct Known Subclasses:
LegacyVelocitySecureAction
@Deprecated public abstract class LegacyVelocityAction extends VelocityAction
Deprecated.Use VelocityAction directlyThis class provides a methods for Turbine2 Velocity Actions to use. Since this class is abstract, it should only be extended and not used directly.- Author:
- Thomas Vandahl
-
-
Field Summary
-
Fields inherited from class org.apache.turbine.util.velocity.VelocityActionEvent
initialized, velocity
-
Fields inherited from class org.apache.turbine.modules.ActionEvent
bubbleUpException, BUTTON, BUTTON_LENGTH, DEFAULT_METHOD, LENGTH, log, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX
-
Fields inherited from interface org.apache.turbine.modules.Action
CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX
-
-
Constructor Summary
Constructors Constructor Description LegacyVelocityAction()
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
doPerform(PipelineData pipelineData)
Deprecated.This overrides the default Action.doPerform() to execute the doEvent() method.void
doPerform(PipelineData pipelineData, org.apache.velocity.context.Context context)
Deprecated.Adapter method for legacy signatureabstract void
doPerform(RunData data, org.apache.velocity.context.Context context)
Deprecated.You SHOULD override this method and implement it in your action.-
Methods inherited from class org.apache.turbine.modules.actions.VelocityAction
initialize, perform, setTemplate
-
Methods inherited from class org.apache.turbine.modules.ActionEvent
considerKey, executeEvents, formatString, getMethod
-
-
-
-
Constructor Detail
-
LegacyVelocityAction
public LegacyVelocityAction()
Deprecated.
-
-
Method Detail
-
doPerform
public abstract void doPerform(RunData data, org.apache.velocity.context.Context context) throws Exception
Deprecated.You SHOULD override this method and implement it in your action.- Parameters:
data
- Turbine information.context
- Context for web pages.- Throws:
Exception
- a generic exception.
-
doPerform
public void doPerform(PipelineData pipelineData, org.apache.velocity.context.Context context) throws Exception
Deprecated.Adapter method for legacy signature- Specified by:
doPerform
in classVelocityAction
- Parameters:
pipelineData
- Turbine information.context
- Context for web pages.- Throws:
Exception
- a generic exception.
-
doPerform
public void doPerform(PipelineData pipelineData) throws Exception
Deprecated.This overrides the default Action.doPerform() to execute the doEvent() method. If that fails, then it will execute the doPerform() method instead.- Specified by:
doPerform
in interfaceAction
- Overrides:
doPerform
in classVelocityActionEvent
- Parameters:
pipelineData
- A Turbine RunData object.- Throws:
Exception
- a generic exception.
-
-