private String [ ] enabledProtocols ( String [ ] supportedProtocols , String [ ] defaultProtocols ) { if ( enabledProtocols == null ) { // we're assuming that the same engine is used for all configurables // so once we determine the enabled set, we won't do it again if ( OptionHelper . isEmpty ( getIncludedProtocols ( ) ) && OptionHelper . isEmpty ( getExcludedProtocols ( ) ) ) { enabledProtocols = Arrays . copyOf ( defaultProtocols , defaultProtocols . length ) ; } else { enabledProtocols = includedStrings ( supportedProtocols , getIncludedProtocols ( ) , getExcludedProtocols ( ) ) ; } for ( String protocol : enabledProtocols ) { addInfo ( "enabled protocol: " + protocol ) ; } } return enabledProtocols ; }
Gets the set of enabled protocols based on the configuration .