private void parseServerHeader ( Map < Object , Object > props ) { // @PK15848 String value = getProp ( props , HttpConfigConstants . PROPNAME_SERVER_HEADER_VALUE ) ; if ( null == value || "" . equals ( value ) ) { // due to security change, do not default value in Server header. // PM87013 Start } else { if ( "DefaultServerVersion" . equalsIgnoreCase ( value ) ) { value = "WebSphere Application Server" ; } this . baServerHeaderValue = GenericUtils . getEnglishBytes ( value ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Config: server header value [" + value + "]" ) ; } } // PM87013 (PM75371) End Object ov = props . get ( HttpConfigConstants . PROPNAME_REMOVE_SERVER_HEADER ) ; if ( null != ov ) { this . bRemoveServerHeader = convertBoolean ( ov ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Config: remove server header is " + removeServerHeader ( ) ) ; } } }
Check the input configuration map for the parameters that control the Server header value .