QueryParam query;
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)
{
marshaller = new QueryParamMarshaller(query.value());
}
else if ((header = FindAnnotation.findAnnotation(annotations,
HeaderParam.class)) != null)
{
marshaller = new HeaderParamMarshaller(header.value());
}
else if ((cookie = FindAnnotation.findAnnotation(annotations,
CookieParam.class)) != null)
{
marshaller = new CookieParamMarshaller(cookie.value());
}
else if ((uriParam = FindAnnotation.findAnnotation(annotations,
PathParam.class)) != null)
{
marshaller = new PathParamMarshaller(uriParam.value(), isEncoded,
providerFactory);
}
else if ((matrix = FindAnnotation.findAnnotation(annotations,
MatrixParam.class)) != null)
{
marshaller = new MatrixParamMarshaller(matrix.value());
}
else if ((formParam = FindAnnotation.findAnnotation(annotations,
FormParam.class)) != null)
{
marshaller = new FormParamMarshaller(formParam.value());
}
else if ((/* form = */FindAnnotation.findAnnotation(annotations,
Form.class)) != null)
{
marshaller = new FormMarshaller(type, providerFactory);