return ("@404: <br>not rose uri: '" + testUri + "'");
}
final MatchResult lastMatched = matchResults.get(matchResults.size() - 1);
final EngineGroup leafEngineGroup = lastMatched.getMappingNode().getLeafEngines();
final LinkedEngine leafEngine = select(leafEngineGroup.getEngines(testMethod), inv
.getRequest());
if (leafEngine == null) {
if (leafEngineGroup.size() == 0) {
// not rose uri
return ("@404: <br>not rose uri, not exits leaf engines for it: '" + testUri + "'");
} else {
// 405 Method Not Allowed
StringBuilder allow = new StringBuilder();
final String gap = ", ";
for (ReqMethod m : leafEngineGroup.getAllowedMethods()) {
allow.append(m.toString()).append(gap);
}
if (allow.length() > 0) {
allow.setLength(allow.length() - gap.length());
}
// true: don't forward to next filter or servlet
return "@405: allowed=" + allow.toString();
}
}
StringBuilder sb = new StringBuilder();
sb.append("@200:");
ActionEngine actionEngine = (ActionEngine) leafEngine.getTarget();
sb.append(" <br>mapped '" + testUri + "' to " + actionEngine.getControllerClass().getName()
+ "#" + actionEngine.getMethod().getName());
sb.append("<br>intectptors:");
for (InterceptorDelegate i : actionEngine.getRegisteredInterceptors()) {