users@jersey.java.net

[Jersey] various methods annotated _at_GET (same URL and distinct parameters)

From: Jose Antonio Illescas Del Olmo <jantonio.illescas_at_rbcdexia-is.es>
Date: Fri, 01 Jun 2012 17:14:42 +0200

I have done a custom REST framework and I would like if JAX-RS can
annotate with @GET multiples methods (under same class/URL)

  In my custom framework, I can handle this as:

     1.- Sort all possible methods to call on descendant order by
#parameters (number of parameters)
     2.- Second calculate their priority as #parameters with URL value -
#parameters without URL value
     3.- Third calling method with greather priority,
                  · if multiples method has same priority value then use
one with greather #parameters with URL value and less #parameters
without URL
                  · if multiple coincidences then call to first method
(random selection over selected methods)

I can do this with Jersey (or JAX-RS)?

Thank you