I have an interceptor that logs the outcome of Spring MVC responses. All my responses return ResponseEntity objects that have JSON body contents.
I would like to grab both the response body and the http status from the ResponseEntity.
How can I get access to the ResponseEntity from the postHandle method attributes?
public void postHandle(HttpServletRequest request,
HttpServletResponse response,
Object handler,
ModelAndView modelAndView) {}
The modelAndView attribute is null for my invocations.
Thanks, Jason