bes
Updated for version 3.20.5
|
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();
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
virtual void parse_request(xmlNode *node)
parse a get html_form command.
std::string d_cmd_log_info
Used only for the log.
virtual void parse_basic_get(const string &type, map< string, string > &props)
Extract information from the 'props' map.
virtual void set_response()
The request has been parsed, use the command action name to set the response handler.
virtual void dump(ostream &strm) const
dumps information about this object
virtual void dump(ostream &strm) const
dumps information about this object
error thrown if there is a user syntax error in the request or any other user error
Base class for the BES's commands.
map< string, string > data
the map of string data that will be required for the current request.
Structure storing information used by the BES to handle the request.