users@jersey.java.net

Noobie question, sorry: pre-filtering requests

From: Jim Powers <jim_at_casapowers.com>
Date: Thu, 24 Jul 2008 08:33:02 -0400

Just getting up to speed here. I already looked in the archive, but
perhaps I'm asking the question incorrectly.

What I would like to do is to essentially write a filter that
pre-processes all incoming requests before the designated handlers get
invoked. The particular issue is that our restful requests are
HMAC-ed and I don't want to put in a call in each service routine to
call out to validate the HMAC (p.i.t.a. as well as something the can
be overlooked). Is this something that the Jersey libs supports or do
I just have to write a "classical" filter?

In our case GET requests can have (basically) any combination of URL
and/or request header parameters, we are planning to support both, and
combinations of both (the header parameters are marked with a
particular prefix). Any help would be appreciated.

-- 
Jim Powers