| | |
| | | .split("/"); |
| | | for (int i = 0; i < params.length; i++) { |
| | | ad.routeParams.put(params[i], i); |
| | | Logger.getLogger(Handler.class.getName()).log(Level.FINER, "ActionDescriptor param {0} no. {1}", new Object[]{params[i], i}); |
| | | } |
| | | ad.route = route.substring(0, pos - 1); |
| | | } else { |
| | |
| | | Logger.getLogger(Handler.class.getName()).log(Level.FINER, "Handle Request route {0} subroute {1}", new Object[]{route, subroute}); |
| | | ActionDescriptor ad = (ActionDescriptor) o; |
| | | String actorClassName = ad.className; |
| | | Logger.getLogger(Handler.class.getName()).log(Level.FINER, "Handle Request actor class name {0}", new Object[]{actorClassName}); |
| | | try { |
| | | Class actorClass = Class.forName(actorClassName); |
| | | Logger.getLogger(Handler.class.getName()).log(Level.FINER, "Handle Request actor class found: {0}", new Object[]{actorClass.getName()}); |
| | | Method[] methods = actorClass.getMethods(); |
| | | for (Method method : methods) { |
| | | Action action = method.getAnnotation(Action.class); |
| | |
| | | actionArgs[k] = queryParams.get(methodParam.getName()); |
| | | } else { |
| | | actionArgs[k] = routeParams[i + 1]; |
| | | Logger.getLogger(Handler.class.getName()).finer("routeParam " + i+1 + ": " + routeParams[i + 1]); |
| | | } |
| | | Logger.getLogger(Handler.class.getName()).finer("ActionArgs " + k + ": " + actionArgs[k]); |
| | | } |
| | | ++k; |
| | | } |