Package juzu.impl.plugin.router

Examples of juzu.impl.plugin.router.ParamDescriptor


    //
    if (parameters != null && parameters.size() > 0) {
      JSON b = new JSON();
      for (Map.Entry<String, ParamDescriptor> parameter : parameters.entrySet()) {
        ParamDescriptor value = parameter.getValue();
        b.set(parameter.getKey(), new JSON().
            set("pattern", value.getPattern()).
            set("preserve-path", value.getPreservePath()).
            set("capture-group", value.getCaptureGroup())
        );
      }
      json.set("parameters", b);
    }
View Full Code Here


                  String name = ve.getSimpleName().toString();
                  ParameterMetaModel a = method.parameterBy(name);
                  if (a instanceof PhaseParameterMetaModel) {
                    PhaseParameterMetaModel b = (PhaseParameterMetaModel)a;
                    String pattern = param.pattern().length() == 0 ? null : param.pattern();
                    parameters.put(b.getMappedName(), new ParamDescriptor(pattern,  param.preservePath(),  param.captureGroup()));
                  } else {
                    throw new UnsupportedOperationException("Handle me gracefully");
                  }
                }
              }
View Full Code Here

TOP

Related Classes of juzu.impl.plugin.router.ParamDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.