27 #include "BESDMRResponseHandler.h" 28 #include "BESDMRResponse.h" 29 #include "BESRequestHandlerList.h" 30 #include "BESDapNames.h" 31 #include "BESDapTransmit.h" 32 #include "BESContextManager.h" 34 BESDMRResponseHandler::BESDMRResponseHandler(
const string &name) :
39 BESDMRResponseHandler::~BESDMRResponseHandler()
58 dhi.action_name = DMR_RESPONSE_STR;
65 string xml_base = BESContextManager::TheManager()->
get_context(
"xml:base", found);
66 if (found && !xml_base.empty()) {
67 dmr->set_request_xml_base(xml_base);
89 transmitter->send_response(DMR_SERVICE, _response, dhi);
101 strm << BESIndent::LMarg <<
"BESDMRResponseHandler::dump - (" << (
void *)
this <<
")" << endl;
104 BESIndent::UnIndent();
108 BESDMRResponseHandler::DMRResponseBuilder(
const string &name)
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command using the specified transmitter object ...
virtual void dump(ostream &strm) const
dumps information about this object
virtual void execute(BESDataHandlerInterface &dhi)
executes the command 'get dmr for def_name;' by executing the request for each container in the speci...
response handler that builds an OPeNDAP DMR response object
virtual string get_context(const string &name, bool &found)
retrieve the value of the specified context from the BES
handler object that knows how to create a specific response object
Represents an OPeNDAP DMR DAP4 data object within the BES.
virtual void execute_each(BESDataHandlerInterface &dhi)
for each container in the given data handler interface, execute the given request ...
Structure storing information used by the BES to handle the request.
virtual void dump(ostream &strm) const
dumps information about this object