private void addRequestHeaders(BufferedRequestWrapper httpRequest, List<Loggable> loggables) {
   Enumeration<String> headerNames = httpRequest.getHeaderNames();
   if (headerNames != null) {
     while (headerNames.hasMoreElements()) {
       String headerName = headerNames.nextElement();
       loggables.add(createLoggable(headerName, httpRequest.getHeader(headerName)));
     }
   }
 }
 private void addRequestQuery(BufferedRequestWrapper httpRequest, List<Loggable> loggables) {
   loggables.add(
       createLoggable(
           WebKeys.QUERY,
           StringUtils.replaceEach(
               httpRequest.getQueryString(),
               new String[] {StringPool.QUESTIONMARK, StringPool.AMPERSAND},
               new String[] {StringPool.BLANK, StringPool.UDERSCORE})));
 }
 private String getBody(BufferedRequestWrapper httpRequest) {
   String body = StringPool.BLANK;
   try {
     ServletInputStream inputStream = httpRequest.getInputStream();
     body = IOUtils.toString(inputStream);
     IOUtils.closeQuietly(inputStream);
   } catch (Exception e) {
     log.debug("Unable to log request body", e);
   }
   return body;
 }