}
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);
}
else if ((cookie = ClassUtils.findAnnotation(annotations, CookieParam.class)) != null)
{
return createParameterExtractorForSimpleType(RestParameterType.cookie, injectTargetClass, type, cookie.value(), defaultVal);
}
else if ((uriParam = ClassUtils.findAnnotation(annotations, PathParam.class)) != null)
{
return createParameterExtractorForSimpleType(RestParameterType.path, injectTargetClass, type, uriParam.value(), defaultVal);
}