Package 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<ActionContext>
,ActionCommand
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.commons.chain.Command
<ActionContext> getCommand
(ActionContext context) Return the command specified by thecommand
andcatalog
properties of theforwardConfig
property of the givenActionContext
.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
-
Constructor Details
-
ExecuteForwardCommand
public ExecuteForwardCommand()
-
-
Method Details
-
getCommand
Return the command specified by thecommand
andcatalog
properties of theforwardConfig
property of the givenActionContext
. IfforwardConfig
is null, return null.- Overrides:
getCommand
in classExecuteCommand
- Parameters:
context
- Our ActionContext- Returns:
- Command to execute or null
-
shouldProcess
Determine whether the forwardConfig should be processed.- Overrides:
shouldProcess
in classExecuteCommand
- Parameters:
context
- The ActionContext we are processing- Returns:
true
if the givenActionContext
has a non-nullforwardConfig
property.
-