OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
DapRequestHandler.h
Go to the documentation of this file.
1 // DapRequestHandler.h
2 
3 // Copyright (c) 2013 OPeNDAP, Inc. Author: James Gallagher
4 // <jgallagher@opendap.org>, Patrick West <pwest@opendap.org>
5 // Nathan Potter <npotter@opendap.org>
6 //
7 // modify it under the terms of the GNU Lesser General Public License
8 // as published by the Free Software Foundation; either version 2.1 of
9 // the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful, but
12 // WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
15 //
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 // 02110-1301 U\ SA
19 //
20 // You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI.
21 // 02874-0112.
22 
23 #ifndef I_DapRequestHandler_H
24 #define I_DapRequestHandler_H
25 
26 #include <string>
27 
28 #include "BESRequestHandler.h"
29 
30 namespace libdap {
31  class DMR;
32  class DDS;
33 }
34 
36  static bool d_use_series_values;
37  static bool d_use_series_values_set;
38 
39  static bool d_use_test_types;
40  static bool d_use_test_types_set;
41 
42  // These are static because they are used by the static public methods.
43  static void build_dmr_from_file(const string& accessed, bool explicit_containers, libdap::DMR* dmr);
44  static void build_dds_from_file(const string& accessed, bool explicit_containers, libdap::DDS* dds);
45  static void load_dds_from_data_file(const string &accessed, libdap::DDS &dds);
46 
47 public:
48  DapRequestHandler(const string &name);
49  virtual ~DapRequestHandler(void) { }
50 
51  static bool dap_build_das(BESDataHandlerInterface &dhi);
52  static bool dap_build_dds(BESDataHandlerInterface &dhi);
53  static bool dap_build_data(BESDataHandlerInterface &dhi);
54 
55  static bool dap_build_dmr(BESDataHandlerInterface &dhi);
57 
58  static bool dap_build_vers(BESDataHandlerInterface &dhi);
59  static bool dap_build_help(BESDataHandlerInterface &dhi);
60 
61  virtual void dump(ostream &strm) const;
62 };
63 
64 #endif // DapRequestHandler.h
virtual void dump(ostream &strm) const
dumps information about this object
static bool dap_build_data(BESDataHandlerInterface &dhi)
static bool dap_build_dmr(BESDataHandlerInterface &dhi)
Given a request for the DMR response, look at the data source and parse it's DMR/XML information...
static class NCMLUtil overview
DapRequestHandler(const string &name)
static bool dap_build_dap4data(BESDataHandlerInterface &dhi)
virtual ~DapRequestHandler(void)
Represents a specific data type request handler.
static bool dap_build_help(BESDataHandlerInterface &dhi)
Structure storing information used by the BES to handle the request.
static bool dap_build_dds(BESDataHandlerInterface &dhi)
static bool dap_build_das(BESDataHandlerInterface &dhi)
This method will look at the extension on the input file and assume that if it's .das, that file should be read and used to build the DAS object.
static bool dap_build_vers(BESDataHandlerInterface &dhi)