Package org.springframework.web.bind.annotation

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


        && !Map.class.isAssignableFrom(parameter.getParameterType());
  }

  @Override
  protected NamedValueInfo createNamedValueInfo(MethodParameter parameter) {
    RequestHeader annotation = parameter.getParameterAnnotation(RequestHeader.class);
    return new RequestHeaderNamedValueInfo(annotation);
  }
View Full Code Here


          required = requestParam.required();
          defaultValue = parseDefaultValueAttribute(requestParam.defaultValue());
          annotationsFound++;
        }
        else if (RequestHeader.class.isInstance(paramAnn)) {
          RequestHeader requestHeader = (RequestHeader) paramAnn;
          headerName = requestHeader.value();
          required = requestHeader.required();
          defaultValue = parseDefaultValueAttribute(requestHeader.defaultValue());
          annotationsFound++;
        }
        else if (RequestBody.class.isInstance(paramAnn)) {
          requestBodyFound = true;
          annotationsFound++;
View Full Code Here

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

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

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

        !Map.class.isAssignableFrom(parameter.getParameterType());
  }

  @Override
  protected NamedValueInfo createNamedValueInfo(MethodParameter parameter) {
    RequestHeader annotation = parameter.getParameterAnnotation(RequestHeader.class);
    return new RequestHeaderNamedValueInfo(annotation);
  }
View Full Code Here

          required = requestParam.required();
          defaultValue = parseDefaultValueAttribute(requestParam.defaultValue());
          annotationsFound++;
        }
        else if (RequestHeader.class.isInstance(paramAnn)) {
          RequestHeader requestHeader = (RequestHeader) paramAnn;
          headerName = requestHeader.value();
          required = requestHeader.required();
          defaultValue = parseDefaultValueAttribute(requestHeader.defaultValue());
          annotationsFound++;
        }
        else if (RequestBody.class.isInstance(paramAnn)) {
          requestBodyFound = true;
          annotationsFound++;
View Full Code Here

          required = requestParam.required();
          defaultValue = parseDefaultValueAttribute(requestParam.defaultValue());
          found++;
        }
        else if (RequestHeader.class.isInstance(paramAnn)) {
          RequestHeader requestHeader = (RequestHeader) paramAnn;
          headerName = requestHeader.value();
          required = requestHeader.required();
          defaultValue = parseDefaultValueAttribute(requestHeader.defaultValue());
          found++;
        }
        else if (RequestBody.class.isInstance(paramAnn)) {
          requestBodyFound = true;
          found++;
View Full Code Here

          required = requestParam.required();
          defaultValue = parseDefaultValueAttribute(requestParam.defaultValue());
          annotationsFound++;
        }
        else if (RequestHeader.class.isInstance(paramAnn)) {
          RequestHeader requestHeader = (RequestHeader) paramAnn;
          headerName = requestHeader.value();
          required = requestHeader.required();
          defaultValue = parseDefaultValueAttribute(requestHeader.defaultValue());
          annotationsFound++;
        }
        else if (RequestBody.class.isInstance(paramAnn)) {
          requestBodyFound = true;
          annotationsFound++;
View Full Code Here

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

TOP

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

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.