33 #include "BESDataHandlerInterface.h" 34 #include "BESContainer.h" 35 #include "BESResponseHandler.h" 37 #include "BESIndent.h" 77 if (
this == ©_from)
80 output_stream = copy_from.output_stream;
81 response_handler = copy_from.response_handler;
83 containers = copy_from.containers;
84 containers_iterator = copy_from.containers_iterator;
88 action_name = copy_from.action_name;
89 executed = copy_from.executed;
132 if (response_handler) {
133 delete response_handler;
135 response_handler = 0;
150 if (response_handler) {
165 strm << BESIndent::LMarg <<
"BESDataHandlerInterface::dump" << endl;
167 if (response_handler) {
168 strm << BESIndent::LMarg <<
"response handler:" << endl;
170 response_handler->
dump(strm);
171 BESIndent::UnIndent();
174 strm << BESIndent::LMarg <<
"response handler: not set" << endl;
178 strm << BESIndent::LMarg <<
"current container:" << endl;
181 BESIndent::UnIndent();
184 strm << BESIndent::LMarg <<
"current container: not set" << endl;
187 if (containers.size()) {
188 strm << BESIndent::LMarg <<
"container list:" << endl;
190 list<BESContainer *>::const_iterator i = containers.begin();
191 list<BESContainer *>::const_iterator ie = containers.end();
192 for (; i != ie; i++) {
195 BESIndent::UnIndent();
198 strm << BESIndent::LMarg <<
"container list: empty" << endl;
201 strm << BESIndent::LMarg <<
"action: " <<
action << endl;
202 strm << BESIndent::LMarg <<
"action name: " << action_name << endl;
205 strm << BESIndent::LMarg <<
"data:" << endl;
207 data_citer i =
data.begin();
208 data_citer ie =
data.end();
209 for (; i != ie; i++) {
210 strm << BESIndent::LMarg << (*i).first <<
": " << (*i).second << endl;
212 BESIndent::UnIndent();
215 strm << BESIndent::LMarg <<
"data: none" << endl;
219 strm << BESIndent::LMarg <<
"error info:" << endl;
222 BESIndent::UnIndent();
225 strm << BESIndent::LMarg <<
"error info: null" << endl;
227 BESIndent::UnIndent();
void clean()
clean up any information created within this data handler interface
void dump(ostream &strm) const
dumps information about this object
virtual void dump(ostream &strm) const
Displays debug information about this object.
void make_copy(const BESDataHandlerInterface ©_from)
deprecated
virtual BESResponseObject * get_response_object()
return the current response object
BESResponseObject * get_response_object()
returns the response object using the response handler
string transmit_protocol
request protocol, such as HTTP
virtual void dump(ostream &strm) const
dumps information about this object
Structure storing information used by the BES to handle the request.
map< string, string > data
the map of string data that will be required for the current request.
virtual void dump(ostream &strm) const
dumps information about this object
BESInfo * error_info
error information object
Abstract base class representing a specific set of information in response to a request to the BES...
string action
the response object requested, e.g. das, dds
BESContainer * container
pointer to current container in this interface