27 #include "ShowBesKeyCommand.h"
28 #include "BESDataNames.h"
32 #include "BESXMLUtils.h"
33 #include "BESSyntaxUserError.h"
58 map<string, string> props;
60 if (name != SHOW_BES_KEY_RESPONSE_STR) {
61 string err =
"The specified command " + name +
" is not a " + SHOW_BES_KEY_RESPONSE_STR +
" command";
66 d_xmlcmd_dhi.action = SHOW_BES_KEY_RESPONSE;
67 d_xmlcmd_dhi.data[SHOW_BES_KEY_RESPONSE] = SHOW_BES_KEY_RESPONSE;
68 d_cmd_log_info =
"show besKey";
72 string requested_bes_key = props[
"key"];
74 if(requested_bes_key.empty())
75 throw BESError(
"Ouch! A Key name was not submitted with the request for a Key value from BESKeys", BES_SYNTAX_USER_ERROR, __FILE__, __LINE__);
77 d_xmlcmd_dhi.data[BES_KEY] = requested_bes_key;
79 if (!d_xmlcmd_dhi.data[BES_KEY].empty()) {
80 d_cmd_log_info +=
" for " + d_xmlcmd_dhi.data[BES_KEY];
82 d_cmd_log_info +=
";";
84 BESDEBUG(SBK_DEBUG_KEY,
"Built BES Command: '" << d_cmd_log_info <<
"'"<< endl );
99 strm << BESIndent::LMarg <<
"ShowBesKeyCommand::dump - (" << (
void *)
this <<
")" << endl;
102 BESIndent::UnIndent();