• ServerManager
  • ServerManager Class

    (nymeaserver::ServerManager)

    This class represents the manager of all server interfaces of the nymea server. More...

    Header: #include <ServerManager>
    Inherits:

    Public Functions

    ServerManager(NymeaConfiguration * configuration, QObject * parent = 0)
    BluetoothServer * bluetoothServer() const
    JsonRPCServer * jsonServer() const
    MockTcpServer * mockTcpServer() const
    RestServer * restServer() const

    Public Slots

    void setServerName(const QString & serverName)

    Detailed Description

    This class represents the manager of all server interfaces of the nymea server.

    The ServerManager starts the JsonRPCServer and the RestServer. He also loads and provides the SSL configurations for the secure WebServer and WebSocketServer connection.

    See also JsonRPCServer and RestServer.

    Member Function Documentation

    ServerManager::ServerManager(NymeaConfiguration * configuration, QObject * parent = 0)

    Constructs a ServerManager with the given configuration and parent.

    BluetoothServer * ServerManager::bluetoothServer() const

    Returns the pointer to the created BluetoothServer in this ServerManager.

    JsonRPCServer * ServerManager::jsonServer() const

    Returns the pointer to the created JsonRPCServer in this ServerManager.

    MockTcpServer * ServerManager::mockTcpServer() const

    Returns the pointer to the created MockTcpServer in this ServerManager.

    RestServer * ServerManager::restServer() const

    Returns the pointer to the created RestServer in this ServerManager.

    [slot] void ServerManager::setServerName(const QString & serverName)

    Set the server name for all servers to the given serverName.