November 2017
Intermediate to advanced
420 pages
10h 29m
English
You can build a request filter for the server by implementing the javax.ws.rs.container.ContainerRequestFilter interface. This filter intercepts the REST API calls and runs before the request invokes the REST resource. You will find this useful for performing authorization checks, auditing requests, or manipulating the request header parameters before invoking the REST API implementation.
The ContainerRequestFilters implementation falls into two categories on the basis of the stage in the request processing cycle that the filters are executed at: