Sergey Beryozkin wrote:
> Hi,
>
> > IMO i think way too restrictive to limit the scope of the @PathParam,
> > thus it should be possible to access the value of any template variable
> > that has been extracted from the left-hand side of the request URI path
> > that has been matched.
>
> This seems intuitive enough, given that the @Path on the resource class
> itself contributes
> to the discovery of a given method. It also simplifies the
> implementation a bit.
>
Yes.
> > The most recent template variable should take
> > precedence over previous template variables of the same name.
>
> Can you please elaborate a bit more about it ?
@Path("id")
public class Foo {
@Path("id")
public String subresourcemethod(@UriPath("id") String id) {
return id'
}
}
A GET to "/foo/bar" will return "bar" and not "foo"
Paul.
> Thanks, Sergey
>
>
>
> ----------------------------
> IONA Technologies PLC (registered in Ireland)
> Registered Number: 171387
> Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
--
| ? + ? = To question
----------------\
Paul Sandoz
x38109
+33-4-76188109