private void parseParameters ( String input ) { for ( String param : input . split ( "&" ) ) { String [ ] pair = param . split ( "=" ) ; String name = ( pair . length > 0 ) ? pair [ 0 ] : null ; String value = ( pair . length > 1 ) ? pair [ 1 ] : null ; if ( name != null ) { setParameter ( name , value ) ; } } }
Parses a String of HTTP parameters into the internal parameters data structure . No input checking or decoding is performed!