HeaderParam header;
MatrixParam matrix;
PathParam uriParam;
CookieParam cookie;
FormParam formParam;
Form form;
// boolean isEncoded = FindAnnotation.findAnnotation(annotations,
// Encoded.class) != null;
if ((query = FindAnnotation.findAnnotation(annotations, QueryParam.class)) != null)
{
addParameter(type, annotations, MethodParamType.QUERY_PARAMETER, query
.value());
} else if ((header = FindAnnotation.findAnnotation(annotations,
HeaderParam.class)) != null)
{
addParameter(type, annotations, MethodParamType.HEADER_PARAMETER,
header.value());
} else if ((cookie = FindAnnotation.findAnnotation(annotations,
CookieParam.class)) != null)
{
addParameter(type, annotations, MethodParamType.COOKIE_PARAMETER,
cookie.value());
} else if ((uriParam = FindAnnotation.findAnnotation(annotations,
PathParam.class)) != null)
{
addParameter(type, annotations, MethodParamType.PATH_PARAMETER,
uriParam.value());
} else if ((matrix = FindAnnotation.findAnnotation(annotations,
MatrixParam.class)) != null)
{
addParameter(type, annotations, MethodParamType.MATRIX_PARAMETER,
matrix.value());
} else if ((formParam = FindAnnotation.findAnnotation(annotations,
FormParam.class)) != null)
{
addParameter(type, annotations, MethodParamType.FORM_PARAMETER,
formParam.value());
this.wantsForm = true;
} else if ((form = FindAnnotation.findAnnotation(annotations, Form.class)) != null)
{
if (type == Map.class || type == List.class) {
addParameter(type, annotations, MethodParamType.FORM, form.prefix());
this.wantsForm = true;
} else
walkForm(type);
} else if ((FindAnnotation.findAnnotation(annotations, Context.class)) != null)
{