I am looking for a way to intercept in spring webmvc an incoming http request and response. I need to rewrite the entire request and response.
In concrete, I need to receive a request, extract the request body and process the request body as if it were a brand new request (thus rewriting the entire request before it gets handled further). Thereafter, I need to rewrite the response that is generated and wrap it somehow.
Can anyone help and provide some pointers?
Thanks