Package com.firefly.annotation

Examples of com.firefly.annotation.HttpParam


    methodParam = new byte[paraTypes.length];
    // 构造参数对象
    paramMetaInfos = new ParamMetaInfo[paraTypes.length];
    Annotation[][] annotations = method.getParameterAnnotations();
    for (int i = 0; i < paraTypes.length; i++) {
      HttpParam httpParam = getHttpParam(annotations[i]);
      if (httpParam != null) {
        ParamMetaInfo paramMetaInfo = new ParamMetaInfo(paraTypes[i],
            ReflectUtils.getSetterMethods(paraTypes[i]),
            httpParam.value());
        paramMetaInfos[i] = paramMetaInfo;
        methodParam[i] = MethodParam.HTTP_PARAM;
      } else {
        if (paraTypes[i].equals(HttpServletRequest.class))
          methodParam[i] = MethodParam.REQUEST;
View Full Code Here


    methodParam = new byte[paraTypes.length];
    // 构造参数对象
    paramHandles = new ParamHandle[paraTypes.length];
    Annotation[][] annotations = method.getParameterAnnotations();
    for (int i = 0; i < paraTypes.length; i++) {
      HttpParam httpParam = getHttpParam(annotations[i]);
      if (httpParam != null) {
        ParamHandle paramHandle = new ParamHandle(paraTypes[i],
            getBeanSetMethod(paraTypes[i]), httpParam.value());
        paramHandles[i] = paramHandle;
        methodParam[i] = MethodParam.HTTP_PARAM;
      } else {
        if (paraTypes[i].equals(HttpServletRequest.class))
          methodParam[i] = MethodParam.REQUEST;
View Full Code Here

    methodParam = new byte[paraTypes.length];
    // 构造参数对象
    paramMetaInfos = new ParamMetaInfo[paraTypes.length];
    Annotation[][] annotations = method.getParameterAnnotations();
    for (int i = 0; i < paraTypes.length; i++) {
      HttpParam httpParam = getHttpParam(annotations[i]);
      if (httpParam != null) {
        ParamMetaInfo paramMetaInfo = new ParamMetaInfo(paraTypes[i],
            ReflectUtils.getSetterMethods(paraTypes[i]),
            httpParam.value());
        paramMetaInfos[i] = paramMetaInfo;
        methodParam[i] = MethodParam.HTTP_PARAM;
      } else {
        if (paraTypes[i].equals(HttpServletRequest.class))
          methodParam[i] = MethodParam.REQUEST;
View Full Code Here

    Annotation[][] annotations = method.getParameterAnnotations();
    for (int i = 0; i < paraTypes.length; i++) {
      Annotation anno = getAnnotation(annotations[i]);
      if (anno != null) {
        if(anno.annotationType().equals(HttpParam.class)) {
          HttpParam httpParam = (HttpParam) anno;
          ParamMetaInfo paramMetaInfo = new ParamMetaInfo(
              paraTypes[i],
              ReflectUtils.getSetterMethods(paraTypes[i]),
              httpParam.value());
          paramMetaInfos[i] = paramMetaInfo;
          methodParam[i] = MethodParam.HTTP_PARAM;
        } else if(anno.annotationType().equals(PathVariable.class)) {
          if (paraTypes[i].equals(String[].class))
            methodParam[i] = MethodParam.PATH_VARIBLE;
View Full Code Here

TOP

Related Classes of com.firefly.annotation.HttpParam

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.