35 #include "BESResponseHandler.h" 36 #include "BESResponseObject.h" 37 #include "BESDataHandlerInterface.h" 38 #include "BESTransmitter.h" 40 #include "TheBESKeys.h" 50 const string annotation_service_url =
"BES.AnnotationServiceURL";
58 const string include_dataset_in_annotation_url =
"BES.IncludeDatasetInAnnotationURL";
61 BESResponseHandler::BESResponseHandler(
const string &name) :
62 d_response_name(name), d_response_object(0)
71 BESResponseHandler::~BESResponseHandler()
73 delete d_response_object;
80 return d_response_object;
87 d_response_object = new_response;
100 strm << BESIndent::LMarg <<
"BESResponseHandler::dump - (" << (
void *)
this <<
")" << endl;
102 strm << BESIndent::LMarg <<
"response name: " << d_response_name << endl;
103 if (d_response_object) {
104 strm << BESIndent::LMarg <<
"response object:" << endl;
106 d_response_object->
dump(strm);
107 BESIndent::UnIndent();
110 strm << BESIndent::LMarg <<
"response object: not set" << endl;
112 BESIndent::UnIndent();
std::string read_string_key(const std::string &key, const std::string &default_value)
Read a string-valued key from the bes.conf file.
virtual void dump(ostream &strm) const =0
dump the contents of this object to the specified ostream
virtual BESResponseObject * set_response_object(BESResponseObject *o)
replaces the current response object with the specified one, returning the current response object
virtual BESResponseObject * get_response_object()
return the current response object
static TheBESKeys * TheKeys()
bool read_bool_key(const std::string &key, bool default_value)
Read a boolean-valued key from the bes.conf file.
virtual void dump(std::ostream &strm) const
dumps information about this object
Abstract base class representing a specific set of information in response to a request to the BES.