jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: [jax-rs-spec users] Section 3.7: multiple root resources with the same URI template

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Wed, 30 Jan 2013 10:43:59 +0000

Hi - thanks to Santiago and yourself for the confirmation

Sergey
On 30/01/13 10:38, Marek Potociar wrote:
>
> On Jan 29, 2013, at 12:00 AM, Sergey Beryozkin<sberyozkin_at_talend.com> wrote:
>
>> Hi Santiago, All,
>>
>> I'm checking the spec on what it has to say about supporting multiple root resources with exactly the same URI template.
>>
>> My understanding the section 3.7 has actually been updated, however to be honest reading this section is not the easiest thing to do :-), so I'd like to double check:
>>
>> "By definition, all root resource classes in C must be annotated with the same URI path template modulo variable names." - where C is the list of matched root resource classes so far.
>>
>> Does the above effectively says that multiple root resources with the same URI template are supported ?
>
> Yes.
>
>>
>> What does "module variable names means" ? Is it to say that say
>>
>> @Path("/a/{b}")
>>
>> and
>>
>> @Path("/a/{c}")
>>
>> are the same for the purpose of describing this specific match algorithm ?
>
> Yes.
>
> HTH,
> Marek.
>>
>> Thanks, Sergey
>