35 #include "SampleRequestHandler.h" 36 #include "BESResponseHandler.h" 37 #include "BESResponseNames.h" 38 #include "SampleResponseNames.h" 39 #include "BESVersionInfo.h" 40 #include "BESTextInfo.h" 41 #include "BESConstraintFuncs.h" 42 #include "BESInternalError.h" 44 SampleRequestHandler::SampleRequestHandler(
const string &name )
47 add_handler( VERS_RESPONSE, SampleRequestHandler::sample_build_vers ) ;
48 add_handler( HELP_RESPONSE, SampleRequestHandler::sample_build_help ) ;
51 SampleRequestHandler::~SampleRequestHandler()
65 info->add_module( PACKAGE_NAME, PACKAGE_VERSION ) ;
81 map<string,string> attrs ;
82 attrs[
"name"] = PACKAGE_NAME ;
83 attrs[
"version"] = PACKAGE_VERSION ;
84 info->begin_tag(
"module", &attrs ) ;
86 info->end_tag(
"module" ) ;
94 strm << BESIndent::LMarg <<
"SampleRequestHandler::dump - (" 95 << (
void *)
this <<
")" << endl ;
98 BESIndent::UnIndent() ;
virtual void dump(ostream &strm) const
dumps information about this object
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.
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...