35 throw InternalErr(__FILE__, __LINE__,
"Expected a BESVersionInfo instance");
48 throw InternalErr(__FILE__, __LINE__,
"Expected a BESInfo instance");
52 map < string, string > attrs;
53 attrs[
"name"] = MODULE_NAME ;
54 attrs[
"version"] = MODULE_VERSION ;
59 list < string > services;
61 if (services.size() > 0) {
63 attrs[
"handles"] = handles;
74 strm <<
BESIndent::LMarg <<
"GatewayRequestHandler::dump - (" << (
void *)
this <<
")" << endl;
brief represents simple text information in a response object, such as version and help inforamtion...
static bool gateway_build_help(BESDataHandlerInterface &dhi)
virtual void dump(ostream &strm) const
dumps information about this object
informational response object
static string implode(const list< string > &values, char delim)
implode a list of values into a single string delimited by delim
virtual BESResponseObject * get_response_object()
return the current response object
static BESServiceRegistry * TheRegistry()
BESResponseHandler * response_handler
virtual void begin_tag(const string &tag_name, map< string, string > *attrs=0)
static ostream & LMarg(ostream &strm)
GatewayRequestHandler(const string &name)
virtual ~GatewayRequestHandler(void)
Represents a specific data type request handler.
Structure storing information used by the BES to handle the request.
virtual bool add_handler(const string &handler_name, p_request_handler handler_method)
add a handler method to the request handler that knows how to fill in a specific response object ...
static bool gateway_build_vers(BESDataHandlerInterface &dhi)
virtual void dump(ostream &strm) const
dumps information about this object
virtual void add_module(const string &n, const string &v)
virtual void end_tag(const string &tag_name)
virtual void services_handled(const string &handler, list< string > &services)
returns the list of servies provided by the handler in question