From 708f665037ff7d742d27504aada3c126e1764323 Mon Sep 17 00:00:00 2001 From: ulrich <undisclosed> Date: Wed, 04 Apr 2018 05:51:10 +0000 Subject: [PATCH] collectFiles neu nach WbxUtils verlegt --- src/de/uhilger/wbx/web/FeedServlet.java | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/de/uhilger/wbx/web/FeedServlet.java b/src/de/uhilger/wbx/web/FeedServlet.java index d74d7d6..b005af5 100644 --- a/src/de/uhilger/wbx/web/FeedServlet.java +++ b/src/de/uhilger/wbx/web/FeedServlet.java @@ -57,7 +57,7 @@ * folgenden Eintraege enthalten:</p> * <pre> * <Environment name="wbxFileBase" type="java.lang.String" value="absoluter/pfad/zur/dateiablage" override="false" /> - * <Environment name="wbxPubDir" type="java.lang.String" value="/www" override="false" /> + * <Environment name="wbxPubDirName" type="java.lang.String" value="/www" override="false" /> * <Environment name="wbxFeedTitle" type="java.lang.String" value="Newsfeed" override="false" /> * <Environment name="wbxFeedSubtitle" type="java.lang.String" value="Text des Untertitels" override="false" /> * <Environment name="wbxFeedCopyright" type="java.lang.String" value="Text des Copyright-Hinweises" override="false" /> @@ -69,9 +69,9 @@ private static final Logger logger = Logger.getLogger(FeedServlet.class.getName()); - public static final String JNDI_CTX_NAME = "java:comp/env"; - public static final String WBX_FILE_BASE = "wbxFileBase"; - public static final String WBX_PUB_DIR = "wbxPubDir"; + //public static final String JNDI_CTX_NAME = "java:comp/env"; + //public static final String WBX_FILE_BASE = "wbxFileBase"; + //public static final String WBX_PUB_DIR = "wbxPubDir"; public static final String WBX_MAX_FEED_DEPTH = "wbxMaxFeedDepth"; public static final String WBX_MAX_FEED_ENTRIES = "wbxMaxFeedEntries"; public static final String WBX_FEED_TITLE = "wbxFeedTitle"; @@ -94,11 +94,11 @@ String zielPfad = url.substring(url.indexOf(contextPath)); logger.fine(zielPfad); WbxUtils wu = new WbxUtils(); - String basis = wu.getJNDIParameter(WBX_FILE_BASE, WbxUtils.EMPTY_STRING); + String basis = wu.getJNDIParameter(WbxUtils.WBX_FILE_BASE, WbxUtils.EMPTY_STRING); logger.fine("basis: " + basis); StringBuffer pfad = new StringBuffer(); pfad.append(basis); - pfad.append(zielPfad.replace(contextPath, wu.getJNDIParameter(WBX_PUB_DIR, WbxUtils.EMPTY_STRING))); + pfad.append(zielPfad.replace(contextPath, wu.getJNDIParameter(WbxUtils.WBX_PUB_DIR_NAME, WbxUtils.WBX_DEFAULT_PUB_DIR_NAME))); logger.fine("pfad: " + pfad); String dirStr = pfad.toString().substring(0, pfad.lastIndexOf("/")); logger.fine("dirStr: " + dirStr); @@ -153,7 +153,7 @@ String urlStr = f.getAbsolutePath(); urlStr = urlStr.replace(basis, domain); - urlStr = urlStr.replace(wu.getJNDIParameter(WBX_PUB_DIR, WbxUtils.EMPTY_STRING), contextPath); + urlStr = urlStr.replace(wu.getJNDIParameter(WbxUtils.WBX_PUB_DIR_NAME, WbxUtils.WBX_DEFAULT_PUB_DIR_NAME), contextPath); logger.fine(urlStr); -- Gitblit v1.9.3