Beispiel #1
0
  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;
  }
Beispiel #2
0
  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;
  }
Beispiel #3
0
 /**
  * Build the string value of this URL.
  *
  * @return the string url
  */
 public String toString() {
   return bridge.renderURL(method.getPhase(), escapeXML, parameters);
 }