61 map<string, string> props ;
65 string err =
"The specified command " + action
66 +
" is not a set container command" ;
72 map<string, string> cprops ;
75 if( value.empty() && !real )
77 string err = action +
" command: container real name missing" ;
82 name = props[
"name"] ;
85 string err = action +
" command: name property missing" ;
92 storage = props[
"space"] ;
93 if( !storage.empty() )
103 string container_type = props[
"type"] ;
113 xmlBufferPtr buf = xmlBufferCreate() ;
114 xmlNodeDump( buf, real->doc, real, 2, 1 ) ;
117 value = (
char *)buf->content ;
124 _str_cmd = (string)
"set container in " + storage
125 +
" values " + name +
"," + value ;
126 if( !container_type.empty() )
147 << (
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
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 ...
virtual void set_response()
The request has been parsed, use the command action name to set the response handler.
#define PERSISTENCE_VOLATILE
static BESXMLCommand * CommandBuilder(const BESDataHandlerInterface &base_dhi)
virtual void parse_request(xmlNode *node)
parse a set container command.
static ostream & LMarg(ostream &strm)
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.
string action
the response object requested, e.g.
virtual void dump(ostream &strm) const
dumps information about this object
virtual void dump(ostream &strm) const
dumps information about this object
BESXMLSetContainerCommand(const BESDataHandlerInterface &base_dhi)