-
- All Implemented Interfaces:
public final class WebserverManager
-
-
Field Summary
Fields Modifier and Type Field Description private HashMap<String, Object>ktorConfigObjectsprivate HashMap<String, Object>applicationConfigObjects
-
Constructor Summary
Constructors Constructor Description WebserverManager(Integer listeningPort, String listeningHost, Integer sslPort, File sslKeyStoreFile, KeyStore sslKeyStore, String sslKeyAlias, String sslKeyPassword, String sslStorePassword, HashMap<String, Object> ktorConfigObjects, HashMap<String, Object> applicationConfigObjects)
-
Method Summary
Modifier and Type Method Description final HashMap<String, Object>getKtorConfigObjects()final UnitsetKtorConfigObjects(HashMap<String, Object> ktorConfigObjects)final HashMap<String, Object>getApplicationConfigObjects()final UnitsetApplicationConfigObjects(HashMap<String, Object> applicationConfigObjects)final WebserverManagerstart()Start the WebserverManager. final WebserverManagerstop(Long gracePeriodMillis, Long timeoutMillis)Stop the WebserverManager. final WebserverManagerregisterModule(Object module)Register and module into the webserver manager. -
-
Constructor Detail
-
WebserverManager
WebserverManager(Integer listeningPort, String listeningHost, Integer sslPort, File sslKeyStoreFile, KeyStore sslKeyStore, String sslKeyAlias, String sslKeyPassword, String sslStorePassword, HashMap<String, Object> ktorConfigObjects, HashMap<String, Object> applicationConfigObjects)
-
-
Method Detail
-
getKtorConfigObjects
final HashMap<String, Object> getKtorConfigObjects()
-
setKtorConfigObjects
final Unit setKtorConfigObjects(HashMap<String, Object> ktorConfigObjects)
-
getApplicationConfigObjects
final HashMap<String, Object> getApplicationConfigObjects()
-
setApplicationConfigObjects
final Unit setApplicationConfigObjects(HashMap<String, Object> applicationConfigObjects)
-
start
final WebserverManager start()
Start the WebserverManager.
-
stop
final WebserverManager stop(Long gracePeriodMillis, Long timeoutMillis)
Stop the WebserverManager.
-
registerModule
final WebserverManager registerModule(Object module)
Register and module into the webserver manager.
- Parameters:
module- Object containing the module with the WebserverRegistration annotation.
-
-
-
-