public static void setupRequestParameters ( final HttpServletRequest request ) { // Check already processed if ( request . getAttribute ( REQUEST_PROCESSED_KEY ) != null ) { return ; } Map < String , String [ ] > parameters = new HashMap <> ( ) ; Map < String , FileItem [ ] > files = new HashMap <> ( ) ; extractParameterMap ( request , parameters , files ) ; request . setAttribute ( REQUEST_PROCESSED_KEY , "Y" ) ; request . setAttribute ( REQUEST_PARAMETERS_KEY , Collections . unmodifiableMap ( parameters ) ) ; request . setAttribute ( REQUEST_FILES_KEY , Collections . unmodifiableMap ( files ) ) ; }
Process the request parameters allowing for multi part form fields .