users@jsr311.java.net

Re: Dealing with Matrix parameters

From: Sergey Beryozkin <sergey.beryozkin_at_progress.com>
Date: Mon, 24 Nov 2008 15:57:58 -0000

Hi

> On Nov 24, 2008, at 7:58 AM, Sergey Beryozkin wrote:
>>
>> I honestly find it hard to understand. Where does the spec says that
>> say
>> @Path("base/{tail}") needs to get replaced with something like
>>
>> base(/.*)/([^ /]+?)(/.*)?
>>
>> as opposed to
>>
>> base/([^ /]+?)(/.*)?
>>
> Section 3.7.3 defines how to convert a URI template into a regex.

This section is not complete then in that it does not advise implementors to remove matrix parameters from all the
path segments of the request URI for the resulting regex expression to match it. Nor any api java docs advise it too.

Cheers, Sergey

>
> Marc.
>
> ---
> Marc Hadley <marc.hadley at sun.com>
> CTO Office, Sun Microsystems.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jsr311.dev.java.net
> For additional commands, e-mail: users-help_at_jsr311.dev.java.net
>
>