Custom filters
As a brief introduction, JAX-RS 2.0 has two different concepts for interceptions: filters and interceptors.
Interceptors are components that intercept EJB method invocations. They can be used to audit and log as and when EJBs are accessed. This is a topic that won't be included in this book, but if you feel curious and want to find out some more about it, we give you the following links as references so you can look it up:
Filters are mainly used to alter or process incoming and outgoing request or response headers. They can be executed before and after request and response processing.
Also, ...
Get RESTful Java Web Services Security now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.