Package org.nutz.mvc

Examples of org.nutz.mvc.HttpAdaptor

你可以通过注解 '@AdaptBy' 来声明你的入口函数具体将采用哪个适配器,默认的 框架将采用 PairHttpAdaptor 来适配参数。当然,你也可以声明你自己的适配方法

你还需要知道的是:你每一个入口函数,框架都会为你建立一个新的适配器的实例。

注意:

@author zozoh(zozohtnt@gmail.com) @see org.nutz.mvc.annotation.AdaptBy

    ac.setMethodArgs(args);
    doNext(ac);
  }

  protected static HttpAdaptor evalHttpAdaptor(NutConfig config, ActionInfo ai) {
    HttpAdaptor re = evalObj(config, ai.getAdaptorInfo());
    if (null == re)
      re = new PairAdaptor();
    re.init(ai.getMethod());
    return re;
  }
View Full Code Here


        ac.setMethodArgs(args);
        doNext(ac);
    }

    protected static HttpAdaptor evalHttpAdaptor(NutConfig config, ActionInfo ai) {
        HttpAdaptor re = evalObj(config, ai.getAdaptorInfo());
        if (null == re)
            re = new PairAdaptor();
        re.init(ai.getMethod());
        return re;
    }
View Full Code Here

    }
    doNext(ac);
  }

  protected static HttpAdaptor evalHttpAdaptor(NutConfig config, ActionInfo ai) {
    HttpAdaptor re = evalObj(config, ai.getAdaptorInfo());
    if (null == re)
      re = new PairAdaptor();
    re.init(ai.getMethod());
    return re;
  }
View Full Code Here

TOP

Related Classes of org.nutz.mvc.HttpAdaptor

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.