30#include "W10nShowPathInfoCommand.h"
32#include "BESDataNames.h"
35#include "BESXMLUtils.h"
36#include "BESSyntaxUserError.h"
43#define W10N_SHOW_PATH_INFO_DHI_TAG "show.w10nPathInfo"
60 map<string, string> props;
62 if (name != W10N_SHOW_PATH_INFO_REQUEST) {
63 string err =
"The specified command " + name +
" is not a show w10n command";
68 d_xmlcmd_dhi.action = W10N_SHOW_PATH_INFO_DHI_TAG;
69 d_xmlcmd_dhi.data[W10N_SHOW_PATH_INFO_DHI_TAG] = W10N_SHOW_PATH_INFO_DHI_TAG;
73 d_xmlcmd_dhi.data[CONTAINER] = props[
"node"];
74 if (!d_xmlcmd_dhi.data[CONTAINER].empty()) {
79 BESDEBUG(W10N_DEBUG_KEY,
"Built BES Command: '" <<
d_cmd_log_info <<
"'"<< endl );
94 strm << BESIndent::LMarg <<
"W10nShowPathInfoCommand::dump - (" << (
void *)
this <<
")" << endl;
97 BESIndent::UnIndent();
Structure storing information used by the BES to handle the request.
error thrown if there is a user syntax error in the request or any other user error
Base class for the BES's commands.
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual void set_response()
The request has been parsed, use the command action name to set the response handler.
std::string d_cmd_log_info
Used only for the log.
static void GetNodeInfo(xmlNode *node, std::string &name, std::string &value, std::map< std::string, std::string > &props)
get the name, value if any, and any properties for the specified node
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual void parse_request(xmlNode *node)
parse a show command. No properties or children elements