* /Example 2: Interceptors interfere with filters reading/writing
entity - asymmetrical configuration/
Suppose a filter wants to replace an entity using writeEntity
method. Suppose a special (inbound) reader interceptor is configured
in the interceptor chain (e.g. signature verifier), but there is no
(outbound) writer interceptor counterpart (e.g. signature appender).
How do we guarantee that the entity written by the filter will be
readable again? Note that not having a corresponding outbound
(signature appender) interceptor configured for the request is a
valid and justifiable use case. Even worse, the corresponding
outbound functionality can be, in general, provided by an outbound
filter instead of an interceptor, which will obviously not get
invoked as part of the writeEntity method.
[jsr339-experts] Re: HEADS-UP, IMPORTANT: Problems with JAX-RS interceptors