2 #include "GatewayPathInfoCommand.h"
3 #include "BESDataNames.h"
6 #include "BESXMLUtils.h"
7 #include "BESSyntaxUserError.h"
30 map<string, string> props;
32 if (name != SHOW_GATEWAY_PATH_INFO_RESPONSE_STR) {
33 string err =
"The specified command " + name +
" is not a gateway show path info command";
38 d_xmlcmd_dhi.
action = SHOW_GATEWAY_PATH_INFO_RESPONSE;
39 d_xmlcmd_dhi.
data[SHOW_GATEWAY_PATH_INFO_RESPONSE] = SHOW_GATEWAY_PATH_INFO_RESPONSE;
43 d_xmlcmd_dhi.
data[CONTAINER] = props[
"node"];
44 if (!d_xmlcmd_dhi.
data[CONTAINER].empty()) {
49 BESDEBUG(SPI_DEBUG_KEY,
"Built BES Command: '" <<
d_cmd_log_info <<
"'"<< endl );
64 strm << BESIndent::LMarg <<
"GatewayPathInfoCommand::dump - (" << (
void *)
this <<
")" << endl;
67 BESIndent::UnIndent();
Structure storing information used by the BES to handle the request.
std::map< std::string, std::string > data
the map of string data that will be required for the current request.
std::string action
the response object requested, e.g. das, dds
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