OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
BESDefaultModule.cc
Go to the documentation of this file.
1 // BESDefaultModule.cc
2 
3 // This file is part of bes, A C++ back-end server implementation framework
4 // for the OPeNDAP Data Access Protocol.
5 
6 // Copyright (c) 2004-2009 University Corporation for Atmospheric Research
7 // Author: Patrick West <pwest@ucar.edu> and Jose Garcia <jgarcia@ucar.edu>
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the GNU Lesser General Public
11 // License as published by the Free Software Foundation; either
12 // version 2.1 of the License, or (at your option) any later version.
13 //
14 // This library is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 // Lesser General Public License for more details.
18 //
19 // You should have received a copy of the GNU Lesser General Public
20 // License along with this library; if not, write to the Free Software
21 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 //
23 // You can contact University Corporation for Atmospheric Research at
24 // 3080 Center Green Drive, Boulder, CO 80301
25 
26 // (c) COPYRIGHT University Corporation for Atmospheric Research 2004-2005
27 // Please read the full copyright statement in the file COPYRIGHT_UCAR.
28 //
29 // Authors:
30 // pwest Patrick West <pwest@ucar.edu>
31 // jgarcia Jose Garcia <jgarcia@ucar.edu>
32 
33 #include <iostream>
34 
35 using std::endl ;
36 
37 #include "BESDefaultModule.h"
38 
39 #include "BESResponseNames.h"
40 #include "BESResponseHandlerList.h"
41 
42 #include "BESHelpResponseHandler.h"
44 
45 #ifdef BES_DEVELOPER
48 #endif
49 
53 
60 
67 
70 
72 
73 #include "BESTransmitterNames.h"
74 #include "BESReturnManager.h"
75 #include "BESBasicTransmitter.h"
76 
77 #include "BESDebug.h"
78 
79 #include "BESTextInfo.h"
80 #include "BESHTMLInfo.h"
81 #include "BESXMLInfo.h"
82 #include "BESInfoList.h"
83 #include "BESInfoNames.h"
84 
85 int
87 {
88  BESDEBUG( "bes", "Initializing default modules:" << endl ) ;
89 
90  BESDEBUG( "bes", " adding " << HELP_RESPONSE << " response handler" << endl ) ;
92 
93 #ifdef BES_DEVELOPER
94  BESDEBUG( "bes", " adding " << PROCESS_RESPONSE << " response handler" << endl ) ;
96 
97  BESDEBUG( "bes", " adding " << CONFIG_RESPONSE << " response handler" << endl ) ;
99 #endif
100 
101  BESDEBUG( "bes", " adding " << VERS_RESPONSE << " response handler" << endl ) ;
103 
104  BESDEBUG( "bes", " adding " << STATUS_RESPONSE << " response handler" << endl ) ;
106 
107  BESDEBUG( "bes", " adding " << SERVICE_RESPONSE << " response handler" << endl ) ;
109 
110  BESDEBUG( "bes", " adding " << STREAM_RESPONSE << " response handler" << endl ) ;
112 
113  BESDEBUG( "bes", " adding " << SETCONTAINER << " response handler" << endl ) ;
115 
116  BESDEBUG( "bes", " adding " << SHOWCONTAINERS_RESPONSE << " response handler" << endl ) ;
118 
119  BESDEBUG( "bes", " adding " << DELETE_CONTAINER << " response handler" << endl ) ;
121 
122  BESDEBUG( "bes", " adding " << DELETE_CONTAINERS << " response handler" << endl) ;
124 
125  BESDEBUG( "bes", " adding " << PERSISTENCE_VOLATILE << " container persistence" << endl ) ;
127 
128  BESDEBUG( "bes", " adding " << DEFINE_RESPONSE << " response handler" << endl ) ;
130 
131  BESDEBUG( "bes", " adding " << SHOWDEFS_RESPONSE << " response handler" << endl) ;
133 
134  BESDEBUG( "bes", " adding " << DELETE_DEFINITION << " response handler" << endl) ;
136 
137  BESDEBUG( "bes", " adding " << DELETE_DEFINITIONS << " response handler" << endl ) ;
139 
140  BESDEBUG( "bes", " adding " << PERSISTENCE_VOLATILE << " definition persistence" << endl ) ;
142 
143  BESDEBUG( "bes", " adding " << SET_CONTEXT << " response handler" << endl) ;
145 
146  BESDEBUG( "bes", " adding " << SHOW_CONTEXT << " response handler" << endl) ;
148 
149  BESDEBUG( "bes", " adding " << SHOW_ERROR << " response handler" << endl) ;
151 
152  BESDEBUG( "bes", " adding " << BASIC_TRANSMITTER << " transmitter" << endl ) ;
154 
155  BESDEBUG( "bes", " adding " << BES_TEXT_INFO << " info builder" << endl ) ;
158 
159  BESDEBUG( "bes", " adding " << BES_HTML_INFO << " info builder" << endl ) ;
162 
163  BESDEBUG( "bes", " adding " << BES_XML_INFO << " info builder" << endl ) ;
166 
167  BESDEBUG( "bes", " adding bes debug context" << endl ) ;
168  BESDebug::Register( "bes" ) ;
169 
170  BESDEBUG( "bes", "Done Initializing default modules:" << endl ) ;
171 
172  return 0 ;
173 }
174 
175 int
177 {
178  BESDEBUG( "bes", "Removing default modules" << endl ) ;
179 
186 
192 
198 
201 
203 
204  BESDEBUG( "bes", "Done Removing default modules" << endl ) ;
205 
206  return 0 ;
207 }
208