users@jersey.java.net

Superclass subclass howto

From: Ross Mcdonald <rossajmcd_at_yahoo.co.uk>
Date: Thu, 13 May 2010 09:02:21 +0100

Hi Guys.

I would like to get a pointer for how to get some inheritance behaviour for a particular use case. We have many resource methods for CRUD operations, and for all of the CUD ops we need to grab '_at_Context HttpServletRequest' as a parameter to the method, grab the user principal, and store it somewhere. We don't want to do this in all our methods as it would be cool to do it in one place instead. Sorry for the newb question but how do we do this in Jersey?

Thanks.