org.apache.struts.chain.commands
Class ExecuteForwardCommand
java.lang.Object
org.apache.struts.chain.commands.ActionCommandBase
org.apache.struts.chain.commands.ExecuteCommand
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.
Fields inherited from interface org.apache.commons.chain.Command |
CONTINUE_PROCESSING, PROCESSING_COMPLETE |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExecuteForwardCommand
public ExecuteForwardCommand()
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.