0eec71bc by Adam Heath

Issue #BF-5732: Pre-parse METHOD matches into a sub-map; this prevents

the use of string concatenation for lookups at runtime.
1 parent 6a67f9ad
...@@ -92,6 +92,9 @@ public class DirectControlServlet extends HttpServlet { ...@@ -92,6 +92,9 @@ public class DirectControlServlet extends HttpServlet {
92 BufferedReader in = new BufferedReader(new InputStreamReader(context.getResourceAsStream(mappingFile))); 92 BufferedReader in = new BufferedReader(new InputStreamReader(context.getResourceAsStream(mappingFile)));
93 String line; 93 String line;
94 while ((line = in.readLine()) != null) { 94 while ((line = in.readLine()) != null) {
95 if (line.startsWith("#")) {
96 continue;
97 }
95 String[] confItem = line.split("="); 98 String[] confItem = line.split("=");
96 serviceURLMappings.put(confItem[0], confItem[1]); 99 serviceURLMappings.put(confItem[0], confItem[1]);
97 } 100 }
......