40 #include "BESWWWModule.h"
43 #include "BESWWWNames.h"
44 #include "BESDapNames.h"
45 #include "BESResponseNames.h"
46 #include "BESResponseHandlerList.h"
47 #include "BESWWWResponseHandler.h"
49 #include "BESWWWRequestHandler.h"
50 #include "BESRequestHandlerList.h"
52 #include "BESDapService.h"
54 #include "BESWWWTransmit.h"
55 #include "BESTransmitter.h"
56 #include "BESReturnManager.h"
57 #include "BESTransmitterNames.h"
59 #include "BESXMLWWWGetCommand.h"
61 void BESWWWModule::initialize(
const string & modname)
63 BESDEBUG(
"www",
"Initializing OPeNDAP WWW module " << modname << endl);
66 BESRequestHandlerList::TheList()->
add_handler(modname, handler);
68 BESResponseHandlerList::TheList()->
add_handler(WWW_RESPONSE, BESWWWResponseHandler::WWWResponseBuilder);
72 BESTransmitter *t = BESReturnManager::TheManager()->find_transmitter( DAP2_FORMAT);
74 t->add_method( WWW_TRANSMITTER, BESWWWTransmit::send_basic_form);
81 BESDEBUG(
"www",
"Done Initializing OPeNDAP WWW module " << modname << endl);
84 void BESWWWModule::terminate(
const string & modname)
86 BESDEBUG(
"www",
"Cleaning OPeNDAP WWW module " << modname << endl);
95 BESTransmitter *t = BESReturnManager::TheManager()->find_transmitter( DAP2_FORMAT);
97 t->remove_method(WWW_TRANSMITTER);
100 t = BESReturnManager::TheManager()->find_transmitter( DAP2_FORMAT);
102 t->remove_method(WWW_TRANSMITTER);
105 BESDEBUG(
"www",
"Done Cleaning OPeNDAP WWW module " << modname << endl);
116 strm << BESIndent::LMarg <<
"BESWWWModule::dump - (" << (
void *)
this <<
")" << endl;
static void add_to_dap_service(const std::string &cmd, const std::string &desc)
static function to add commands to the dap service
static void Register(const std::string &flagName)
register the specified debug flag
virtual bool add_handler(const std::string &handler_name, BESRequestHandler *handler)
add a request handler to the list of registered handlers for this server
virtual BESRequestHandler * remove_handler(const std::string &handler_name)
remove and return the specified request handler
Represents a specific data type request handler.
virtual bool remove_handler(const std::string &handler)
removes a response handler from the list
virtual bool add_handler(const std::string &handler, p_response_handler handler_method)
add a response handler to the list
virtual void dump(std::ostream &strm) const
dumps information about this object
static void del_command(const std::string &cmd_str)
Deletes the command called cmd_str from the list of possible commands.
static void add_command(const std::string &cmd_str, p_xmlcmd_builder cmd)
Add a command to the possible commands allowed by this BES.