bes
Updated for version 3.20.5
|
29 #include "W10nJsonRequestHandler.h"
30 #include <BESResponseHandler.h>
31 #include <BESResponseNames.h>
32 #include <BESVersionInfo.h>
33 #include <BESDataNames.h>
34 #include <BESDataNames.h>
35 #include <TheBESKeys.h>
74 BESInfo *info = dynamic_cast < BESInfo * >(response) ;
79 string key =
"W10n.Reference" ;
83 ref =
"http://docs.opendap.org/index.php/BES_-_Modules_-_w10n_JSON" ;
84 map<string,string> attrs ;
85 attrs[
"name"] = MODULE_NAME ;
86 attrs[
"version"] = MODULE_VERSION ;
88 attrs[
"name"] = PACKAGE_NAME;
89 attrs[
"version"] = PACKAGE_VERSION;
91 attrs[
"reference"] = ref ;
92 info->begin_tag(
"module", &attrs ) ;
93 info->end_tag(
"module" ) ;
109 BESVersionInfo *info = dynamic_cast < BESVersionInfo * >(response) ;
114 info->add_module(PACKAGE_NAME, PACKAGE_VERSION);
116 info->add_module(MODULE_NAME, MODULE_VERSION);
130 strm << BESIndent::LMarg <<
"W10nJsonRequestHandler::dump - ("
131 << (
void *)
this <<
")" << endl ;
132 BESIndent::Indent() ;
134 BESIndent::UnIndent() ;
Represents a specific data type request handler.
virtual bool add_method(const string &name, p_request_handler_method method)
add a handler method to the request handler that knows how to fill in a specific response object
static bool build_version(BESDataHandlerInterface &dhi)
add version information to a version response
informational response object
static bool build_help(BESDataHandlerInterface &dhi)
adds help information for FileOut NetCDF to a help request
W10nJsonRequestHandler(const string &name)
Constructor for FileOut NetCDF module.
static TheBESKeys * TheKeys()
virtual BESResponseObject * get_response_object()
return the current response object
virtual ~W10nJsonRequestHandler(void)
Any cleanup that needs to take place.
exception thrown if inernal error encountered
void get_value(const std::string &s, std::string &val, bool &found)
Retrieve the value of a given key, if set.
virtual void dump(ostream &strm) const
dumps information about this object
virtual void dump(ostream &strm) const
dumps information about this object
Structure storing information used by the BES to handle the request.
Abstract base class representing a specific set of information in response to a request to the BES.