org.apache.turbine.modules
Class Action

java.lang.Object
  extended byorg.apache.turbine.modules.Assembler
      extended byorg.apache.turbine.modules.Action
Direct Known Subclasses:
AccessController, ActionEvent, DefaultAction, InitContextsAction, LoginUser, LogoutUser, SessionValidator

public abstract class Action
extends Assembler

Generic Action class.

Version:
$Id: Action.java 534527 2007-05-02 16:10:59Z tv $
Author:
Dave Bryson

Constructor Summary
Action()
           
 
Method Summary
abstract  void doPerform(RunData data)
          A subclass must override this method to perform itself.
protected  void perform(RunData data)
          Subclasses can override this method to add additional functionality.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Action

public Action()
Method Detail

doPerform

public abstract void doPerform(RunData data)
                        throws java.lang.Exception
A subclass must override this method to perform itself. The Action can also set the screen that is associated with RunData.

Parameters:
data - Turbine information.
Throws:
java.lang.Exception - a generic exception.

perform

protected void perform(RunData data)
                throws java.lang.Exception
Subclasses can override this method to add additional functionality. This method is protected to force clients to use ActionLoader to perform an Action.

Parameters:
data - Turbine information.
Throws:
java.lang.Exception - a generic exception.


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.