33#include "BESDataHandlerInterface.h"
34#include "BESContainer.h"
35#include "BESResponseHandler.h"
81 if (
this == ©_from)
84 output_stream = copy_from.output_stream;
85 response_handler = copy_from.response_handler;
87 containers = copy_from.containers;
88 containers_iterator = copy_from.containers_iterator;
92 action_name = copy_from.action_name;
93 executed = copy_from.executed;
136 if (response_handler) {
137 delete response_handler;
139 response_handler =
nullptr;
154 if (response_handler) {
155 response = response_handler->get_response_object();
169 strm << BESIndent::LMarg <<
"BESDataHandlerInterface::dump" << endl;
171 if (response_handler) {
172 strm << BESIndent::LMarg <<
"response handler:" << endl;
174 response_handler->dump(strm);
175 BESIndent::UnIndent();
178 strm << BESIndent::LMarg <<
"response handler: not set" << endl;
182 strm << BESIndent::LMarg <<
"current container:" << endl;
185 BESIndent::UnIndent();
188 strm << BESIndent::LMarg <<
"current container: not set" << endl;
191 if (containers.size()) {
192 strm << BESIndent::LMarg <<
"container list:" << endl;
196 for (; i != ie; i++) {
199 BESIndent::UnIndent();
202 strm << BESIndent::LMarg <<
"container list: empty" << endl;
205 strm << BESIndent::LMarg <<
"action: " <<
action << endl;
206 strm << BESIndent::LMarg <<
"action name: " << action_name << endl;
209 strm << BESIndent::LMarg <<
"data:" << endl;
211 data_citer i =
data.begin();
212 data_citer ie =
data.end();
213 for (; i != ie; i++) {
214 strm << BESIndent::LMarg << (*i).first <<
": " << (*i).second << endl;
216 BESIndent::UnIndent();
219 strm << BESIndent::LMarg <<
"data: none" << endl;
223 strm << BESIndent::LMarg <<
"error info:" << endl;
226 BESIndent::UnIndent();
229 strm << BESIndent::LMarg <<
"error info: null" << endl;
231 BESIndent::UnIndent();
Structure storing information used by the BES to handle the request.
std::string transmit_protocol
request protocol, such as HTTP
void make_copy(const BESDataHandlerInterface ©_from)
deprecated
std::map< std::string, std::string > data
the map of string data that will be required for the current request.
std::string action
the response object requested, e.g. das, dds
void clean()
clean up any information created within this data handler interface
void dump(std::ostream &strm) const override
dumps information about this object
BESContainer * container
pointer to current container in this interface
BESResponseObject * get_response_object()
returns the response object using the response handler
BESInfo * error_info
error information object
Abstract base class representing a specific set of information in response to a request to the BES.