Skip to main content

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

  • From: Santiago Pericas-Geertsen <Santiago.PericasGeertsen@...>
  • To: jsr339-experts@...
  • Subject: [jsr339-experts] Re: [jax-rs-spec users] Section 3.7: multiple root resources with the same URI template
  • Date: Tue, 29 Jan 2013 09:34:50 -0500


On Jan 28, 2013, at 6:00 PM, Sergey Beryozkin <sberyozkin@...> wrote:

> "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, I believe we had a single class rather than a set in an earlier version 
of this step.

> 
> 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 ?

 Exactly. If you think of these variables as being bound, this is sometimes 
called alpha renaming.

-- Santiago




[jsr339-experts] Section 3.7: multiple root resources with the same URI template

Sergey Beryozkin 01/28/2013

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

Santiago Pericas-Geertsen 01/29/2013

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

Marek Potociar 01/30/2013

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

Sergey Beryozkin 01/30/2013
 
 
Close
loading
Please Confirm
Close