Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Added a shared Java constant for setting key server.servlets.called
luccioman2fd4d05e2f88
diff --git a/htroot/Status.java b/htroot/Status.javaindex 60b308626..507e6d18e 100644--- a/htroot/Status.java+++ b/htroot/Status.java@@ -65,7 +65,7 @@ public class Status// check if the basic configuration was accessed before and forwardprop.put("forwardToConfigBasic", 0);- if ((post == null || !post.containsKey("noforward")) && sb.getConfig("server.servlets.called", "").indexOf("ConfigBasic.html", 0) < 0) {+ if ((post == null || !post.containsKey("noforward")) && sb.getConfig(SwitchboardConstants.SERVER_SERVLETS_CALLED, "").indexOf("ConfigBasic.html", 0) < 0) {// forward to ConfigBasicprop.put("forwardToConfigBasic", 1);}diff --git a/source/net/yacy/http/servlets/YaCyDefaultServlet.java b/source/net/yacy/http/servlets/YaCyDefaultServlet.javaindex 818a76465..882a13e22 100644--- a/source/net/yacy/http/servlets/YaCyDefaultServlet.java+++ b/source/net/yacy/http/servlets/YaCyDefaultServlet.java@@ -1031,7 +1031,7 @@ public class YaCyDefaultServlet extends HttpServlet {if (targetFile.exists() && targetFile.isFile() && targetFile.canRead()) {- sb.setConfig("server.servlets.called", appendPath(sb.getConfig("server.servlets.called", ""), target));+ sb.setConfig(SwitchboardConstants.SERVER_SERVLETS_CALLED, appendPath(sb.getConfig(SwitchboardConstants.SERVER_SERVLETS_CALLED, ""), target));if (args != null && !args.isEmpty()) {sb.setConfig("server.servlets.submitted", appendPath(sb.getConfig("server.servlets.submitted", ""), target));}diff --git a/source/net/yacy/search/SwitchboardConstants.java b/source/net/yacy/search/SwitchboardConstants.javaindex 35ce3fc1b..65217d0e5 100644--- a/source/net/yacy/search/SwitchboardConstants.java+++ b/source/net/yacy/search/SwitchboardConstants.java@@ -458,6 +458,9 @@ public final class SwitchboardConstants {*/public static final String WORK_PATH = "workPath";public static final String WORK_PATH_DEFAULT = "DATA/WORK";++ /** Setting key of the property that collects the names of all servlets that have been used so far. */+ public static final String SERVER_SERVLETS_CALLED = "server.servlets.called";/*