35 #include "BESDDXResponseHandler.h" 36 #include "BESDASResponse.h" 37 #include "BESDDSResponse.h" 38 #include "BESDapNames.h" 39 #include "BESDataNames.h" 40 #include "BESRequestHandlerList.h" 46 BESDDXResponseHandler::BESDDXResponseHandler(
const string &name) :
51 BESDDXResponseHandler::~BESDDXResponseHandler()
71 BESDEBUG(
"dap",
"Entering BESDDXResponseHandler::execute" << endl );
73 dhi.action_name = DDX_RESPONSE_STR;
77 DDS *dds =
new DDS(NULL,
"virtual");
81 _response_name = DDS_RESPONSE;
99 if (dds->get_keywords().has_keyword(
"dap")) {
101 "Has keyword 'dap', setting version to: " << dds->get_keywords().get_keyword_value(
"dap") << endl);
102 dds->set_dap_version(dds->get_keywords().get_keyword_value(
"dap"));
110 BESDEBUG(
"version",
"Has no clue about dap version, using default." << endl);
117 dhi.
action = DDX_RESPONSE;
120 BESDEBUG(
"dap",
"Leaving BESDDXResponseHandler::execute" << endl);
138 transmitter->send_response(DDX_SERVICE, _response, dhi);
150 strm << BESIndent::LMarg <<
"BESDDXResponseHandler::dump - (" << (
void *)
this <<
")" << endl;
153 BESIndent::UnIndent();
157 BESDDXResponseHandler::DDXResponseBuilder(
const string &name)
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command
Holds a DDS 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
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
virtual void execute(BESDataHandlerInterface &dhi)
executes the command 'get ddx for def_name;'
string get_request_xml_base() const
Return the xml:base URL for this request.
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