title: Logging HttpRequest parameters and request body
body: <p>I am trying to create a request log for my web app. I am using Spring 3.
  0.</p>
  
  <p>I implemented a class extending <code>HandlerInterceptorAdapter</code> and used the <code>preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)</code> to intercept the request.</p>
  
  <p>In the method i want to be able to log the request body (my parameters are objects in XML that are written directly to the request body), and for that i use <code>request.getReader();</code></p>
  
  <p>The problem is - later on I will get an <code>IllegalStateException</code> when the spring controller tries to read the request.</p>
  
  <p>Is there a way to do what I intend?</p>