2 #include "GatewayPathInfoCommand.h" 3 #include "BESDataNames.h" 6 #include "BESXMLUtils.h" 7 #include "BESSyntaxUserError.h" 27 map<string, string> props;
29 if (name != SHOW_GATEWAY_PATH_INFO_RESPONSE_STR) {
30 string err =
"The specified command " + name +
" is not a gateway show path info command";
35 d_xmlcmd_dhi.action = SHOW_GATEWAY_PATH_INFO_RESPONSE;
36 d_xmlcmd_dhi.data[SHOW_GATEWAY_PATH_INFO_RESPONSE] = SHOW_GATEWAY_PATH_INFO_RESPONSE;
37 d_cmd_log_info =
"show gatewayPathInfo";
40 d_xmlcmd_dhi.data[CONTAINER] = props[
"node"];
41 if (!d_xmlcmd_dhi.data[CONTAINER].empty()) {
42 d_cmd_log_info +=
" for " + d_xmlcmd_dhi.data[CONTAINER];
44 d_cmd_log_info +=
";";
46 BESDEBUG(SPI_DEBUG_KEY,
"Built BES Command: '" << d_cmd_log_info <<
"'"<< endl );
61 strm << BESIndent::LMarg <<
"GatewayPathInfoCommand::dump - (" << (
void *)
this <<
")" << endl;
64 BESIndent::UnIndent();
virtual void dump(ostream &strm) const
dumps information about this object
static void GetNodeInfo(xmlNode *node, string &name, string &value, map< string, string > &props)
get the name, value if any, and any properties for the specified node
error thrown if there is a user syntax error in the request or any other user error
virtual void set_response()
The request has been parsed, use the command action name to set the response handler.
Structure storing information used by the BES to handle the request.
virtual void dump(ostream &strm) const
dumps information about this object
virtual void parse_request(xmlNode *node)
parse a show command. No properties or children elements
Base class for the BES's commands.