users@jersey.java.net

Re: [Jersey] How to get the value of a PathParam outside a Resource class

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 19 Oct 2009 22:32:40 +0200

On Oct 19, 2009, at 10:29 PM, DirkM wrote:

>
>
> Paul Sandoz wrote:
>>
>> ContainerRequest implements UriInfo.
>>
>
> Are you sure?
> https://jersey.dev.java.net/nonav/apidocs/1.1.2-ea/jersey/com/sun/jersey/spi/container/ContainerRequest.html

No :-) Doh!

You need to inject UriInfo into the ResourceFilterFactory and share/
pass that instance with the filters produce by the factory.

Paul.