org.apache.turbine.modules.actions

## Class LegacyVelocityAction

- java.lang.Object
- - org.apache.turbine.modules.Assembler
  - - org.apache.turbine.modules.Action
    - - 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.
  Use VelocityAction directly

      @Deprecated
      public abstract class LegacyVelocityAction
      extends VelocityAction

  This 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 class org.apache.turbine.modules.Action

      `CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `LegacyVelocityAction()` Deprecated.

  - ### Method Summary

    Methods
    Modifier and Type | Method and 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 signature
    `abstract 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`

    - ### Methods inherited from class org.apache.turbine.modules.Action

      `getPrefix`

    - ### Methods inherited from class org.apache.turbine.modules.Assembler

      `getRunData`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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 class `VelocityAction`
      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.
      Overrides:
        `doPerform` in class `VelocityActionEvent`
      Parameters:
        `pipelineData` - A Turbine RunData object.
      Throws:
        `Exception` - a generic exception.

Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.