BEA Systems, Inc.

com.beasys.commerce.util
Class Command

java.lang.Object
  |
  +--com.beasys.commerce.util.Command

public abstract class Command
extends java.lang.Object

Creation date: (12/23/99 12:38:31 PM)


Constructor Summary
Command()
           
 
Method Summary
abstract  void assemble(javax.servlet.http.HttpServletRequest request)
          Assembles the command using the given HttpServletRequest.
abstract  void execute()
          Executes the command.
 boolean isSuspended()
          This method returns true if the Command is in a suspended state; otherwise, this method returns false.
 boolean requiresAction(java.lang.String requiredAction)
          This method returns true if the Command requires the given action to be taken before it can be executed; otherwise, this method returns false.
 void resume()
          This method resumes a suspended Command, thus allowing it to be executed.
 void suspend()
          This method suspends the Command.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Command

public Command()
Method Detail

assemble

public abstract void assemble(javax.servlet.http.HttpServletRequest request)
Assembles the command using the given HttpServletRequest.

execute

public abstract void execute()
                      throws ApplicationException,
                             java.lang.Exception
Executes the command.
Throws:
theory.smartx.util.ApplicationException -  
java.lang.Exception -  

requiresAction

public boolean requiresAction(java.lang.String requiredAction)
This method returns true if the Command requires the given action to be taken before it can be executed; otherwise, this method returns false.
Parameters:
java.lang.String - requiredAction Action that is required.

isSuspended

public boolean isSuspended()
This method returns true if the Command is in a suspended state; otherwise, this method returns false. A suspended Command should not be executed until is has been resumed via the resume() method.

suspend

public void suspend()
This method suspends the Command. A suspended Command should not be executed.

resume

public void resume()
This method resumes a suspended Command, thus allowing it to be executed.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved