35#include "BESResponseHandler.h"
36#include "BESResponseObject.h"
37#include "BESDataHandlerInterface.h"
38#include "BESTransmitter.h"
40#include "TheBESKeys.h"
54const string annotation_service_url =
"BES.AnnotationServiceURL";
62const string include_dataset_in_annotation_url =
"BES.IncludeDatasetInAnnotationURL";
65BESResponseHandler::BESResponseHandler(
const string &name) :
66 d_response_name(name), d_response_object(0)
75BESResponseHandler::~BESResponseHandler()
77 delete d_response_object;
84 return d_response_object;
91 d_response_object = new_response;
104 strm << BESIndent::LMarg <<
"BESResponseHandler::dump - (" << (
void *)
this <<
")" << endl;
106 strm << BESIndent::LMarg <<
"response name: " << d_response_name << endl;
107 if (d_response_object) {
108 strm << BESIndent::LMarg <<
"response object:" << endl;
110 d_response_object->
dump(strm);
111 BESIndent::UnIndent();
114 strm << BESIndent::LMarg <<
"response object: not set" << endl;
116 BESIndent::UnIndent();
virtual void dump(std::ostream &strm) const
dumps information about this object
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
Abstract base class representing a specific set of information in response to a request to the BES.
virtual void dump(std::ostream &strm) const =0
dump the contents of this object to the specified ostream
static TheBESKeys * TheKeys()
bool read_bool_key(const std::string &key, bool default_value)
Read a boolean-valued key from the bes.conf file.
std::string read_string_key(const std::string &key, const std::string &default_value)
Read a string-valued key from the bes.conf file.