Hi
On 08/10/13 10:36, Fabio Martelli wrote:
Hi, I'm working on Apache Syncope in order to provide centralized
notification and audit mechanisms.
I was thinking to inercept each rest service call in order to be able to
provide this feature.

As you can imagine, a lot of info are required to discriminate request
and response.
In particular I need to know:
1. the called service method (handled java method);
2. the provided parameters (maybe castable to the corresponding java
objects);
3. the result (returned object or exception).

Is there someone that can point me in the right direction.

Can you try JAX-RS 2.0 ContainerRequestFilter with the injected

RequestInfo:

https://jax-rs-spec.java.net/nonav/2.0/apidocs/javax/ws/rs/container/ResourceInfo.html

(add it as as a @Context-annotated field to your filter implementation).

On the outbound side, ContainerResponseFilter (and its context) will give you an access to the response object

HTH, Sergey

Thank you in advance.

Best reagrds,
F.

Reply via email to