private void installSelectorForProtocol(Dict proxySettings,ProtocolDispatchSelector ps,String protocol){
  String prefix=protocol.trim();
  if (isActive(proxySettings.get(prefix + "Enable"))) {
    String proxyHost=(String)proxySettings.get(prefix + "Proxy");
    int proxyPort=(Integer)proxySettings.get(prefix + "Port");
    FixedProxySelector fp=new FixedProxySelector(proxyHost,proxyPort);
    ps.setSelector(protocol.toLowerCase(),fp);
    Logger.log(getClass(),LogLevel.TRACE,"OSX uses for {0} the proxy {1}:{2}",protocol,proxyHost,proxyPort);
  }
}

private void installSelectorForProtocol ( Dict proxySettings , ProtocolDispatchSelector ps , String protocol ) { String prefix = protocol . trim ( ) ; if ( isActive ( proxySettings . get ( prefix + "Enable" ) ) ) { String proxyHost = ( String ) proxySettings . get ( prefix + "Proxy" ) ; int proxyPort = ( Integer ) proxySettings . get ( prefix + "Port" ) ; FixedProxySelector fp = new FixedProxySelector ( proxyHost , proxyPort ) ; ps . setSelector ( protocol . toLowerCase ( ) , fp ) ; Logger . log ( getClass ( ) , LogLevel . TRACE , "OSX uses for {0} the proxy {1}:{2}" , protocol , proxyHost , proxyPort ) ; } }
installs a proxy selector for the given protocoll on the protocoldispatchselector
