ExecuteForwardCommand (Struts 1.3.10 API)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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