Class RemoveCommand

java.lang.Object
org.apache.commons.chain.generic.RemoveCommand
All Implemented Interfaces:
Command

public class RemoveCommand extends Object implements Command

Remove any context attribute stored under the fromKey.

Version:
$Revision: 480477 $ $Date: 2006-11-29 08:34:52 +0000 (Wed, 29 Nov 2006) $
Author:
Craig R. McClanahan
  • Field Details

    • fromKey

      private String fromKey
  • Constructor Details

    • RemoveCommand

      public RemoveCommand()
  • Method Details

    • getFromKey

      public String getFromKey()

      Return the context attribute key for the attribute.

      Returns:
      The context attribute key.
    • setFromKey

      public void setFromKey(String fromKey)

      Set the context attribute key for the attribute.

      Parameters:
      fromKey - The new key
    • execute

      public boolean execute(Context context) throws Exception

      Copy the specified source attribute to the specified destination attribute.

      Specified by:
      execute in interface Command
      Parameters:
      context - Context in which we are operating
      Returns:
      false so that processing will continue
      Throws:
      Exception - if and error occurs.