31#include <libdap/InternalErr.h>
33#include <BESResponseHandler.h>
34#include <BESResponseNames.h>
35#include <BESVersionInfo.h>
37#include <BESServiceRegistry.h>
38#include <TheBESKeys.h>
41#include "S3RequestHandler.h"
49bool S3RequestHandler::d_inject_data_url;
53 add_method(VERS_RESPONSE, S3RequestHandler::S3_build_vers);
54 add_method(HELP_RESPONSE, S3RequestHandler::S3_build_help);
62 if (!info)
throw InternalErr(__FILE__, __LINE__,
"Expected a BESVersionInfo instance");
64 info->add_module(MODULE_NAME, MODULE_VERSION);
68bool S3RequestHandler::S3_build_help(BESDataHandlerInterface &dhi)
71 if (!info)
throw InternalErr(__FILE__, __LINE__,
"Expected a BESInfo instance");
75 map<string, string, std::less<>> attrs;
76 attrs[
"name"] = MODULE_NAME;
77 attrs[
"version"] = MODULE_VERSION;
79 list<string> services;
81 if (!services.empty()) {
83 attrs[
"handles"] = handles;
85 info->begin_tag(
"module", &attrs);
87 info->end_tag(
"module");
94 strm << BESIndent::LMarg <<
"S3RequestHandler::dump - (" << (
void *)
this <<
")" << endl;
97 BESIndent::UnIndent();
Structure storing information used by the BES to handle the request.
Represents a specific data type request handler.
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual BESResponseObject * get_response_object()
return the current response object
virtual void services_handled(const std::string &handler, std::list< std::string > &services)
returns the list of servies provided by the handler in question
static std::string implode(const std::list< std::string > &values, char delim)
static TheBESKeys * TheKeys()
Access to the singleton.
static bool read_bool_key(const std::string &key, bool default_value)
Read a boolean-valued key from the bes.conf file.
void dump(std::ostream &strm) const override
dumps information about this object
utility class for the HTTP catalog module