#include <server.h>
Inherits QObject, and RestLink::AbstractRequestHandler.
|
| | Server (ServerPrivate *d, QObject *parent) |
| |
| virtual bool | init ()=0 |
| |
| virtual void | cleanup ()=0 |
| |
| virtual bool | maintain ()=0 |
| |
| ServerResponse * | sendRequest (Method method, const Request &request, const Body &body) override final |
| |
| virtual void | processInternalRequest (const ServerRequest &request, ServerResponse *response) |
| |
| virtual void | processStandardRequest (const ServerRequest &request, ServerResponse *response) |
| |
| void | processUnsupportedRequest (const ServerRequest &request, ServerResponse *response) |
| |
| virtual AbstractController * | findController (const ServerRequest &request) const |
| |
| virtual void | prepareController (AbstractController *controller, const ServerRequest &request, ServerResponse *response) |
| |
| void | setError (int code, const QString &str) |
| |
Protected Member Functions inherited from RestLink::AbstractRequestHandler |
| | AbstractRequestHandler () |
| |
| bool | isRequestSupported (const Request &request) const |
| | Checks if the request is supported by this handler.
|
| |
| void | initResponse (Response *response, const Request &request, Method method) |
| | Initializes the response object with the associated request.
|
| |
◆ ServerType
| Enumerator |
|---|
| Synchronous | |
| Asynchronous | |
◆ Server() [1/3]
| RestLink::Server::Server |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ Server() [2/3]
| RestLink::Server::Server |
( |
ServerType |
type, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
◆ ~Server()
| RestLink::Server::~Server |
( |
| ) |
|
|
virtual |
◆ Server() [3/3]
◆ isListening()
| bool RestLink::Server::isListening |
( |
| ) |
const |
◆ listen()
| void RestLink::Server::listen |
( |
| ) |
|
◆ close()
| void RestLink::Server::close |
( |
| ) |
|
◆ configuration()
| QJsonObject RestLink::Server::configuration |
( |
| ) |
const |
◆ error()
| int RestLink::Server::error |
( |
| ) |
const |
◆ errorString()
| QString RestLink::Server::errorString |
( |
| ) |
const |
◆ registerController()
◆ handlerType()
◆ stateChanged
| void RestLink::Server::stateChanged |
( |
bool |
listening | ) |
|
|
signal |
◆ errorOccured
| void RestLink::Server::errorOccured |
( |
int |
error | ) |
|
|
signal |
◆ init()
| virtual bool RestLink::Server::init |
( |
| ) |
|
|
protectedpure virtual |
◆ cleanup()
| virtual void RestLink::Server::cleanup |
( |
| ) |
|
|
protectedpure virtual |
◆ maintain()
| virtual bool RestLink::Server::maintain |
( |
| ) |
|
|
protectedpure virtual |
◆ sendRequest()
|
|
finaloverrideprotectedvirtual |
◆ processInternalRequest()
◆ processStandardRequest()
◆ processUnsupportedRequest()
◆ findController()
◆ prepareController()
◆ setError()
| void RestLink::Server::setError |
( |
int |
code, |
|
|
const QString & |
str |
|
) |
| |
|
protected |
◆ d_ptr