private void parseHeader ( final String header ) { LOG . debug ( "parseHeader: {}" , header ) ; final String headerName = header . substring ( 0 , header . indexOf ( ":" ) ) ; if ( ! headersMap . containsKey ( headerName ) ) { final String value = header . substring ( header . indexOf ( ":" ) + 1 ) ; headersMap . put ( headerName , StringUtils . trim ( value ) ) ; } }
Parse header value & puts the found values in headersMap field .