users@jersey.java.net

_at_Context annotation...

From: Bob Namestka <Robert.Namestka_at_Sun.COM>
Date: Wed, 09 Jul 2008 12:15:42 -0400

Hello All,

I'm a relative Jersey noob. I'm using jersey-08 for my prototyping.

Question: When using:

@Context
private UriInfo context;

inside of a (sub)Resource class, should that context be available
anywhere in the Resource chain ?

In other words, given:


http://somewhare.com/myapp/users/user123/trinkets/sku456

and have implemented classes for:
UsersResource, UserResource, TrinketsResource and TrinketResource

following the pattern(s) in the jersey examples, and using:

@Context
private UriInfo context;

inside of TrinketResource, should context be non-null ?


Bob