Examples of HeaderParam


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

    {
      defaultVal = defaultValue.value();
    }

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

    if ((query = ClassUtils.findAnnotation(annotations, QueryParam.class)) != null)
    {
      return createParameterExtractorForSimpleType(RestParameterType.query, injectTargetClass, type, query.value(), defaultVal);
    }
    else if ((header = ClassUtils.findAnnotation(annotations, HeaderParam.class)) != null)
    {
      return createParameterExtractorForSimpleType(RestParameterType.header, injectTargetClass, type, header.value(), defaultVal);
    }
    else if ((formParam = ClassUtils.findAnnotation(annotations, FormParam.class)) != null)
    {
      return createParameterExtractorForSimpleType(RestParameterType.form, injectTargetClass, type, formParam.value(), defaultVal);
    }
View Full Code Here

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

   * @return
   */
  protected static ValueInjector createParameterExtractorForComplexType(Class<?> injectTargetClass, Type type, Annotation[] annotations)
  {
    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());
    }
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.