Hi David,

CXF does not have the support right now for statically binding CXF interceptors to methods. I guess we can explore it going forward, as part of the future CXF work. For example, CXF has an @InInterceptors annotation - may we can support binding it to individual methods, etc. May be we can have a CDI or CDI-like mechanism (as in JAX-RS 2.0) supported too. At the moment the workaround is to have an interceptor checking for the Method, for example, check SimpleAuthorizingInterceptor in the core package...

HTH, Sergey

On 26/03/14 00:42, David Hay wrote:
Well, I didn't know that Interceptors can be applied using Name Binding, so
I think I can just use that?

However, I would really like to pass some data for each particular method
that it's bound too (a list of things to check in each situation) ie there
would be a generic method that would take the things passed to it for that
method, and use them to check the call should be allowed.

Any ideas on how I would accomplish that?

thanks!

---

*David Hay*
*Principal Architect*
Cloud Management
*Dell* | Dell Software Group
Email: [email protected]


On Tue, Mar 25, 2014 at 2:54 PM, David Hay <[email protected]> wrote:

Hi,

I have set up some filters that extend ContainerRequestFilter and are
name-bound to certain methods.

I have a need to name-bind the same filter code across both SOAP and REST
methods...

Is this possible?

thanks!

David




Reply via email to