31#include <libdap/InternalErr.h>
33#include <BESResponseHandler.h>
34#include <BESResponseNames.h>
35#include <BESVersionInfo.h>
36#include <BESTextInfo.h>
37#include "BESDapNames.h"
38#include "BESDataDDSResponse.h"
39#include "BESDDSResponse.h"
40#include "BESDASResponse.h"
41#include <BESConstraintFuncs.h>
42#include <BESServiceRegistry.h>
45#include "NgapRequestHandler.h"
54NgapRequestHandler::NgapRequestHandler(
const string &name) :
57 add_method(VERS_RESPONSE, NgapRequestHandler::ngap_build_vers);
58 add_method(HELP_RESPONSE, NgapRequestHandler::ngap_build_help);
61NgapRequestHandler::~NgapRequestHandler()
69 if (!info)
throw InternalErr(__FILE__, __LINE__,
"Expected a BESVersionInfo instance");
71 info->add_module(PACKAGE_NAME, PACKAGE_VERSION);
73 info->add_module(MODULE_NAME, MODULE_VERSION);
81 if (!info)
throw InternalErr(__FILE__, __LINE__,
"Expected a BESInfo instance");
85 map<string, string> attrs;
86 attrs[
"name"] = MODULE_NAME;
87 attrs[
"version"] = MODULE_VERSION;
89 attrs[
"name"] = PACKAGE_NAME;
90 attrs[
"version"] = PACKAGE_VERSION;
92 list<string> services;
94 if (services.size() > 0) {
96 attrs[
"handles"] = handles;
98 info->begin_tag(
"module", &attrs);
100 info->end_tag(
"module");
107 strm << BESIndent::LMarg <<
"NgapRequestHandler::dump - (" << (
void *)
this <<
")" << endl;
110 BESIndent::UnIndent();
Structure storing information used by the BES to handle the request.
informational response object
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)
virtual void dump(std::ostream &strm) const
dumps information about this object