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 {
BufferedReader in = new BufferedReader(new InputStreamReader(context.getResourceAsStream(mappingFile)));
String line;
while ((line = in.readLine()) != null) {
if (line.startsWith("#")) {
continue;
}
String[] confItem = line.split("=");
serviceURLMappings.put(confItem[0], confItem[1]);
}
......