35 #include "BESDDSResponseHandler.h" 36 #include "BESDDSResponse.h" 37 #include "BESRequestHandlerList.h" 38 #include "BESDapNames.h" 39 #include "BESDataNames.h" 43 using namespace libdap;
45 BESDDSResponseHandler::BESDDSResponseHandler(
const string &name) :
50 BESDDSResponseHandler::~BESDDSResponseHandler()
71 dhi.action_name = DDS_RESPONSE_STR;
72 DDS *dds =
new DDS(NULL,
"virtual");
85 if (dds->get_keywords().has_keyword(
"dap")) {
86 dds->set_dap_version(dds->get_keywords().get_keyword_value(
"dap"));
112 transmitter->send_response(DDS_SERVICE, _response, dhi);
124 strm << BESIndent::LMarg <<
"BESDDSResponseHandler::dump - (" << (
void *)
this <<
")" << endl;
127 BESIndent::UnIndent();
131 BESDDSResponseHandler::DDSResponseBuilder(
const string &name)
Holds a DDS object within the BES.
handler object that knows how to create a specific response object
virtual void execute_each(BESDataHandlerInterface &dhi)
for each container in the given data handler interface, execute the given request
void set_constraint(const string &s)
set the constraint for this container
virtual void dump(ostream &strm) const
dumps information about this object
Structure storing information used by the BES to handle the request.
string get_constraint() const
retrieve the constraint expression for this container
string get_dap_client_protocol() const
Return the dap version string sent by the client (e.g., the OLFS)
virtual void dump(ostream &strm) const
dumps information about this object
response handler that builds an OPeNDAP DDS response object
void first_container()
set the container pointer to the first container in the containers list
BESContainer * container
pointer to current container in this interface
virtual void execute(BESDataHandlerInterface &dhi)
executes the command 'get dds for def_name;' by executing the request for each container in the speci...
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command using the specified transmitter object