org.apache.struts.chain.commands
Class ExecuteForwardCommand

java.lang.Object
  extended by org.apache.struts.chain.commands.ActionCommandBase
      extended by org.apache.struts.chain.commands.ExecuteCommand
          extended by org.apache.struts.chain.commands.ExecuteForwardCommand
All Implemented Interfaces:
org.apache.commons.chain.Command, ActionCommand

public class ExecuteForwardCommand
extends ExecuteCommand

Look up and execute a commons-chain Command based on properties of the ActionContext's forwardConfig property.


Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
ExecuteForwardCommand()
           
 
Method Summary
protected  org.apache.commons.chain.Command getCommand(ActionContext context)
          Return the command specified by the command and catalog properties of the forwardConfig property of the given ActionContext.
protected  boolean shouldProcess(ActionContext context)
           Determine whether the forwardConfig should be processed.
 
Methods inherited from class org.apache.struts.chain.commands.ExecuteCommand
execute, getCommand
 
Methods inherited from class org.apache.struts.chain.commands.ActionCommandBase
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecuteForwardCommand

public ExecuteForwardCommand()
Method Detail

getCommand

protected org.apache.commons.chain.Command getCommand(ActionContext context)

Return the command specified by the command and catalog properties of the forwardConfig property of the given ActionContext. If forwardConfig is null, return null.

Overrides:
getCommand in class ExecuteCommand
Parameters:
context - Our ActionContext
Returns:
Command to execute or null

shouldProcess

protected boolean shouldProcess(ActionContext context)

Determine whether the forwardConfig should be processed.

Overrides:
shouldProcess in class ExecuteCommand
Parameters:
context - The ActionContext we are processing
Returns:

true if the given ActionContext has a non-null forwardConfig property.



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