O'Reilly logo

Java EE 7 Developer Handbook by Peter A. Pilgrim

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Filters

JAX-RS filters are available on the client and the container APIs, the packages javax.ws.js.client and javax.ws.js.container.

JAX-RS filters

On the client side, there are two types of filter, namely the Java interface ClientRequestFilter and ClientResponseFilter . For each direction, there is a corresponding context interface ClientRequestContext and ClientResponseContext.

On the server side, there are two types of filter, namely the Java interface ContainerRequestFilter and ContainerResponseFilter . For each direction, there is a corresponding context interface ContainerRequestContext and ContainerResponseContext.

Let us look at the server side filter as a start.

Server-side filters

JAX-RS executes the ContainerRequestFilter filter before ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required