38 #include "BESWWWModule.h" 41 #include "BESWWWNames.h" 42 #include "BESDapNames.h" 43 #include "BESResponseNames.h" 44 #include "BESResponseHandlerList.h" 45 #include "BESWWWResponseHandler.h" 47 #include "BESWWWRequestHandler.h" 48 #include "BESRequestHandlerList.h" 50 #include "BESDapService.h" 52 #include "BESWWWTransmit.h" 53 #include "BESTransmitter.h" 54 #include "BESReturnManager.h" 55 #include "BESTransmitterNames.h" 57 #include "BESXMLWWWGetCommand.h" 59 void BESWWWModule::initialize(
const string & modname)
61 BESDEBUG(
"www",
"Initializing OPeNDAP WWW module " << modname << endl);
64 BESRequestHandlerList::TheList()->
add_handler(modname, handler);
66 BESResponseHandlerList::TheList()->
add_handler(WWW_RESPONSE, BESWWWResponseHandler::WWWResponseBuilder);
70 BESTransmitter *t = BESReturnManager::TheManager()->find_transmitter( DAP2_FORMAT);
72 t->add_method( WWW_TRANSMITTER, BESWWWTransmit::send_basic_form);
79 BESDEBUG(
"www",
"Done Initializing OPeNDAP WWW module " << modname << endl);
82 void BESWWWModule::terminate(
const string & modname)
84 BESDEBUG(
"www",
"Cleaning OPeNDAP WWW module " << modname << endl);
93 BESTransmitter *t = BESReturnManager::TheManager()->find_transmitter( DAP2_FORMAT);
95 t->remove_method(WWW_TRANSMITTER);
98 t = BESReturnManager::TheManager()->find_transmitter( DAP2_FORMAT);
100 t->remove_method(WWW_TRANSMITTER);
103 BESDEBUG(
"www",
"Done Cleaning OPeNDAP WWW module " << modname << endl);
114 strm << BESIndent::LMarg <<
"BESWWWModule::dump - (" << (
void *)
this <<
")" << endl;
virtual void dump(ostream &strm) const
dumps information about this object
static void add_to_dap_service(const string &cmd, const 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 bool add_handler(const string &handler, p_response_handler handler_method)
add a response handler to the list
Represents a specific data type request handler.
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.
virtual bool remove_handler(const string &handler)
removes a response handler from the list
virtual BESRequestHandler * remove_handler(const std::string &handler_name)
remove and return the specified request handler