private boolean isHeaderinSuppressedHeadersList ( String headername ) { if ( WCCustomProperties . CHECK_REQUEST_OBJECT_IN_USE ) { checkRequestObjectInUse ( ) ; } boolean suppressHeader = false ; if ( headername != null ) { Iterator itList = suppressheadersList . iterator ( ) ; while ( itList . hasNext ( ) && ! ( suppressHeader ) ) { String s = ( String ) itList . next ( ) ; if ( headername . startsWith ( s ) ) { suppressHeader = true ; if ( TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . logp ( Level . FINE , CLASS_NAME , "isHeaderinSuppressedHeadersList" , " suppressHeadersInRequest is set and headername --> " + headername + " begins with --> " + s ) ; } } } return suppressHeader ; }
Returns true if header can be suppressed or false if not .