|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.integrations.BaseCommandHandler
public class BaseCommandHandler
This class is the implementaion of CommandHandler interface
that calls the nextCommandHandler if it is defined, or will
executes the Command object passed if it is not..
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
|
| Fields inherited from class atg.nucleus.GenericService |
|---|
SERVICE_INFO_KEY |
| Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
|---|
DEFAULT_LOG_TRACE_STATUS |
| Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
|---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
| Constructor Summary | |
|---|---|
BaseCommandHandler()
|
|
| Method Summary | |
|---|---|
CommandResult |
executeCommand(Command pCommand,
java.lang.Object pInput)
Checks to see if nextCommandHandler is set. |
CommandHandler |
getNextCommandHandler()
Returns Next Command Handler to invoke in the command invocation chain. |
void |
setNextCommandHandler(CommandHandler pNextCommandHandler)
Sets Next CommandHandler in the command invocation chain to invoke |
| Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
|---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String CLASS_VERSION
| Constructor Detail |
|---|
public BaseCommandHandler()
| Method Detail |
|---|
public CommandHandler getNextCommandHandler()
getNextCommandHandler in interface CommandHandlerpublic void setNextCommandHandler(CommandHandler pNextCommandHandler)
public CommandResult executeCommand(Command pCommand,
java.lang.Object pInput)
throws CommandInvocationException,
CommandTimeoutException,
InvalidInputException
nextCommandHandler is set. If it
is, then nextCommandHandler.executeCommand() is
called. If it is not, then this method will call the execute
method on the command. In either case, pInput is the input to the
method, and a CommandResult is returned.
executeCommand in interface CommandHandlerpCommand - the Command to invoke with the given input.pInput - the input Map to the Command
nextCommandHandler.executeCommand()
or Command.execute()
CommandInvocationException - if any error occurs or exception is
thrown while executing the Command.
CommandTimeoutException - if timeout occurs while invoking the command.
InvalidInputException - if input object passed is invalid.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||