33 #ifndef I_BESRequestHandlerList_h 34 #define I_BESRequestHandlerList_h 1 43 #include "BESDataHandlerInterface.h" 58 map< string, BESRequestHandler * > _handler_list ;
64 typedef map< string, BESRequestHandler * >::const_iterator Handler_citer ;
65 typedef map< string, BESRequestHandler * >::iterator Handler_iter ;
67 virtual bool add_handler(
const string &handler_name,
82 virtual void dump( ostream &strm )
const ;
87 #endif // I_BESRequestHandlerList_h virtual Handler_citer get_first_handler()
return an iterator pointing to the first request handler in the list
virtual void dump(ostream &strm) const
dumps information about this object
virtual bool add_handler(const string &handler_name, BESRequestHandler *handler)
add a request handler to the list of registered handlers for this server
maintains the list of registered request handlers for this server
Base object for bes objects.
virtual BESRequestHandler * find_handler(const string &handler_name)
find and return the specified request handler
virtual void execute_each(BESDataHandlerInterface &dhi)
for each container in the given data handler interface, execute the given request
virtual void execute_all(BESDataHandlerInterface &dhi)
for all of the registered request handlers, execute the given request
virtual void execute_once(BESDataHandlerInterface &dhi)
Execute a single method that will fill in the response object rather than iterating over the list of ...
virtual string get_handler_names()
Returns a comma separated string of request handlers registered with the server.
Represents a specific data type request handler.
Structure storing information used by the BES to handle the request.
virtual Handler_citer get_last_handler()
return a constant iterator pointing to the end of the list
virtual void execute_current(BESDataHandlerInterface &dhi)
Execute a single method for the current container that will fill in the response object rather than i...
virtual BESRequestHandler * remove_handler(const string &handler_name)
remove and return the specified request handler