public static Iterable < String > getParameterNames ( HttpServletRequest req ) { List < String > params = new ArrayList < String > ( ) ; Enumeration < ? > iter = req . getParameterNames ( ) ; while ( iter . hasMoreElements ( ) ) { params . add ( ( String ) iter . nextElement ( ) ) ; } return params ; }
Returns the names of the parameters of the supplied request in a civilized format .