bes
Updated for version 3.20.6
|
35 #include "BESDataDDXResponseHandler.h"
36 #include "BESDataDDSResponse.h"
37 #include "BESRequestHandlerList.h"
38 #include "BESDapNames.h"
39 #include "BESDataNames.h"
40 #include "BESTransmitter.h"
47 BESDataDDXResponseHandler::BESDataDDXResponseHandler(
const string &name )
52 BESDataDDXResponseHandler::~BESDataDDXResponseHandler( )
73 BESDEBUG(
"dap",
"Entering BESDataDDXResponseHandler::execute" << endl ) ;
75 dhi.action_name = DATADDX_RESPONSE_STR ;
79 DDS *dds =
new DDS( NULL,
"virtual" ) ;
81 d_response_object = bdds ;
85 d_response_name = DATA_RESPONSE ;
86 dhi.
action = DATA_RESPONSE ;
102 dhi.
data[POST_CONSTRAINT] = dds->get_keywords().parse_keywords(dhi.
data[POST_CONSTRAINT]);
103 if (dds->get_keywords().has_keyword(
"dap")) {
104 dds->set_dap_version(dds->get_keywords().get_keyword_value(
"dap"));
120 dhi.
action = DATADDX_RESPONSE ;
121 d_response_object = bdds ;
123 BESDEBUG(
"dap",
"Leaving BESDataDDXResponseHandler::execute" << endl ) ;
142 if( d_response_object )
144 transmitter->send_response( DATADDX_SERVICE, d_response_object, dhi ) ;
157 strm << BESIndent::LMarg <<
"BESDataDDXResponseHandler::dump - ("
158 << (
void *)
this <<
")" << endl ;
159 BESIndent::Indent() ;
161 BESIndent::UnIndent() ;
165 BESDataDDXResponseHandler::DataDDXResponseBuilder(
const string &name )
BESContainer * container
pointer to current container in this interface
std::string action
the response object requested, e.g. das, dds
virtual void dump(std::ostream &strm) const
dumps information about this object
std::string get_constraint() const
retrieve the constraint expression for this container
virtual void execute_each(BESDataHandlerInterface &dhi)
for each container in the given data handler interface, execute the given request
virtual void execute(BESDataHandlerInterface &dhi)
executes the command 'get ddx for def_name;'
std::map< std::string, std::string > data
the map of string data that will be required for the current request.
handler object that knows how to create a specific response object
virtual void dump(std::ostream &strm) const
dumps information about this object
response handler that builds an OPeNDAP DDX object
Represents an OPeNDAP DataDDS DAP2 data object within the BES.
std::string get_dap_client_protocol() const
Return the dap version string sent by the client (e.g., the OLFS)
void set_constraint(const std::string &s)
set the constraint for this container
void first_container()
set the container pointer to the first container in the containers list
std::string get_request_xml_base() const
Return the xml:base URL for this request.
Structure storing information used by the BES to handle the request.
virtual void transmit(BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
transmit the response object built by the execute command
- dap
- BESDataDDXResponseHandler.cc