| org.apache.turbine.util.velocity.VelocityActionEvent org.apache.turbine.modules.actions.VelocityAction
All known Subclasses: org.apache.turbine.modules.actions.VelocitySecureAction,
VelocityAction | abstract public class VelocityAction extends VelocityActionEvent (Code) | | 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.
author: Jon S. Stevens author: Jason van Zyl version: $Id: VelocityAction.java 534527 2007-05-02 16:10:59Z tv $ |
Method Summary | |
public void | doPerform(RunData data) You SHOULD NOT override this method and implement it in your
action. | abstract public void | doPerform(RunData data, Context context) You SHOULD override this method and implement it in your
action. | protected Context | getContext(RunData data) Return the Context needed by Velocity.
Parameters: data - Turbine information. | protected void | perform(RunData data) | public void | setTemplate(RunData data, String template) This method is used when you want to short circuit an Action
and change the template that will be executed next. |
doPerform | public void doPerform(RunData data) throws Exception(Code) | | You SHOULD NOT override this method and implement it in your
action.
Parameters: data - Turbine information. throws: Exception - a generic exception. |
doPerform | abstract public void doPerform(RunData data, Context context) throws Exception(Code) | | You SHOULD override this method and implement it in your
action.
Parameters: data - Turbine information. Parameters: context - Context for web pages. throws: Exception - a generic exception. |
getContext | protected Context getContext(RunData data)(Code) | | Return the Context needed by Velocity.
Parameters: data - Turbine information. Context, a context for web pages. |
perform | protected void perform(RunData data) throws Exception(Code) | | Sets up the context and then calls super.perform(); thus,
subclasses don't have to worry about getting a context
themselves!
Parameters: data - Turbine information. throws: Exception - a generic exception. |
setTemplate | public void setTemplate(RunData data, String template)(Code) | | This method is used when you want to short circuit an Action
and change the template that will be executed next.
Parameters: data - Turbine information. Parameters: template - The template that will be executed next. |
|
|