Using Annotations, how to set up filters for auth, version check, etc

From: Kevin Duffey <>
Date: Mon, 22 Feb 2010 12:11:11 -0800 (PST)

Hello fellow Jersey friends,
I've been using Jersey with GF3 the past several weeks and am loving the annotations work. I am missing however how to set up filters. I defined the Auth filter and a version check filter in the web.xml before. But now that I don't need to use web.xml to set up the jersey servlet, I am curious how we indicate request and/or response filters, and how to indicate the order for which they should be processed?
Thank you.