RSB  0.7.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rsb::patterns::RequestHandler Class Reference
Inheritance diagram for rsb::patterns::RequestHandler:
Inheritance graph
Collaboration diagram for rsb::patterns::RequestHandler:
Collaboration graph

Public Member Functions

 RequestHandler (const string &methodName, Server::CallbackPtr callback, Informer< AnyType >::Ptr informer)
string getClassName () const
void printContents (ostream &stream) const
void handle (EventPtr event)
 Handle event.
- Public Member Functions inherited from rsb::Handler
std::set< std::string > getMethods () const
 Returns the desired set of methods this handler can handle.
bool acceptsMethod (const std::string &method) const

Private Attributes

rsc::logging::LoggerPtr logger
string methodName
Server::CallbackPtr callback
Informer< AnyType >::Ptr informer

Additional Inherited Members

- Protected Member Functions inherited from rsb::Handler
 Handler (const std::string &method="")
 Creates a new handler that only accepts events for the specified method.
 Handler (const std::set< std::string > &methods)
 Creates a new handler that only accepts events with the specified methods.
virtual ~Handler ()

Detailed Description

Definition at line 64 of file Server.cpp.

Constructor & Destructor Documentation

rsb::patterns::RequestHandler::RequestHandler ( const string &  methodName,
Server::CallbackPtr  callback,
Informer< AnyType >::Ptr  informer 
)
inline

Definition at line 75 of file Server.cpp.

Member Function Documentation

string rsb::patterns::RequestHandler::getClassName ( ) const
inline

Reimplemented from rsb::Handler.

Definition at line 82 of file Server.cpp.

void rsb::patterns::RequestHandler::handle ( EventPtr  event)
inlinevirtual

Handle event.

Parameters
eventThe event that should be handled.

Implements rsb::eventprocessing::Handler.

Definition at line 90 of file Server.cpp.

void rsb::patterns::RequestHandler::printContents ( ostream &  stream) const
inline

Definition at line 86 of file Server.cpp.

Member Data Documentation

Server::CallbackPtr rsb::patterns::RequestHandler::callback
private

Definition at line 70 of file Server.cpp.

Informer<AnyType>::Ptr rsb::patterns::RequestHandler::informer
private

Definition at line 71 of file Server.cpp.

rsc::logging::LoggerPtr rsb::patterns::RequestHandler::logger
private

Definition at line 67 of file Server.cpp.

string rsb::patterns::RequestHandler::methodName
private

Definition at line 69 of file Server.cpp.


The documentation for this class was generated from the following file: