users@jersey.java.net

Object injection

From: Li, Jun <jun.li_at_credit-suisse.com>
Date: Thu, 31 Jul 2008 15:47:47 -0400

Hi,

I just wondering if there is a way to inject a object for all the
GET/PUT/POST/DELETE methods.
Basically, I have a session filter which extracts an id in the header,
then I construct a object based on the id.
And I'd like to pass the object to all the methods in the resources, so
I don't need to have the exactly same code (although it is just one
line) in each methods.

Any suggestion?

Thanks,
Jun

==============================================================================
Please access the attached hyperlink for an important electronic communications disclaimer:

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==============================================================================