users@jersey.java.net

Re: [Jersey] Simple _at_Path question

From: Marc Hadley <marc.hadley_at_oracle.com>
Date: Wed, 31 Mar 2010 15:21:34 -0400

On Mar 30, 2010, at 5:58 PM, Gregg Carrier wrote:

> I'm trying to match
> /queries
> AND
> /queries.json
>
> This is my @Path:
> @Path("{dummy:/queries(\\.json)?}")
>
> Seems like a simple enough regex - can't get Jersey to do the right thing.
>
Does it work if you drop the leading '/' in the regex ?

Marc.