0

I have googled quite a while for this but couldn't find anything that solves my problem.

I am implementing a CXF Interceptor (AbstractPhaseInterceptor) and configure it in spring using the CXFBusImpl.

This enables the interceptor for all end points. What I want however is only enable this interceptor for specific end points. Is this possible?

Hope somebody can help :)

Many thanks

4

1 回答 1

2

对的,这是可能的。端点声明也理解拦截器:

<jaxws:endpoint id="...">
    <jaxws:inInterceptors>
       ... interceptors here ...
    </jaxws:inInterceptors>
</jaxws:endpoint>

outInterceptors 和 jaxrs 也是如此。

于 2013-12-12T16:32:45.680 回答