Public Types | Public Member Functions | Protected Member Functions | List of all members
Atom::Core::HandlerFactory Class Reference
Inheritance diagram for Atom::Core::HandlerFactory:
Inheritance graph
[legend]
Collaboration diagram for Atom::Core::HandlerFactory:
Collaboration graph
[legend]

Public Types

using FunctionHandler = std::function< Atom::Handlers::RootHandler *()>
 
using FunctionHandlerCreator = std::function< Atom::Handlers::RootHandler *(Core::HTTPRequestInfo &info)>
 
using Connections = std::map< std::string, Tools::HandlerConnection >
 

Public Member Functions

Connections & get_connections ()
 
FunctionHandlerCreator & get_handler_creator_ ()
 
void set_handler_creator (FunctionHandlerCreator handler_creator)
 
virtual HTTPRequestHandler * createRequestHandler (const HTTPServerRequest &request)
 

Protected Member Functions

void ErrorResponse_ (const HTTPServerRequest &request, std::string error)