Examples of CookieValue


Examples of com.bastengao.struts2.freeroute.annotation.CookieValue

     */
    private void initCookieValues() {
        cookieValues = new HashMap<CookieValue, Field>();
        for (Field field : action.getDeclaredFields()) {
            if (ReflectUtil.isAnnotationPresentOfField(field, CookieValue.class)) {
                CookieValue cookieValue = ReflectUtil.getAnnotationOfField(field, CookieValue.class);
                cookieValues.put(cookieValue, field);
            }
        }
        cookieValues = Collections.unmodifiableMap(cookieValues);
    }
View Full Code Here

Examples of com.bastengao.struts2.freeroute.annotation.CookieValue

     */
    private void initCookieValues() {
        cookieValues = new HashMap<CookieValue, Field>();
        for (Field field : action.getDeclaredFields()) {
            if (ReflectUtil.isAnnotationPresentOfField(field, CookieValue.class)) {
                CookieValue cookieValue = ReflectUtil.getAnnotationOfField(field, CookieValue.class);
                cookieValues.put(cookieValue, field);
            }
        }
        cookieValues = Collections.unmodifiableMap(cookieValues);
    }
View Full Code Here

Examples of com.bastengao.struts2.freeroute.annotation.CookieValue

     */
    private void initCookieValues() {
        cookieValues = new HashMap<CookieValue, Field>();
        for (Field field : action.getDeclaredFields()) {
            if (ReflectUtil.isAnnotationPresentOfField(field, CookieValue.class)) {
                CookieValue cookieValue = ReflectUtil.getAnnotationOfField(field, CookieValue.class);
                cookieValues.put(cookieValue, field);
            }
        }
        cookieValues = Collections.unmodifiableMap(cookieValues);
    }
View Full Code Here

Examples of com.ctlok.springframework.web.servlet.view.rythm.tag.CookieValue

        tags.add(new Url());
        tags.add(new FullUrl());
        tags.add(new Message(getApplicationContext()));
        tags.add(new Secured());
        tags.add(new DateFormat());
        tags.add(new CookieValue());
        tags.add(new CsrfToken(configurator.getCsrfTokenGenerator(),
                configurator.getCsrfTokenSessionName()));
       
        return tags;
       
View Full Code Here

Examples of com.ctlok.springframework.web.servlet.view.rythm.tag.CookieValue

        tags.add(new Url());
        tags.add(new FullUrl());
        tags.add(new Message(getApplicationContext()));
        tags.add(new Secured());
        tags.add(new DateFormat());
        tags.add(new CookieValue());
        tags.add(new CsrfToken(configurator.getCsrfTokenGenerator(),
                configurator.getCsrfTokenSessionName()));
       
        return tags;
       
View Full Code Here

Examples of org.apache.isis.viewer.scimpi.dispatcher.view.simple.CookieValue

        addElementProcessor(new When());

        addElementProcessor(new StartSession());
        addElementProcessor(new EndSession());

        addElementProcessor(new CookieValue());
        addElementProcessor(new SetCookie());
        addElementProcessor(new GetCookie());
        addElementProcessor(new SetCookieFromField());
        addElementProcessor(new SetFieldFromCookie());
       
View Full Code Here

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

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

        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

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

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

        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
TOP
Copyright © 2018 www.massapi.com. 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.