33 #ifndef I_BESRequestHandler_h 34 #define I_BESRequestHandler_h 1 43 #include "BESDataHandlerInterface.h" 46 #define BES_REQUEST_HANDLER_CATCH_ALL "catch_all" 76 map< string, p_request_handler > _handler_list ;
83 typedef map< string, p_request_handler >::const_iterator Handler_citer ;
84 typedef map< string, p_request_handler >::iterator Handler_iter ;
86 virtual const string & get_name( )
const {
return _name ; }
88 virtual bool add_handler(
const string &handler_name,
89 p_request_handler handler_method ) ;
91 virtual p_request_handler
find_handler(
const string &handler_name ) ;
95 virtual void dump( ostream &strm )
const ;
98 #endif // I_BESRequestHandler_h virtual string get_handler_names()
return a comma separated list of response object types handled by this request handler
Base object for bes objects.
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 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
virtual bool remove_handler(const string &handler_name)
remove the specified handler method from this request handler
virtual p_request_handler find_handler(const string &handler_name)
find the method that can handle the specified response object type