[Jersey] Jersey2 Apply filter to requests only?

From: Piers Powlesland <>
Date: Fri, 2 Aug 2013 10:25:00 +0100

Hi I'm trying to log requests as they come into the web application I am
writing. I cannot see how to do this I have managed to log both requests
and responses by calling "register(new LoggingFilter())" in my resource
configuration class, but it is not clear to me how I can apply a filter to
requests only?

Anyone have an idea?