What is the proper replacement of the Resteasy 3.X PreProcessInterceptor?
RESTEasy 3.x.x conforms to the JAX-RS 2.0 specification. What you are trying to do could be accomplished (maybe better) with: @Provider public class SecurityInterceptor implements javax.ws.rs.container.ContainerRequestFilter { @Override public void filter(ContainerRequestContext requestContext){ if (not_authenticated){ requestContext.abortWith(response)}; } } since the ReaderInterceptor is invoked only if the underlying MessageBodyReader.readFrom is called by the standard JAX-RS pipeline, not … Read more