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" 
   61void BESWWWModule::initialize(
const string &modname)
 
   63    BESDEBUG(
"www", 
"Initializing OPeNDAP WWW module " << modname << endl);
 
   65    BESRequestHandler *handler = 
new BESWWWRequestHandler(modname);
 
   66    BESRequestHandlerList::TheList()->add_handler(modname, handler);
 
   68    BESResponseHandlerList::TheList()->add_handler(WWW_RESPONSE, BESWWWResponseHandler::WWWResponseBuilder);
 
   72    BESTransmitter *t = BESReturnManager::TheManager()->find_transmitter(DAP_FORMAT);
 
   74        t->add_method(WWW_TRANSMITTER, BESWWWTransmit::send_basic_form);
 
   81    BESDEBUG(
"www", 
"Done Initializing OPeNDAP WWW module " << modname << endl);
 
   84void BESWWWModule::terminate(
const string &modname)
 
   86    BESDEBUG(
"www", 
"Cleaning OPeNDAP WWW module " << modname << endl);
 
   88    BESRequestHandler *rh = BESRequestHandlerList::TheList()->remove_handler(modname);
 
   91    BESResponseHandlerList::TheList()->remove_handler(WWW_RESPONSE);
 
   95    BESTransmitter *t = BESReturnManager::TheManager()->find_transmitter(DAP_FORMAT);
 
   97        t->remove_method(WWW_TRANSMITTER);
 
  100    t = BESReturnManager::TheManager()->find_transmitter(DAP_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 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.