From 29be41b5182c30eaf79c53eb3e8fa052e62b594d Mon Sep 17 00:00:00 2001 From: ulrich Date: Tue, 20 Apr 2021 22:17:18 +0000 Subject: [PATCH] Anzeige des Schaltzustands von Geraeten --- src/de/uhilger/mediaz/Server.java | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/de/uhilger/mediaz/Server.java b/src/de/uhilger/mediaz/Server.java index 2f71fc9..a3f1b1c 100644 --- a/src/de/uhilger/mediaz/Server.java +++ b/src/de/uhilger/mediaz/Server.java @@ -19,6 +19,7 @@ import com.sun.net.httpserver.HttpServer; import de.uhilger.mediaz.api.FileHandler; +import de.uhilger.mediaz.api.GeraetSteuerung; import de.uhilger.mediaz.api.ListFileHandler; import de.uhilger.mediaz.api.ListHandler; import de.uhilger.mediaz.api.MediaSteuerung; @@ -51,6 +52,7 @@ public static final String RB_WEBROOT = "webroot"; public static final String RB_STORE = "store"; public static final String RB_STRG = "strg"; + public static final String RB_GSTRG = "gstrg"; public static final String RB_ALIST= "alist"; //public static final String RB_UI_ROOT = "uiroot"; public static final String RB_STOP_SERVER = "stopServer"; @@ -113,6 +115,7 @@ ablageorteEinklinken(server); server.createContext(ctx + App.getRs(RB_STORE), new StorageHandler()); server.createContext(ctx + App.getRs(RB_STRG), new MediaSteuerung()); + server.createContext(ctx + App.getRs(RB_GSTRG), new GeraetSteuerung()); server.createContext(ctx + App.getRs(RB_ALIST), new ListHandler()); server.createContext(ctx + App.getRs(RB_STOP_SERVER), new StopServerHandler()); server.setExecutor(Executors.newFixedThreadPool(20)); -- Gitblit v1.9.3