dev@jersey.java.net

Webservice Filter

From: <damien.gallagher_at_gmail.com>
Date: Mon, 4 Mar 2013 20:01:21 +0000 (GMT)

Hi

I am designing a set of webservices where the user needs an api key to
use the service.
I dont want to replicate the check on all services to see if the user
has a valid api key


Basically on every request I want to check if the api key is valid, if
not then I return a generic error response, if it is valid then process
the request

I had a look at the class
com.sun.jersey.api.container.filter.LoggingFilter and could do
something similar to this but interested in hearing peoples thoughts

I was wondering what approach people would use to perform this task?

Thanks
Damien