users@jersey.java.net

[Jersey] Root resource class question

From: Dário Abdulrehman <dario.rehman_at_gmail.com>
Date: Tue, 23 Feb 2010 14:35:59 +0000

Is it possible to define a single root resource class that matches both:

GET /proteins?protein=proteinid1&protein=proteinid2&...
GET/protein/proteinid

@Path(?)
public Class ...

and define two @GET methods for each case?

Conceptually they are the same resource but one works with lists and the
other with single objects.

Thanks,
Dário