35#include "BESXMLWWWGetCommand.h"
36#include "BESDefinitionStorageList.h"
37#include "BESDefinitionStorage.h"
39#include "BESDataNames.h"
40#include "BESWWWNames.h"
41#include "BESResponseNames.h"
42#include "BESXMLUtils.h"
44#include "BESSyntaxUserError.h"
67 map<string, string> props;
70 if (name != GET_RESPONSE) {
71 string err =
"The specified command " + name +
" is not a get command";
75 string type = props[
"type"];
76 if (type.empty() || type !=
"html_form") {
77 string err = name +
" command: data product must be html_form";
83 d_xmlcmd_dhi.data[WWW_URL] = props[
"url"];
84 if (d_xmlcmd_dhi.data[WWW_URL].empty()) {
85 string err = name +
" html_form command: missing url property";
104 strm << BESIndent::LMarg <<
"BESXMLWWWGetCommand::dump - (" << (
void *)
this <<
")" << endl;
107 BESIndent::UnIndent();
Structure storing information used by the BES to handle the 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