Examples of ParamExtractor


Examples of org.nutz.mvc.adaptor.ParamExtractor

            Object refer) {
    ObjcetNaviNode no = new ObjcetNaviNode();
    String pre = "";
    if ("".equals(prefix))
      pre = "node.";
    ParamExtractor pe = Params.makeParamExtractor(req, refer);
    for (Object name : pe.keys()) {
      String na = (String) name;
      if (na.startsWith(prefix)) {
        no.put(pre + na, pe.extractor(na));
      }
    }
    return no.inject(mirror);
  }
View Full Code Here

Examples of org.nutz.mvc.adaptor.ParamExtractor

  public Object getServletContext sc,
            HttpServletRequest req,
            HttpServletResponse resp,
            Object refer) {
    ParamExtractor pe = Params.makeParamExtractor(req, refer);
    Object obj = mirror.born();
    for (int i = 0; i < injs.length; i++) {
      Object param = converters[i].convert(pe.extractor(names[i]));
      if (null != param)
        injs[i].inject(obj, param);
    }
    return obj;
  }
View Full Code Here

Examples of org.nutz.mvc.adaptor.ParamExtractor

    public Object get(    ServletContext sc,
                        HttpServletRequest req,
                        HttpServletResponse resp,
                        Object refer) {
        ParamExtractor pe = Params.makeParamExtractor(req, refer);
        Object obj = mirror.born();
        for (int i = 0; i < injs.length; i++) {
            Object param = converters[i].convert(pe.extractor(names[i]));
            if (null != param)
                injs[i].inject(obj, param);
        }
        return obj;
    }
View Full Code Here

Examples of org.nutz.mvc.adaptor.ParamExtractor

                        Object refer) {
        ObjectNaviNode no = new ObjectNaviNode();
        String pre = "";
        if ("".equals(prefix))
            pre = "node.";
        ParamExtractor pe = Params.makeParamExtractor(req, refer);
        for (Object name : pe.keys()) {
            String na = (String) name;
            if (na.startsWith(prefix)) {
                no.put(pre + na, pe.extractor(na));
            }
        }
        Object model = no.get();
        Object re = Mapl.maplistToObj(model, type);
        return re;
View Full Code Here

Examples of org.nutz.mvc.adaptor.ParamExtractor

    public Object get(ServletContext sc,
                      HttpServletRequest req,
                      HttpServletResponse resp,
                      Object refer) {
        ParamExtractor pe = Params.makeParamExtractor(req, refer);
        Object obj = mirror.born();
        for (int i = 0; i < injs.length; i++) {
            Object param = converters[i].convert(pe.extractor(names[i]));
            if (null != param)
                injs[i].inject(obj, param);
        }
        return obj;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.