|
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 |
| bool | setCaseInsensitiveRouting (bool caseInsensitiveRouting) |
| bool | getCaseInsensitiveRouting () const |
Public Member Functions inherited from express::Dispatcher | |
| 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 |
| bool | caseInsensitiveRouting = false |
| std::regex | regex |
| std::vector< std::string > | names |
Additional Inherited Members | |
Protected Attributes inherited from express::Dispatcher | |
| std::shared_ptr< Route > | nextRoute = nullptr |
Definition at line 62 of file RouterDispatcher.h.
|
overrideprivatevirtual |
Implements express::Dispatcher.
Definition at line 94 of file RouterDispatcher.cpp.
References express::dispatcher::boundaryPrefix(), express::dispatcher::compileParamRegex(), express::Route::dispatch(), express::Controller::getCaseInsensitiveRouting(), core::socket::stream::SocketConnection::getConnectionName(), express::Controller::getRequest(), express::Controller::getResponse(), core::socket::stream::SocketContext::getSocketConnection(), express::Response::getSocketContext(), express::Controller::getStrictRouting(), express::dispatcher::matchAndFillParams(), express::Request::method, names, express::Controller::nextRouterCalled(), express::Request::originalUrl, express::dispatcher::parseQuery(), express::Request::path, express::Request::queries, express::dispatcher::querySupersetMatches(), express::MountPoint::relativeMountPath, routes, express::Controller::setStrictRouting(), express::dispatcher::splitPathAndQuery(), strictRouting, express::dispatcher::trimOneTrailingSlash(), and express::Request::url.
| bool express::dispatcher::RouterDispatcher::getCaseInsensitiveRouting | ( | ) | const |
Definition at line 89 of file RouterDispatcher.cpp.
References caseInsensitiveRouting.
Referenced by express::RootRoute::dispatch(), and express::RootRoute::setCaseInsensitiveRouting().
| std::list< Route > & express::dispatcher::RouterDispatcher::getRoutes | ( | ) |
Definition at line 65 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 206 of file RouterDispatcher.cpp.
References getRoutes(), and strictRouting.
Referenced by express::RootRoute::getRoutes().
|
overrideprivatevirtual |
Implements express::Dispatcher.
Definition at line 211 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 77 of file RouterDispatcher.cpp.
References strictRouting.
Referenced by express::RootRoute::dispatch(), and express::RootRoute::setStrictRouting().
| bool express::dispatcher::RouterDispatcher::setCaseInsensitiveRouting | ( | bool | caseInsensitiveRouting | ) |
Definition at line 81 of file RouterDispatcher.cpp.
References caseInsensitiveRouting.
Referenced by express::RootRoute::setCaseInsensitiveRouting().
| bool express::dispatcher::RouterDispatcher::setStrictRouting | ( | bool | strictRouting | ) |
Definition at line 69 of file RouterDispatcher.cpp.
References strictRouting.
Referenced by express::RootRoute::setStrictRouting().
|
private |
Definition at line 82 of file RouterDispatcher.h.
Referenced by getCaseInsensitiveRouting(), and setCaseInsensitiveRouting().
|
private |
Definition at line 85 of file RouterDispatcher.h.
Referenced by dispatch().
|
private |
Definition at line 84 of file RouterDispatcher.h.
|
private |
Definition at line 79 of file RouterDispatcher.h.
Referenced by dispatch(), getRoutes(), and getRoutes().
|
private |
Definition at line 81 of file RouterDispatcher.h.
Referenced by dispatch(), getRoutes(), getRoutes(), getStrictRouting(), and setStrictRouting().