com.iplanet.jato.command
Interface Command
- All Known Implementing Classes:
- DefaultRequestHandlingCommand, TreeHandleRequestCommand, DefaultTiledRequestHandlingCommand
- public interface Command
A generic command interface
- Since:
- JATO/1.2
- Version:
- JATO/1.2.2 $Id: Command.java,v 1.7 2002/03/16 03:26:29 todd Exp $
- See Also:
CommandEvent
,
CommandDescriptor
DEFAULT_OPERATION_NAME
public static final java.lang.String DEFAULT_OPERATION_NAME
- The standard default operation name. When invoked with this operation
name, the command object should perform its main operation. The
meaningfulness of other operation names is up to the discretion of the
Command
author.
execute
public void execute(CommandEvent event)
throws CommandException
- Called to execute the command.
Classes which implement this interface may chooce to implement this
method in any arbitrary fashion. They can choose to take advantage of
any, all, or none of the information provided by the
CommandEvent
parameter.
- Parameters:
event
- The command event, contains information pertinent to
to the invocation of this command- Throws:
CommandException
- Thrown if an error occurs executing the command