Package org.springframework.web.bind.annotation

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


    return parameter.hasParameterAnnotation(CookieValue.class);
  }

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


        else if (RequestBody.class.isInstance(paramAnn)) {
          requestBodyFound = true;
          annotationsFound++;
        }
        else if (CookieValue.class.isInstance(paramAnn)) {
          CookieValue cookieValue = (CookieValue) paramAnn;
          cookieName = cookieValue.value();
          required = cookieValue.required();
          defaultValue = parseDefaultValueAttribute(cookieValue.defaultValue());
          annotationsFound++;
        }
        else if (PathVariable.class.isInstance(paramAnn)) {
          PathVariable pathVar = (PathVariable) paramAnn;
          pathVarName = pathVar.value();
View Full Code Here

    return parameter.hasParameterAnnotation(CookieValue.class);
  }

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

        else if (RequestBody.class.isInstance(paramAnn)) {
          requestBodyFound = true;
          annotationsFound++;
        }
        else if (CookieValue.class.isInstance(paramAnn)) {
          CookieValue cookieValue = (CookieValue) paramAnn;
          cookieName = cookieValue.value();
          required = cookieValue.required();
          defaultValue = parseDefaultValueAttribute(cookieValue.defaultValue());
          annotationsFound++;
        }
        else if (PathVariable.class.isInstance(paramAnn)) {
          PathVariable pathVar = (PathVariable) paramAnn;
          pathVarName = pathVar.value();
View Full Code Here

        else if (RequestBody.class.isInstance(paramAnn)) {
          requestBodyFound = true;
          found++;
        }
        else if (CookieValue.class.isInstance(paramAnn)) {
          CookieValue cookieValue = (CookieValue) paramAnn;
          cookieName = cookieValue.value();
          required = cookieValue.required();
          defaultValue = parseDefaultValueAttribute(cookieValue.defaultValue());
          found++;
        }
        else if (PathVariable.class.isInstance(paramAnn)) {
          PathVariable pathVar = (PathVariable) paramAnn;
          pathVarName = pathVar.value();
View Full Code Here

        else if (RequestBody.class.isInstance(paramAnn)) {
          requestBodyFound = true;
          annotationsFound++;
        }
        else if (CookieValue.class.isInstance(paramAnn)) {
          CookieValue cookieValue = (CookieValue) paramAnn;
          cookieName = cookieValue.value();
          required = cookieValue.required();
          defaultValue = parseDefaultValueAttribute(cookieValue.defaultValue());
          annotationsFound++;
        }
        else if (PathVariable.class.isInstance(paramAnn)) {
          PathVariable pathVar = (PathVariable) paramAnn;
          pathVarName = pathVar.value();
View Full Code Here

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

TOP

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

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.