private Dest resolveAction(WebApp.HTTP method, Dest dest, String path) { if (dest.prefix.length() == 1) { return null; } checkState(!isGoodMatch(dest, path), dest.prefix); checkState(SLASH.countIn(path) > 1, path); List<String> parts = WebApp.parseRoute(path); String controller = parts.get(WebApp.R_CONTROLLER); String action = parts.get(WebApp.R_ACTION); return add(method, pjoin("", controller, action), dest.controllerClass, action, null); } }
private Dest resolveAction(WebApp.HTTP method, Dest dest, String path) { if (dest.prefix.length() == 1) { return null; } checkState(!isGoodMatch(dest, path), dest.prefix); checkState(SLASH.countIn(path) > 1, path); List<String> parts = WebApp.parseRoute(path); String controller = parts.get(WebApp.R_CONTROLLER); String action = parts.get(WebApp.R_ACTION); return add(method, pjoin("", controller, action), dest.controllerClass, action, null); } }
private Dest resolveAction(WebApp.HTTP method, Dest dest, String path) { if (dest.prefix.length() == 1) { return null; } checkState(!isGoodMatch(dest, path), dest.prefix); checkState(SLASH.countIn(path) > 1, path); List<String> parts = WebApp.parseRoute(path); String controller = parts.get(WebApp.R_CONTROLLER); String action = parts.get(WebApp.R_ACTION); return add(method, pjoin("", controller, action), dest.controllerClass, action, null); } }
LOG.debug("exact match for {}: {}", key, dest.action); return dest; } else if (isGoodMatch(dest, path)) { LOG.debug("prefix match2 for {}: {}", key, dest.action); return dest; if (prefixMatches(dest, path)) { if (methodAllowed(method, dest)) { if (isGoodMatch(dest, path)) { LOG.debug("prefix match for {}: {}", lower.getKey(), dest.action); return dest;
LOG.debug("exact match for {}: {}", key, dest.action); return dest; } else if (isGoodMatch(dest, path)) { LOG.debug("prefix match2 for {}: {}", key, dest.action); return dest; if (prefixMatches(dest, path)) { if (methodAllowed(method, dest)) { if (isGoodMatch(dest, path)) { LOG.debug("prefix match for {}: {}", lower.getKey(), dest.action); return dest;
LOG.debug("exact match for {}: {}", key, dest.action); return dest; } else if (isGoodMatch(dest, path)) { LOG.debug("prefix match2 for {}: {}", key, dest.action); return dest; if (prefixMatches(dest, path)) { if (methodAllowed(method, dest)) { if (isGoodMatch(dest, path)) { LOG.debug("prefix match for {}: {}", lower.getKey(), dest.action); return dest;