public static void logRequestParameters(HttpServletRequest request){
  Logger logger=LoggerFactory.getLogger(ProtocolUtil.class);
  if (logger.isDebugEnabled()) {
    @SuppressWarnings("unchecked") Enumeration<String> paramNames=request.getParameterNames();
    while (paramNames.hasMoreElements()) {
      String name=paramNames.nextElement();
      for (      String value : request.getParameterValues(name)) {
        logger.debug("{}=\"{}\"",name,value);
      }
    }
  }
}

public static void logRequestParameters ( HttpServletRequest request ) { Logger logger = LoggerFactory . getLogger ( ProtocolUtil . class ) ; if ( logger . isDebugEnabled ( ) ) { @ SuppressWarnings ( "unchecked" ) Enumeration < String > paramNames = request . getParameterNames ( ) ; while ( paramNames . hasMoreElements ( ) ) { String name = paramNames . nextElement ( ) ; for ( String value : request . getParameterValues ( name ) ) { logger . debug ( "{}=\"{}\"" , name , value ) ; } } } }
logs all request parameters of the supplied request .
