{
Object processor = null;
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)
{
processor = new QueryParamProcessor(query.value());
}
else if ((header = FindAnnotation.findAnnotation(annotations,
HeaderParam.class)) != null)
{
processor = new HeaderParamProcessor(header.value());
}
else if ((cookie = FindAnnotation.findAnnotation(annotations,
CookieParam.class)) != null)
{
processor = new CookieParamProcessor(cookie.value());
}
else if ((uriParam = FindAnnotation.findAnnotation(annotations,
PathParam.class)) != null)
{
processor = new PathParamProcessor(uriParam.value());
}
else if ((matrix = FindAnnotation.findAnnotation(annotations,
MatrixParam.class)) != null)
{
processor = new MatrixParamProcessor(matrix.value());
}
else if ((formParam = FindAnnotation.findAnnotation(annotations,
FormParam.class)) != null)
{
processor = new FormParamProcessor(formParam.value());