Examples of FormParam


Examples of org.cruxframework.crux.core.shared.rest.annotation.FormParam

  {
    QueryParam query;
    HeaderParam header;
    PathParam uriParam;
    CookieParam cookie;
    FormParam formParam;

    if ((query = ClassUtils.findAnnotation(annotations, QueryParam.class)) != null)
    {
      return new GroupValueInjector(RestParameterType.query, type, query.value());
    }
    else if ((header = ClassUtils.findAnnotation(annotations, HeaderParam.class)) != null)
    {
      return new GroupValueInjector(RestParameterType.header, type, header.value());
    }
    else if ((formParam = ClassUtils.findAnnotation(annotations, FormParam.class)) != null)
    {
      return new GroupValueInjector(RestParameterType.form, type, formParam.value());
    }
    else if ((cookie = ClassUtils.findAnnotation(annotations, CookieParam.class)) != null)
    {
      return new GroupValueInjector(RestParameterType.cookie, type, cookie.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.