users@jsr311.java.net

Re: UriInfo.getAncestorResources

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Wed, 18 Jun 2008 16:07:38 +0200

Hi Sergey,
> I'm still a bit unclear about it.
>
> @Path("/")
> class Foo {
>
>
> @GET
> public Bar get(@Context UriInfo) {}
>
> @Path("/bar")
> public Bar sublocator(@Context UriInfo) {}
>
> }
>
> When injected through get() the list is empty, when injected through
> sublocator() the list is 1, when will the list be longer ?
The resource class Bar could also contain sub resource locators.

best regards
   Stephan