Package com.firefly.mvc.web.support

Examples of com.firefly.mvc.web.support.ParamHandle


        p[i] = response;
        break;
      case MethodParam.HTTP_PARAM:
        // 请求参数封装到javabean
        Enumeration<String> enumeration = request.getParameterNames();
        ParamHandle paramHandle = paramHandles[i];
        p[i] = paramHandle.newParamInstance();

        // 把http参数赋值给参数对象
        while (enumeration.hasMoreElements()) {
          String httpParamName = enumeration.nextElement();
          String paramValue = request.getParameter(httpParamName);
          paramHandle.setParam(p[i], httpParamName, paramValue);
        }
        if (VerifyUtils.isNotEmpty(paramHandle.getAttribute())) {
          request.setAttribute(paramHandle.getAttribute(), p[i]);
        }
        break;
      }
    }
    return p;
View Full Code Here

TOP

Related Classes of com.firefly.mvc.web.support.ParamHandle

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.