bes
Updated for version 3.20.6
|
29 #include "BESDap4ResponseHandler.h"
30 #include "BESDMRResponse.h"
31 #include "BESRequestHandlerList.h"
32 #include "BESDapNames.h"
33 #include "BESDapTransmit.h"
34 #include "BESContextManager.h"
35 #include "TheBESKeys.h"
38 #include "GlobalMetadataStore.h"
43 BESDap4ResponseHandler::BESDap4ResponseHandler(
const string &name)
50 BESDap4ResponseHandler::~BESDap4ResponseHandler()
63 dhi.action_name = DAP4DATA_RESPONSE_STR;
86 auto_ptr<DMR> dmr(
new DMR());
89 int response_size_limit = BESContextManager::TheManager()->
get_context_int(
"max_response_size", found);
92 dmr->set_response_limit(response_size_limit);
94 string xml_base = BESContextManager::TheManager()->
get_context(
"xml:base", found);
95 if (found && !xml_base.empty())
96 dmr->set_request_xml_base(xml_base);
117 if (d_response_object) {
118 transmitter->send_response(DAP4DATA_SERVICE, d_response_object, dhi);
130 strm << BESIndent::LMarg <<
"BESDap4ResponseHandler::dump - (" << (
void *)
this <<
")" << endl;
133 BESIndent::UnIndent();
137 BESDap4ResponseHandler::Dap4ResponseBuilder(
const string &name)
BESContainer * container
pointer to current container in this interface
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command using the specified transmitter object
void set_attributes(const std::string &attrs)
set desired attributes for this container
std::string read_string_key(const std::string &key, const std::string &default_value)
Read a string-valued key from the bes.conf file.
virtual void dump(std::ostream &strm) const
dumps information about this object
std::string get_relative_name() const
Get the relative name of the object in this container.
virtual void execute_each(BESDataHandlerInterface &dhi)
for each container in the given data handler interface, execute the given request
bool read_bool_key(const std::string &key, bool default_value)
Read a boolean-valued key from the bes.conf file.
static TheBESKeys * TheKeys()
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual int get_context_int(const std::string &name, bool &found)
Get the value of the given context and return it as an integer.
virtual void execute(BESDataHandlerInterface &dhi)
executes the command 'get dap for def_name;'
handler object that knows how to create a specific response object
response handler that builds an OPeNDAP Dap4 data response
void first_container()
set the container pointer to the first container in the containers list
virtual std::string get_context(const std::string &name, bool &found)
retrieve the value of the specified context from the BES
void set_container_type(const std::string &type)
set the type of data that this container represents, such as cedar or netcdf.
Structure storing information used by the BES to handle the request.
Represents an OPeNDAP DMR DAP4 data object within the BES.
- dap
- BESDap4ResponseHandler.cc