From f61a32dab54add0f23e10a98ffe18d06f882c063 Mon Sep 17 00:00:00 2001 From: ulrich Date: Wed, 07 Apr 2021 22:08:38 +0000 Subject: [PATCH] Nachbesserungen --- src/de/uhilger/mediaz/api/FileHandler.java | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/de/uhilger/mediaz/api/FileHandler.java b/src/de/uhilger/mediaz/api/FileHandler.java index ab20120..9155c8d 100644 --- a/src/de/uhilger/mediaz/api/FileHandler.java +++ b/src/de/uhilger/mediaz/api/FileHandler.java @@ -21,7 +21,6 @@ import com.sun.net.httpserver.HttpExchange; import com.sun.net.httpserver.HttpHandler; import de.uhilger.mediaz.App; -import de.uhilger.mediaz.Server; import static de.uhilger.mediaz.Server.RB_SLASH; import java.io.File; import java.io.FileInputStream; @@ -48,7 +47,7 @@ * @author Ulrich Hilger * @version 0.1, 25. März 2021 */ -public class FileHandler implements HttpHandler { +public class FileHandler extends AbstractHandler implements HttpHandler { /* Der Logger fuer diesen FileHandler */ private static final Logger logger = Logger.getLogger(FileHandler.class.getName()); @@ -83,7 +82,7 @@ public static final String RB_WELCOME_FILE = "welcomeFile"; /* Ablageort fuer Webinhalte */ - private final String fileBase; + protected final String fileBase; /** * Ein neues Objekt der Klasse FileHandler erzeugen @@ -133,7 +132,7 @@ protected String getFileName(HttpExchange e) { String ctxPath = e.getHttpContext().getPath(); String uriPath = e.getRequestURI().getPath(); - logger.info(uriPath); + logger.fine(uriPath); return uriPath.substring(ctxPath.length()); } -- Gitblit v1.9.3