SNode.C
|
#include <ApplicationDispatcher.h>
Public Member Functions | |
ApplicationDispatcher (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &lambda) | |
![]() | |
Dispatcher (const Dispatcher &)=delete | |
Dispatcher & | operator= (const Dispatcher &)=delete |
Dispatcher ()=default | |
virtual | ~Dispatcher () |
bool | dispatchNext (Controller &controller, const std::string &parentMountPath) |
Private Member Functions | |
bool | dispatch (express::Controller &controller, const std::string &parentMountPath, const express::MountPoint &mountPoint) override |
std::list< std::string > | getRoutes (const std::string &parentMountPath, const MountPoint &mountPoint, bool strictRouting) const override |
Private Attributes | |
const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> | lambda |
Additional Inherited Members | |
![]() | |
std::shared_ptr< Route > | nextRoute = nullptr |
Definition at line 62 of file ApplicationDispatcher.h.
|
explicit |
Definition at line 59 of file ApplicationDispatcher.cpp.
References lambda.
|
overrideprivatevirtual |
Implements express::Dispatcher.
Definition at line 64 of file ApplicationDispatcher.cpp.
References express::dispatcher::checkForUrlMatch(), express::Controller::getFlags(), express::Controller::getRequest(), express::Controller::getResponse(), express::Controller::getStrictRouting(), express::dispatcher::hasResult(), lambda, express::MountPoint::method, express::Request::method, express::Controller::NEXT, express::Request::path, express::MountPoint::relativeMountPath, express::dispatcher::setParams(), and express::Request::url.
|
overrideprivatevirtual |
Implements express::Dispatcher.
Definition at line 130 of file ApplicationDispatcher.cpp.
References express::Route::getRoute(), express::MountPoint::method, express::Dispatcher::nextRoute, and express::MountPoint::relativeMountPath.
|
private |
Definition at line 72 of file ApplicationDispatcher.h.
Referenced by ApplicationDispatcher(), and dispatch().