From c5c07f023e1e43a82ed471e990fcd85d13455c28 Mon Sep 17 00:00:00 2001
From: ulrich
Date: Fri, 09 Apr 2021 14:48:31 +0000
Subject: [PATCH] JavaScript aufgeraeumt

---
 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..d83a705 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 JsonHelper 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