Search code examples
javaweb-servicesjax-ws

What are JAX-WS Interceptors (also known as handlers)?


What are JAX WS Interceptors? Where do I find info regarding the same!


Solution

  • JAX-WS interceptors (also called handlers) are used to weave in aspects of the request in a transparent way. Example of this are logging or requests/responses, adding security headers to the message, encryption, compression, etc. A single interceptor can manipulate either the logical payload (content) of the message or the protocol of the message, but cannot do both.

    See here for the introductory documentation on them.