private Map < String , List < String > > freshMap ( ) throws IOException { final String body = new RqPrint ( this . req ) . printBody ( ) ; final Map < String , List < String > > map = new HashMap <> ( 1 ) ; // @checkstyle MultipleStringLiteralsCheck (1 line) for ( final String pair : body . split ( "&" ) ) { if ( pair . isEmpty ( ) ) { continue ; } // @checkstyle MultipleStringLiteralsCheck (1 line) final String [ ] parts = pair . split ( "=" , 2 ) ; if ( parts . length < 2 ) { throw new HttpException ( HttpURLConnection . HTTP_BAD_REQUEST , String . format ( "invalid form body pair: %s" , pair ) ) ; } final String key = RqFormBase . decode ( new EnglishLowerCase ( parts [ 0 ] . trim ( ) ) . string ( ) ) ; if ( ! map . containsKey ( key ) ) { map . put ( key , new LinkedList <> ( ) ) ; } map . get ( key ) . add ( RqFormBase . decode ( parts [ 1 ] . trim ( ) ) ) ; } return map ; }
Create map of request parameter .