[Jersey] ClientFilters and AOP

From: Michael Childs <>
Date: Fri, 16 Aug 2013 23:12:53 +0000


I would like to automatically register ClientRequestFilter and ClientResponseFilter without having to add them to the client. For instance, the ContainerRequestFilter automatically registers and is run for every incoming request. However, I can only get the client filters to run if I directly register them with the client.

Is this possible?

Secondly - is it possible to use AOP on resource methods? All my attempts have failed to use spring AOP with jersey resource methods (to add logging before and after).