public void parseRequest ( ) throws IOException { if ( ServletUtil . isMultipartRequest ( request ) ) { parseRequestStream ( request . getInputStream ( ) , characterEncoding ) ; } else { Enumeration names = request . getParameterNames ( ) ; while ( names . hasMoreElements ( ) ) { String paramName = ( String ) names . nextElement ( ) ; String [ ] values = request . getParameterValues ( paramName ) ; putParameters ( paramName , values ) ; } } }
Checks if request if multi - part and parse it . If request is not multi - part it copies all parameters to make usage the same in both cases .