public RequestLoggingFilterWrapper(HttpServletRequest request) throws IOException {
  super(request);
  if (LOGGER.isDebugEnabled()) {
    InputStream inputStream=null;
    try {
      inputStream=request.getInputStream();
      if (inputStream != null) {
        payload=IOUtils.toByteArray(request.getInputStream());
      }
    }
  finally {
      if (inputStream != null) {
        try {
          inputStream.close();
        }
 catch (        IOException iox) {
          LOGGER.warn("Unable to close request input stream.",iox);
        }
      }
    }
  }
}

public RequestLoggingFilterWrapper ( HttpServletRequest request ) throws IOException { super ( request ) ; if ( LOGGER . isDebugEnabled ( ) ) { InputStream inputStream = null ; try { inputStream = request . getInputStream ( ) ; if ( inputStream != null ) { payload = IOUtils . toByteArray ( request . getInputStream ( ) ) ; } } finally { if ( inputStream != null ) { try { inputStream . close ( ) ; } catch ( IOException iox ) { LOGGER . warn ( "Unable to close request input stream." , iox ) ; } } } } }
constructs a request logging filter wrapper .
