users@jersey.java.net

Re: [Jersey] Changes to path matching

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 23 Jul 2008 16:30:27 +0200

Frank Martínez wrote:
>
> Will be general regexes supported only on path params or in the path itself too?
>
> i.e. @Path(value="contents/.*/{number: \d+}"
>

Only on the path params, so you could do this:

  @Path("contents/{anon: .*}/{number: \d+}")

we considered unnamed path params but concluded it easier that they
should always be named. This enables us to easily retain the same order
rules for path templates (number of params, number of literal characters).

Paul.

>> Paul.
>>
>> --
>> | ? + ? = To question
>> ----------------\
>> Paul Sandoz
>> x38109
>> +33-4-76188109
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>>
>
>
>

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109