Class ExecuteForwardCommand

All Implemented Interfaces:
Command<ActionContext>, ActionCommand

public class ExecuteForwardCommand extends ExecuteCommand
Look up and execute a commons-chain Command based on properties of the ActionContext's forwardConfig property.
  • Constructor Details

    • ExecuteForwardCommand

      public ExecuteForwardCommand()
  • Method Details

    • getCommand

      protected Command<ActionContext> 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.