private void parseLimitNumberHeaders ( Map < Object , Object > props ) { Object value = props . get ( HttpConfigConstants . PROPNAME_LIMIT_NUMHEADERS ) ; if ( null != value ) { try { this . limitNumHeaders = rangeLimit ( convertInteger ( value ) , HttpConfigConstants . MIN_LIMIT_NUMHEADERS , HttpConfigConstants . MAX_LIMIT_NUMHEADERS ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Config: Num hdrs limit is " + getLimitOnNumberOfHeaders ( ) ) ; } } catch ( NumberFormatException nfe ) { FFDCFilter . processException ( nfe , getClass ( ) . getName ( ) + ".parseLimitNumberHeaders" , "1" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Config: Invalid number of headers limit; " + value ) ; } } } }
Check the input configuration for a maximum limit on the number of headers allowed per message .