Package org.springframework.web.bind.annotation

Examples of org.springframework.web.bind.annotation.RequestParam


      if (parameterAnnotations != null) {

        for (Annotation paramAnn : parameterAnnotations[paramIndex]) {
          if (RequestParam.class.isInstance(paramAnn)) {
            RequestParam requestParam = (RequestParam)paramAnn;
            if (StringUtils.hasText(requestParam.value())) {
              parameterInfo.setName(requestParam.value());
            }
            parameterInfo.setRequired(requestParam.required());
            parameterInfo.setDefaultValue(ValueConstants.DEFAULT_NONE.equals(requestParam.defaultValue()) ? null
                : requestParam.defaultValue());
            parameterInfo.setHasRequestParamAnnotation(true);
            break;
          }
        }
      }
View Full Code Here


    Annotation[] paramAnnotations = methodParam.getParameterAnnotations();

    for (Annotation paramAnn : paramAnnotations) {
      if (RequestParam.class.isInstance(paramAnn)) {
        RequestParam requestParam = (RequestParam) paramAnn;
        if (StringUtils.hasText(requestParam.value())) {
          this.name = requestParam.value();
        }
        this.required = requestParam.required();
        this.defaultValue = ValueConstants.DEFAULT_NONE.equals(requestParam.defaultValue()) ? null
            : requestParam.defaultValue();
        this.hasRequestParamAnnotation = true;
        this.hasRequestHeaderAnnotation = false;
        break;
      } else if (RequestHeader.class.isInstance(paramAnn)) {
        RequestHeader requestHeader = (RequestHeader) paramAnn;
View Full Code Here

    Annotation[] paramAnnotations = methodParam.getParameterAnnotations();

    for (Annotation paramAnn : paramAnnotations) {
      if (RequestParam.class.isInstance(paramAnn)) {
        RequestParam requestParam = (RequestParam) paramAnn;
        if (StringUtils.hasText(requestParam.value())) {
          this.name = requestParam.value();
        }
        this.required = requestParam.required();
        this.defaultValue = ValueConstants.DEFAULT_NONE.equals(requestParam.defaultValue()) ? null
            : requestParam.defaultValue();
        this.hasRequestParamAnnotation = true;
        this.hasRequestHeaderAnnotation = false;
        break;
      } else if (RequestHeader.class.isInstance(paramAnn)) {
        RequestHeader requestHeader = (RequestHeader) paramAnn;
View Full Code Here

TOP

Related Classes of org.springframework.web.bind.annotation.RequestParam

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.