33 #include "BESDDSResponseHandler.h" 34 #include "BESDDSResponse.h" 35 #include "BESRequestHandlerList.h" 36 #include "BESDapNames.h" 37 #include "BESDataNames.h" 42 BESDDSResponseHandler::BESDDSResponseHandler(
const string &name) :
47 BESDDSResponseHandler::~BESDDSResponseHandler()
68 dhi.action_name = DDS_RESPONSE_STR;
69 DDS *dds =
new DDS(NULL,
"virtual");
82 if (dds->get_keywords().has_keyword(
"dap")) {
83 dds->set_dap_version(dds->get_keywords().get_keyword_value(
"dap"));
108 transmitter->send_response(DDS_SERVICE, _response, dhi);
120 strm << BESIndent::LMarg <<
"BESDDSResponseHandler::dump - (" << (
void *)
this <<
")" << endl;
123 BESIndent::UnIndent();
127 BESDDSResponseHandler::DDSResponseBuilder(
const string &name)
string get_dap_client_protocol() const
Return the dap version string sent by the client (e.g., the OLFS)
string get_constraint() const
retrieve the constraint expression for this container
Represents an OPeNDAP DDS DAP2 data object within the BES.
virtual void dump(ostream &strm) const
dumps information about this object
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.
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 ...