SNode.C
|
#include <RouterDispatcher.h>
Public Member Functions | |
std::list< express::Route > & | getRoutes () |
std::list< std::string > | getRoutes (const std::string &parentMountPath, const MountPoint &mountPoint) const |
bool | setStrictRouting (bool strictRouting) |
bool | getStrictRouting () const |
![]() | |
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 | |
std::list< express::Route > | routes |
bool | strictRouting = false |
Additional Inherited Members | |
![]() | |
std::shared_ptr< Route > | nextRoute = nullptr |
Definition at line 60 of file RouterDispatcher.h.
|
overrideprivatevirtual |
Implements express::Dispatcher.
Definition at line 75 of file RouterDispatcher.cpp.
References express::Route::dispatch(), express::Controller::getRequest(), express::Controller::getStrictRouting(), express::MountPoint::method, express::Request::method, express::Controller::nextRouterCalled(), express::Request::path, express::MountPoint::relativeMountPath, routes, express::Controller::setStrictRouting(), strictRouting, and express::Request::url.
std::list< Route > & express::dispatcher::RouterDispatcher::getRoutes | ( | ) |
Definition at line 58 of file RouterDispatcher.cpp.
References routes.
Referenced by express::RootRoute::routes().
std::list< std::string > express::dispatcher::RouterDispatcher::getRoutes | ( | const std::string & | parentMountPath, |
const MountPoint & | mountPoint | ||
) | const |
Definition at line 134 of file RouterDispatcher.cpp.
References getRoutes(), and strictRouting.
Referenced by express::RootRoute::getRoutes().
|
overrideprivatevirtual |
Implements express::Dispatcher.
Definition at line 139 of file RouterDispatcher.cpp.
References express::Route::getRoute(), express::MountPoint::relativeMountPath, routes, and strictRouting.
Referenced by getRoutes().
bool express::dispatcher::RouterDispatcher::getStrictRouting | ( | ) | const |
Definition at line 70 of file RouterDispatcher.cpp.
References strictRouting.
Referenced by express::RootRoute::dispatch(), and express::RootRoute::setStrictRouting().
bool express::dispatcher::RouterDispatcher::setStrictRouting | ( | bool | strictRouting | ) |
Definition at line 62 of file RouterDispatcher.cpp.
References strictRouting.
Referenced by express::RootRoute::setStrictRouting().
|
private |
Definition at line 75 of file RouterDispatcher.h.
Referenced by dispatch(), getRoutes(), and getRoutes().
|
private |
Definition at line 77 of file RouterDispatcher.h.
Referenced by dispatch(), getRoutes(), getRoutes(), getStrictRouting(), and setStrictRouting().