Hi all,
it looks like I found what I need. The
com.sun.jersey.spi.container.ResourceFilterFactory provides exactly
what I need. Thought I'd post the response here for later reference.
However it is on trunk at the moment. I read Paul is about to release
1.0.2 sometime soon, this week according to this mail:
https://jersey.dev.java.net/servlets/ReadMsg?list=users&msgNo=4339
All good,
SaM
On Wed, Feb 11, 2009 at 1:17 PM, Samuel Le Berrigaud
<samuel.lb_at_gmail.com> wrote:
> Hi all,
>
> I was trying to figure out if there was some sort of
> ResourceInterceptor API avialable for Jersey. I couldn't find anything
> apart from the container request and response filters and they don't
> quite match my requirements.
>
> Ideally what I'd like is an interface that I could implement and that
> would let me do things before, after and possibly even instead of the
> resource method being called. It would probably give me the method, it
> argument and the object on which it is being called as arguments.
>
> That would really help implement some "cross-cutting" concerns to our
> REST APIs in a simpler way than using AOP.
>
> Hope this make sense.
> Thanks,
>
> SaM
>