atg.integrations
Class BaseCommandHandler
java.lang.Object
   atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
       atg.nucleus.GenericService
atg.nucleus.GenericService
           atg.integrations.BaseCommandHandler
atg.integrations.BaseCommandHandler
- All Implemented Interfaces: 
- CommandHandler, atg.naming.AbsoluteNameable, NameContextBindingListener, NameContextElement, atg.naming.NameContextParentable, NameResolver, AdminableService, atg.nucleus.Configured, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, java.util.EventListener
- public class BaseCommandHandler 
- extends GenericService- implements CommandHandler
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..
 
 
| Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging | 
| DEFAULT_LOG_TRACE_STATUS | 
 
 
 
 
| Methods inherited from class atg.nucleus.GenericService | 
| addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService | 
 
| Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl | 
| vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, 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 | 
 
CLASS_VERSION
public static java.lang.String CLASS_VERSION
BaseCommandHandler
public BaseCommandHandler()
getNextCommandHandler
public CommandHandler getNextCommandHandler()
- Returns Next Command Handler to invoke in the command invocation chain.
 If this is set, then it will be called.  If it is not, then the Command is 
 executed.
 
- 
- Specified by:
- getNextCommandHandlerin interface- CommandHandler
 
- 
- Returns:
- the NextCommandHandler
 
setNextCommandHandler
public void setNextCommandHandler(CommandHandler pNextCommandHandler)
- Sets Next CommandHandler in the command invocation chain to invoke
 
- 
 
- 
 
executeCommand
public CommandResult executeCommand(Command pCommand,
                                    java.lang.Object pInput)
                             throws CommandInvocationException,
                                    CommandTimeoutException,
                                    InvalidInputException
- Checks to see if nextCommandHandleris set.  If it
 is, thennextCommandHandler.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.
 
- 
- Specified by:
- executeCommandin interface- CommandHandler
 
- 
- Parameters:
- pCommand- the Command to invoke with the given input.
- pInput- the input Map to the Command
- Returns:
- the CommandResult from invoking nextCommandHandler.executeCommand()orCommand.execute()
- Throws:
- 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.