33 #include "BESXMLWWWGetCommand.h" 34 #include "BESDefinitionStorageList.h" 35 #include "BESDefinitionStorage.h" 36 #include "BESDefine.h" 37 #include "BESDataNames.h" 38 #include "BESWWWNames.h" 39 #include "BESResponseNames.h" 40 #include "BESXMLUtils.h" 42 #include "BESSyntaxUserError.h" 60 map<string, string> props;
63 if (name != GET_RESPONSE) {
64 string err =
"The specified command " + name +
" is not a get command";
68 string type = props[
"type"];
69 if (type.empty() || type !=
"html_form") {
70 string err = name +
" command: data product must be html_form";
76 d_xmlcmd_dhi.
data[WWW_URL] = props[
"url"];
77 if (d_xmlcmd_dhi.
data[WWW_URL].empty()) {
78 string err = name +
" html_form command: missing url property";
97 strm << BESIndent::LMarg <<
"BESXMLWWWGetCommand::dump - (" << (
void *)
this <<
")" << endl;
100 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.
virtual void parse_request(xmlNode *node)
parse a get html_form command.
virtual void parse_basic_get(const string &type, map< string, string > &props)
Extract information from the 'props' map.
Structure storing information used by the BES to handle the request.
map< string, string > data
the map of string data that will be required for the current request.
Base class for the BES's commands.
virtual void dump(ostream &strm) const
dumps information about this object
std::string d_cmd_log_info
Used only for the log.