title: How to read request parameter values Using HandlerInterceptor in spring?
body: <p>I'm using HandlerInterceptor to trigger all the events/actions happens in my applications and save it to audit table. In table I'm saving the information like servername, session, parameters etc..</p>
  
  <p>So using HandlerInterceptor how can I read all those parameters values and the pathvariable values what I'm passing in my controller.</p>
  
  <p>Here is my code :</p>
  
  <pre><code>    public class AuditInterceptor implements HandlerInterceptor {
  
      @Override
      public boolean preHandle(HttpServletRequest request,
              HttpServletResponse response, Object handler) throws Exception {
              LOG.debug("URL path"+request.getRequestURI());
                  return true;
      }
  
      @Override
      public void postHandle(HttpServletRequest request,
              HttpServletResponse response, Object handler,
              ModelAndView modelAndView) throws Exception {
          LOG.debug("URL PATH :"+request.getRequestURI());
  
      } 
  
  }
  </code></pre>
  
  <p>My controller class enter code here::</p>
  
  <pre><code>public class ABCDController {
  @RequestMapping(value="categories",method=RequestMethod.GET)
      @ResponseBody
      public List&lt;Category&gt; getCategoryList(@RequestParam String divisions){
          return service.getCategoryList(divisions);
      }
  }
  </code></pre>
  
  <p>So how can I read the parameter name and values using HandlerInterceptor's HttpServletRequest request object.</p>