From 63b7111015c9c83702a8704556aceac5204dfd41 Mon Sep 17 00:00:00 2001 From: ulrich Date: Mon, 22 Mar 2021 18:55:35 +0000 Subject: [PATCH] Handler Objekthierarchie in Arbeit --- src/de/uhilger/avdirektor/handler/PingHandler.java | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/src/de/uhilger/avdirektor/handler/PingHandler.java b/src/de/uhilger/avdirektor/handler/PingHandler.java index 1e7bde1..b94fad4 100644 --- a/src/de/uhilger/avdirektor/handler/PingHandler.java +++ b/src/de/uhilger/avdirektor/handler/PingHandler.java @@ -19,21 +19,16 @@ public class PingHandler implements HttpHandler { private static final Logger logger = Logger.getLogger(PingHandler.class.getName()); - @Override public void handle(HttpExchange t) throws IOException { logger.log(Level.FINE, "RequestURI: {0}", t.getRequestURI().toString()); - String antwort = "ping Antwort"; - - String response = antwort; + String response = "ping"; t.sendResponseHeaders(200, response.length()); OutputStream os = t.getResponseBody(); os.write(response.getBytes()); os.close(); - - } } -- Gitblit v1.9.3