29#include "FoJsonRequestHandler.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>
52 BESRequestHandler(name)
82 string key =
"FoJson.Reference";
85 if (ref.empty()) ref =
"https://docs.opendap.org/index.php/BES_-_Modules_-_FileOut_JSON";
86 map<string, string, std::less<>> attrs;
87 attrs[
"name"] = MODULE_NAME;
88 attrs[
"version"] = MODULE_VERSION;
90 attrs[
"reference"] = ref;
91 info->begin_tag(
"module", &attrs);
92 info->end_tag(
"module");
110 info->add_module(MODULE_NAME, MODULE_VERSION);
123 strm << BESIndent::LMarg <<
"FoJsonRequestHandler::dump - (" << (
void *)
this <<
")" << endl;
126 BESIndent::UnIndent();
Structure storing information used by the BES to handle the request.
informational response object
exception thrown if internal error encountered
virtual bool add_method(const std::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
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual BESResponseObject * get_response_object()
return the current response object
Abstract base class representing a specific set of information in response to a request to the BES.
virtual ~FoJsonRequestHandler(void)
Any cleanup that needs to take place.
FoJsonRequestHandler(const std::string &name)
Constructor for FileOut NetCDF module.
static bool build_help(BESDataHandlerInterface &dhi)
adds help information for FileOut NetCDF to a help request
virtual void dump(std::ostream &strm) const
dumps information about this object
static bool build_version(BESDataHandlerInterface &dhi)
add version information to a version response
void get_value(const std::string &s, std::string &val, bool &found)
Retrieve the value of a given key, if set.
static TheBESKeys * TheKeys()
Access to the singleton.