35#include "BESResponseHandler.h"
38#include "BESResponseObject.h"
39#include "BESDataHandlerInterface.h"
40#include "BESTransmitter.h"
42#include "TheBESKeys.h"
48const string annotation_service_url =
"BES.AnnotationServiceURL";
50BESResponseHandler::BESResponseHandler(
string name) : d_response_name(std::move(name))
55BESResponseHandler::~BESResponseHandler()
57 delete d_response_object;
64 return d_response_object;
71 d_response_object = new_response;
84 strm << BESIndent::LMarg <<
"BESResponseHandler::dump - (" << (
void *)
this <<
")" << endl;
86 strm << BESIndent::LMarg <<
"response name: " << d_response_name << endl;
87 if (d_response_object) {
88 strm << BESIndent::LMarg <<
"response object:" << endl;
90 d_response_object->dump(strm);
91 BESIndent::UnIndent();
94 strm << BESIndent::LMarg <<
"response object: not set" << endl;
96 BESIndent::UnIndent();
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
void dump(std::ostream &strm) const override
dumps information about this object
Abstract base class representing a specific set of information in response to a request to the BES.
static std::string read_string_key(const std::string &key, const std::string &default_value)
Read a string-valued key from the bes.conf file.