Package com.firefly.mvc.web.support

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


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

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


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

        // 把http参数赋值给参数对象
        while (enumeration.hasMoreElements()) {
          String httpParamName = enumeration.nextElement();
          String paramValue = request.getParameter(httpParamName);
          paramMetaInfo.setParam(p[i], httpParamName, paramValue);
        }
        if (VerifyUtils.isNotEmpty(paramMetaInfo.getAttribute())) {
          request.setAttribute(paramMetaInfo.getAttribute(), p[i]);
        }
        break;
      case MethodParam.CONTROLLER_RETURN:
        p[i] = firstString ? (String) controllerReturn : null;
        firstString = false;
View Full Code Here

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

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

TOP

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

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.