else if("POST".equals(req.getMethod())) mapping = registryPost;
else if("PUT".equals(req.getMethod())) mapping = registryPut;
// cannot happen, methods are filtered in servlet
else throw new IllegalArgumentException("Unsupported HTTP method: '" + req.getMethod() + "'");
for(HandlersMappingEntry en : mapping) {
NamedMatcher matcher = en.matcher(req.getPathInfo());
if(matcher.matches()) {
en.getTransportHandler().handle(en.getRestHandlerClass(), req, resp, matcher.namedGroups());
return;
}
}
notFoundHandler.handle(this, req, resp);
} catch(Exception e) {