35 #include "BESResponseHandler.h" 36 #include "BESResponseNames.h" 37 #include "BESVersionInfo.h" 38 #include "BESTextInfo.h" 39 #include "BESConstraintFuncs.h" 40 #include "BESInternalError.h" 42 #include "SampleRequestHandler.h" 43 #include "SampleResponseNames.h" 45 SampleRequestHandler::SampleRequestHandler(
const string &name) :
48 add_method( VERS_RESPONSE, SampleRequestHandler::sample_build_vers);
49 add_method( HELP_RESPONSE, SampleRequestHandler::sample_build_help);
52 SampleRequestHandler::~SampleRequestHandler()
63 info->add_module( PACKAGE_NAME, PACKAGE_VERSION);
73 BESInfo *info = dynamic_cast<BESInfo *>(response);
76 map<string, string> attrs;
77 attrs[
"name"] = PACKAGE_NAME;
78 attrs[
"version"] = PACKAGE_VERSION;
79 info->begin_tag(
"module", &attrs);
81 info->end_tag(
"module");
88 strm << BESIndent::LMarg <<
"SampleRequestHandler::dump - (" << (
void *)
this <<
")" << endl;
91 BESIndent::UnIndent();
exception thrown if inernal error encountered
virtual void add_data_from_file(const string &key, const string &name)
add data from a file to the informational object.
informational response object
virtual BESResponseObject * get_response_object()
return the current response object
Represents a specific data type request handler.
virtual void dump(ostream &strm) const
dumps information about this object
Structure storing information used by the BES to handle the request.
virtual void dump(ostream &strm) const
dumps information about this object
Abstract base class representing a specific set of information in response to a request to the BES.