CXF interceptors, CXF features, and JAX-WS handlers

Change how SOAP requests and responses are processed on a client or a service by adding CXF interceptors, CXF features, or JAX-WS handlers, declared with annotations or in application.properties.

Apache CXF processes every message through a chain of interceptors, and a CXF feature packages the interceptors and settings for one capability, such as the built-in LoggingFeature. JAX-WS handlers are the alternative defined by the JAX-WS specification, implemented as SOAPHandler<SOAPMessageContext> classes.

In every case the class is looked up as a CDI bean first, by fully qualified class name or by bean name, and instantiated through its no-argument constructor only when no bean exists, so your interceptors, features, and handlers can inject other beans.

Where to go