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"
65 map<string, string> props;
68 if (name != GET_RESPONSE) {
69 string err =
"The specified command " + name +
" is not a get command";
73 string type = props[
"type"];
74 if (type.empty() || type !=
"html_form") {
75 string err = name +
" command: data product must be html_form";
81 d_xmlcmd_dhi.
data[WWW_URL] = props[
"url"];
82 if (d_xmlcmd_dhi.
data[WWW_URL].empty()) {
83 string err = name +
" html_form command: missing url property";
102 strm << BESIndent::LMarg <<
"BESXMLWWWGetCommand::dump - (" << (
void *)
this <<
")" << endl;
105 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.
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.
virtual void parse_basic_get(const std::string &type, std::map< std::string, std::string > &props)
Extract information from the 'props' map.
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 parse_request(xmlNode *node)
parse a get html_form command.
virtual void dump(std::ostream &strm) const
dumps information about this object