public ApplicationAsset(ApplicationDescriptor desc) { // Map<String, ControllerMethod> table = new HashMap<String, ControllerMethod>(); for (ControllerMethod cm : desc.getControllerMethods()) { Ajax ajax = cm.getMethod().getAnnotation(Ajax.class); if (ajax != null) { table.put(cm.getName(), cm); } } // this.desc = desc; this.table = table; }
public URLBuilder(MimeBridge bridge, ControllerMethod method) { HashMap<String, String[]> parameters = new HashMap<String, String[]>(); parameters.put("juzu.op", new String[] {method.getId()}); // this.bridge = bridge; this.method = method; this.escapeXML = null; this.parameters = parameters; }
/** * Build the string value of this URL. * * @return the string url */ public String toString() { return bridge.renderURL(method.getPhase(), escapeXML, parameters); }