Aug 25, 2018

[HDGEM] JAX-RS Interceptors vs filters

Interceptors are similar to filters in the sense that they are also used to mutate HTTP requests and
responses, but the major difference lies in the fact that Interceptors are primarily used to manipulate
HTTP message payloads.

They are divided into two categories - javax.ws.rs.ext.ReaderInterceptor
and javax.ws.rs.ext.WriterInterceptor for HTTP requests and responses respectively.

--
Posted By Blogger to HDGEM at 11/24/2016 11:54:00 AM