33 #include "BESDDXResponseHandler.h" 34 #include "BESDASResponse.h" 35 #include "BESDDSResponse.h" 36 #include "BESDapNames.h" 37 #include "BESDataNames.h" 38 #include "BESRequestHandlerList.h" 43 BESDDXResponseHandler::BESDDXResponseHandler(
const string &name) :
48 BESDDXResponseHandler::~BESDDXResponseHandler()
68 BESDEBUG(
"dap",
"Entering BESDDXResponseHandler::execute" << endl );
70 dhi.action_name = DDX_RESPONSE_STR;
74 DDS *dds =
new DDS(NULL,
"virtual");
78 _response_name = DDS_RESPONSE;
96 if (dds->get_keywords().has_keyword(
"dap")) {
98 "Has keyword 'dap', setting version to: " << dds->get_keywords().get_keyword_value(
"dap") << endl);
99 dds->set_dap_version(dds->get_keywords().get_keyword_value(
"dap"));
107 BESDEBUG(
"version",
"Has no clue about dap version, using default." << endl);
114 dhi.
action = DDX_RESPONSE;
117 BESDEBUG(
"dap",
"Leaving BESDDXResponseHandler::execute" << endl);
135 transmitter->send_response(DDX_SERVICE, _response, dhi);
147 strm << BESIndent::LMarg <<
"BESDDXResponseHandler::dump - (" << (
void *)
this <<
")" << endl;
150 BESIndent::UnIndent();
154 BESDDXResponseHandler::DDXResponseBuilder(
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
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command
Represents an OPeNDAP DDS DAP2 data object within the BES.
handler object that knows how to create a specific response object
virtual void dump(ostream &strm) const
dumps information about this 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
string get_request_xml_base() const
Return the xml:base URL for this request.
virtual void dump(ostream &strm) const
dumps information about this object
Structure storing information used by the BES to handle the request.
virtual void execute(BESDataHandlerInterface &dhi)
executes the command 'get ddx for def_name;'
void first_container()
set the container pointer to the first container in the containers list
response handler that builds an OPeNDAP DDX object
string action
the response object requested, e.g. das, dds
BESContainer * container
pointer to current container in this interface