org.apache.struts.chain.commands
Class ActionCommandBase

java.lang.Object
  extended by org.apache.struts.chain.commands.ActionCommandBase
All Implemented Interfaces:
org.apache.commons.chain.Command, ActionCommand
Direct Known Subclasses:
AbstractAuthorizeAction, AbstractCreateAction, AbstractExceptionHandler, AbstractExecuteAction, AbstractPerformForward, AbstractPerformInclude, AbstractPopulateActionForm, AbstractRequestNoCache, AbstractSelectAction, AbstractSelectForward, AbstractSelectInput, AbstractSelectLocale, AbstractSelectModule, AbstractSetContentType, AbstractSetOriginalURI, AbstractValidateActionForm, CopyFormToContext, CreateActionForm, ExceptionCatcher, ExecuteCommand, RemoveCachedMessages, SelectInclude

public abstract class ActionCommandBase
extends java.lang.Object
implements ActionCommand

Simple abstract class which avoids frequent casting to ActionContext in commands explicitly intended for use with that class.


Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
ActionCommandBase()
           
 
Method Summary
abstract  boolean execute(ActionContext actionContext)
           
 boolean execute(org.apache.commons.chain.Context context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionCommandBase

public ActionCommandBase()
Method Detail

execute

public abstract boolean execute(ActionContext actionContext)
                         throws java.lang.Exception
Specified by:
execute in interface ActionCommand
Parameters:
actionContext - The Context for the current request
Returns:
TRUE if processing should halt
Throws:
java.lang.Exception - On any error

execute

public boolean execute(org.apache.commons.chain.Context context)
                throws java.lang.Exception
Specified by:
execute in interface org.apache.commons.chain.Command
Throws:
java.lang.Exception


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