From 1b0a18d44180a3c19ae9325bb599831708804c03 Mon Sep 17 00:00:00 2001 From: ulrich Date: Sat, 03 Jul 2021 07:41:48 +0000 Subject: [PATCH] Nutzung des HttpHelper hinzugefuegt --- src/de/uhilger/httpserver/adoc/AdocFilter.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/de/uhilger/httpserver/adoc/AdocFilter.java b/src/de/uhilger/httpserver/adoc/AdocFilter.java index 4416177..157fd90 100644 --- a/src/de/uhilger/httpserver/adoc/AdocFilter.java +++ b/src/de/uhilger/httpserver/adoc/AdocFilter.java @@ -20,6 +20,7 @@ import com.sun.net.httpserver.Filter; import com.sun.net.httpserver.HttpExchange; import com.sun.net.httpserver.HttpHandler; +import de.uhilger.httpserver.base.HttpHelper; import de.uhilger.httpserver.base.handler.FileHandler; import java.io.File; import java.io.IOException; @@ -57,7 +58,8 @@ FileHandler fileHandler = (FileHandler) handler; String fileBase = exchange.getHttpContext().getAttributes().get(FileHandler.ATTR_FILE_BASE).toString(); AdocActor actor = new AdocActor(); - actor.processAdocFile(new File(fileBase, fileHandler.getFileName(exchange)), Boolean.FALSE.toString()); + HttpHelper helper = new HttpHelper(); + actor.processAdocFile(new File(fileBase, helper.getFileName(exchange)), Boolean.FALSE.toString()); } } chain.doFilter(exchange); -- Gitblit v1.9.3