private static Properties parseHeaderFields ( String [ ] pHeaders ) { Properties headers = new Properties ( ) ; // Get header information int split ; String field ; String value ; for ( String header : pHeaders ) { //System.err.println(pHeaders[i]); if ( ( split = header . indexOf ( ":" ) ) > 0 ) { // Read & parse..? field = header . substring ( 0 , split ) ; value = header . substring ( split + 1 ) ; //System.err.println(field + ": " + value.trim()); headers . setProperty ( StringUtil . toLowerCase ( field ) , value . trim ( ) ) ; } } return headers ; }
Pareses the response header fields .