• RestServer
  • RestServer Class

    (nymeaserver::RestServer)

    This class provides the REST API interface to the WebServers. More...

    Header: #include <RestServer>
    Inherits:

    Public Functions

    RestServer(const QSslConfiguration & sslConfiguration = QSslConfiguration(), QObject * parent = 0)
    void registerWebserver(WebServer * webServer)

    Detailed Description

    This class provides the REST API interface to the WebServers.

    The RestServer class provides the server interface for a REST API call. The RestServer will create a WebServer object. The WebServer will parse the HttpRequest and emits the signal WebServer::httpRequestReady(). This signal will be handled by this RestServer and processed by the corresponding RestResource. Once the HttpRequest is finished, the RestServer will send a HttpReply back to the client using WebServer::sendHttpReply().

    See also ServerManager, WebServer, HttpRequest, and HttpReply.

    Member Function Documentation

    RestServer::RestServer(const QSslConfiguration & sslConfiguration = QSslConfiguration(), QObject * parent = 0)

    Constructs a RestServer with the given sslConfiguration and parent.

    void RestServer::registerWebserver(WebServer * webServer)

    Register the given webServer in this RestServer.

    See also WebServer.