37 #include "BESXMLDefaultCommands.h" 39 #include "BESResponseNames.h" 40 #include "BESResponseHandlerList.h" 42 #include "BESXMLShowCommand.h" 43 #include "BESXMLShowErrorCommand.h" 44 #include "BESXMLSetContextCommand.h" 45 #include "BESXMLSetContainerCommand.h" 46 #include "BESXMLDefineCommand.h" 47 #include "BESXMLGetCommand.h" 48 #include "BESXMLDeleteContainerCommand.h" 49 #include "BESXMLDeleteContainersCommand.h" 50 #include "BESXMLDeleteDefinitionCommand.h" 51 #include "BESXMLDeleteDefinitionsCommand.h" 53 #include "ShowPathInfoCommand.h" 54 #include "ShowBesKeyCommand.h" 55 #include "ShowBesKeyResponseHandler.h" 57 #include "SetContextsNames.h" 58 #include "XMLSetContextsCommand.h" 60 #if USE_CONTEXTS_RESPONSE_HANDLER 61 #include "SetContextsResponseHandler.h" 63 #include "NullResponseHandler.h" 75 BESDEBUG(
"besxml",
"Initializing default commands:" << endl);
95 #if USE_CONTEXTS_RESPONSE_HANDLER 97 BESResponseHandlerList::TheList()->
add_handler(SET_CONTEXTS_ACTION, SetContextsResponseHandler::SetContextsResponseBuilder);
99 BESResponseHandlerList::TheList()->
add_handler(NULL_ACTION, NullResponseHandler::NullResponseBuilder);
114 BESDEBUG(
"besxml",
" adding " << SHOW_PATH_INFO_RESPONSE_STR <<
" command" << endl ) ;
119 BESDEBUG(
"besxml",
" adding " << SHOW_BES_KEY_RESPONSE <<
" response handler" << endl ) ;
120 BESResponseHandlerList::TheList()->
add_handler( SHOW_BES_KEY_RESPONSE, ShowBesKeyResponseHandler::ShowBesKeyResponseBuilder ) ;
122 BESDEBUG(
"besxml",
"Done Initializing default commands:" << endl);
132 BESDEBUG(
"besxml",
"Removing default commands:" << endl);
148 #if USE_CONTEXTS_RESPONSE_HANDLER 149 BESResponseHandlerList::TheList()->
remove_handler(SET_CONTEXTS_ACTION);
159 BESDEBUG(
"besxml",
"Done Removing default commands:" << endl);
static int terminate(void)
Removes the default set of BES XML commands from the list of possible commands.
static int initialize(int argc, char **argv)
Loads the default set of BES XML commands.
virtual bool add_handler(const string &handler, p_response_handler handler_method)
add a response handler to the list
static void del_command(const std::string &cmd_str)
Deletes the command called cmd_str from the list of possible commands.
static void add_command(const std::string &cmd_str, p_xmlcmd_builder cmd)
Add a command to the possible commands allowed by this BES.
virtual bool remove_handler(const string &handler)
removes a response handler from the list