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:
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Command<ActionContext> getCommand(ActionContext context) Return the command specified by thecommandandcatalogproperties of theforwardConfigproperty of the givenActionContext.protected booleanshouldProcess(ActionContext context) Determine whether the forwardConfig should be processed.Methods inherited from class org.apache.struts.chain.commands.ExecuteCommand
execute_, getCommandMethods inherited from class org.apache.struts.chain.commands.ActionCommandBase
execute
-
Constructor Details
-
ExecuteForwardCommand
public ExecuteForwardCommand()
-
-
Method Details
-
getCommand
Return the command specified by thecommandandcatalogproperties of theforwardConfigproperty of the givenActionContext. IfforwardConfigis null, return null.- Overrides:
getCommandin classExecuteCommand- Parameters:
context- Our ActionContext- Returns:
- Command to execute or null
-
shouldProcess
Determine whether the forwardConfig should be processed.- Overrides:
shouldProcessin classExecuteCommand- Parameters:
context- The ActionContext we are processing- Returns:
trueif the givenActionContexthas a non-nullforwardConfigproperty.
-