Class VelocityAction

All Implemented Interfaces:
Action, Assembler
Direct Known Subclasses:
LegacyVelocityAction, VelocitySecureAction

public abstract class VelocityAction extends VelocityActionEvent
This class provides a convenience methods for Velocity Actions to use. Since this class is abstract, it should only be extended and not used directly.
Version:
$Id$
Author:
Jon S. Stevens, Jason van Zyl, Peter Courcoux
  • Constructor Details

  • Method Details

    • initialize

      public void initialize() throws Exception
      Initialize the module.
      Specified by:
      initialize in class VelocityActionEvent
      Throws:
      Exception - a generic exception.
    • doPerform

      public abstract void doPerform(PipelineData pipelineData, org.apache.velocity.context.Context context) throws Exception
      You SHOULD override this method and implement it in your action.
      Parameters:
      pipelineData - Turbine information.
      context - Context for web pages.
      Throws:
      Exception - a generic exception.
    • perform

      public void perform(PipelineData pipelineData) throws Exception
      Sets up the context and then calls super.perform(); thus, subclasses don't have to worry about getting a context themselves! If a subclass throws an exception then depending on whether action.event.bubbleexception is true, then it bubbles it farther up, or traps it there.
      Parameters:
      pipelineData - Turbine information.
      Throws:
      Exception - a generic exception.
    • setTemplate

      public 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.
      Parameters:
      pipelineData - Turbine information.
      template - The template that will be executed next.