60 map<string, string> props ;
65 string err =
"The specified command " + name
66 +
" is not a get command" ;
70 string type = props[
"type"] ;
73 string err = name +
" command: data product must be " 81 map<string,string> cprops ;
86 while( cnode && (elems < 2) )
88 if( cname ==
"contentStartId" )
90 if( !_contentStartId.empty() )
93 +
" command: contentStartId has multiple values" ;
96 _contentStartId = cval ;
97 _str_cmd +=
" contentStartId " + _contentStartId ;
100 if( cname ==
"mimeBoundary" )
102 if( !_mimeBoundary.empty() )
105 +
" command: mimeBoundary has multiple values" ;
108 _mimeBoundary = cval ;
109 _str_cmd +=
" mimeBoundary " + _mimeBoundary ;
115 if( _contentStartId.empty() )
117 string err = name +
" command: contentStartId not specified" ;
120 if( _mimeBoundary.empty() )
122 string err = name +
" command: mimeBoundary not specified" ;
155 << (
void *)
this <<
")" << endl ;
static xmlNode * GetFirstChild(xmlNode *node, string &child_name, string &child_value, map< string, string > &child_props)
get the first element child node for the given node
virtual void dump(ostream &strm) const
dumps information about this object
static xmlNode * GetNextChild(xmlNode *child_node, string &next_name, string &next_value, map< string, string > &next_props)
get the next element child node after the given child node
virtual void prep_request()
prepare the get dataddx command
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
BESDataHandlerInterface _dhi
error thrown if there is a user syntax error in the request or any other user error ...
BESXMLGetDataDDXCommand(const BESDataHandlerInterface &base_dhi)
virtual void set_response()
The request has been parsed, use the command action name to set the response handler.
virtual void parse_basic_get(xmlNode *node, const string &name, const string &type, const string &value, map< string, string > &props)
static BESXMLCommand * CommandBuilder(const BESDataHandlerInterface &base_dhi)
static ostream & LMarg(ostream &strm)
virtual void prep_request()
Prepare any information needed to execute the request of this get command.
Structure storing information used by the BES to handle the request.
virtual void parse_request(xmlNode *node)
parse a get dataddx command.
map< string, string > data
the map of string data that will be required for the current request.
virtual void dump(ostream &strm) const
dumps information about this object