29 #include "BESDap4ResponseHandler.h" 30 #include "BESDMRResponse.h" 31 #include "BESRequestHandlerList.h" 32 #include "BESDapNames.h" 33 #include "BESDapTransmit.h" 34 #include "BESContextManager.h" 36 BESDap4ResponseHandler::BESDap4ResponseHandler(
const string &name) :
BESResponseHandler(name)
40 BESDap4ResponseHandler::~BESDap4ResponseHandler()
53 dhi.action_name = DAP4DATA_RESPONSE_STR;
62 string response_size_limit = BESContextManager::TheManager()->
get_context(
"max_response_size", found);
63 if (found && !response_size_limit.empty()) {
64 std::istringstream iss(response_size_limit);
68 throw BESInternalError(
"The max_response_size context value (" + response_size_limit +
") not read",
70 dmr->set_response_limit(rsl);
73 string xml_base = BESContextManager::TheManager()->
get_context(
"xml:base", found);
74 if (found && !xml_base.empty()) {
75 dmr->set_request_xml_base(xml_base);
98 transmitter->send_response(DAP4DATA_SERVICE, _response, dhi);
110 strm << BESIndent::LMarg <<
"BESDap4ResponseHandler::dump - (" << (
void *)
this <<
")" << endl;
113 BESIndent::UnIndent();
117 BESDap4ResponseHandler::Dap4ResponseBuilder(
const string &name)
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command using the specified transmitter object ...
exception thrown if inernal error encountered
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
response handler that builds an OPeNDAP Dap4 data response
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 ...
virtual void execute(BESDataHandlerInterface &dhi)
executes the command 'get dap for def_name;'
Structure storing information used by the BES to handle the request.
virtual void dump(ostream &strm) const
dumps information about this object
virtual void dump(ostream &strm) const
dumps information about this object