users@jersey.java.net

[Jersey] URI for a resource

From: Rahul Babbar <rahul.babbar1_at_gmail.com>
Date: Wed, 29 Dec 2010 10:47:03 -0800

Hello All,

I have the following requirement.

I have the following set of URIs

1) /foo
2) /foo.bar
3) /foo.alpha

All these should be handled by the same REST service(or the resource).

Normally in the declaration of the resource handling "/foo", we give
"@Path("/foo")".

What needs to be done in the above case so that all the three URIs can be
handled?

Also, in each method, how do i get to know whether there is a suffix in the
URI(like .bar, .alpha etc), and if there is one, what is it?

Thank you !!

Rahul