|
EpcTools
An event based multi-threaded C++ development framework.
|
Pure virtual base class for an administrative management interface handler. More...
#include <emgmt.h>
Public Types | |
| enum | HttpMethod { HttpMethod::httpGet, HttpMethod::httpPost, HttpMethod::httpPut, HttpMethod::httpDelete } |
| Represents the type of the handler. More... | |
Public Member Functions | |
| EManagementHandler (HttpMethod mthd, cpStr pth, ELogger &audit) | |
| Class constructor. More... | |
| EManagementHandler (HttpMethod mthd, const std::string &pth, ELogger &audit) | |
| Class constructor. More... | |
| virtual Void | process (const Pistache::Http::Request &request, Pistache::Http::ResponseWriter &response)=0 |
| Pure virtual method that will be called by handler() to perform the processing. More... | |
| Void | handler (const Pistache::Http::Request &request, Pistache::Http::ResponseWriter response) |
| HTTP handler that will be called by the Pistache framework. More... | |
| const EString & | path () |
| Returns the route path for this HTTP handler. More... | |
| HttpMethod | httpMethod () |
| Returns the HTTP method for this HTTP handler. More... | |
Protected Member Functions | |
| Pistache::Rest::Route::Handler | getHandler () |
Friends | |
| class | EManagementEndpoint |
Pure virtual base class for an administrative management interface handler.
|
strong |
| EManagementHandler::EManagementHandler | ( | HttpMethod | mthd, |
| cpStr | pth, | ||
| ELogger & | audit | ||
| ) |
Class constructor.
| mthd | HTTP method associated with this handler. |
| pth | the HTTP route for this handler. |
| audit | a reference to the ELogger object that will log all management operations. |
| EManagementHandler::EManagementHandler | ( | HttpMethod | mthd, |
| const std::string & | pth, | ||
| ELogger & | audit | ||
| ) |
Class constructor.
| mthd | HTTP method associated with this handler. |
| pth | the HTTP route for this handler. |
| audit | a reference to the ELogger object that will log all management operations. |
|
protected |
| Void EManagementHandler::handler | ( | const Pistache::Http::Request & | request, |
| Pistache::Http::ResponseWriter | response | ||
| ) |
HTTP handler that will be called by the Pistache framework.
| request | HTTP request object. |
| response | HTTP response object. |
|
inline |
Returns the HTTP method for this HTTP handler.
|
inline |
Returns the route path for this HTTP handler.
|
pure virtual |
Pure virtual method that will be called by handler() to perform the processing.
| request | HTTP request object. |
| response | HTTP response object. |
|
friend |
1.8.16