APISonar


com.btr.proxy.search.ProxySearch.Strategy.JAVA

> com > btr > proxy > search > ProxySearch > Strategy > JAVA
com APIs btr APIs proxy APIs search APIs ProxySearch APIs Strategy APIs JAVA APIs

Example 1
public ProxySearch createAutoProxySearch() {
        ProxySearch proxySearch = new ProxySearch();
        proxySearch.addStrategy(ProxySearch.Strategy.JAVA);
        proxySearch.addStrategy(ProxySearch.Strategy.ENV_VAR);
        if (PlatformUtil.getCurrentPlattform() != PlatformUtil.Platform.WIN) {
            proxySearch.addStrategy(ProxySearch.Strategy.BROWSER);
            // For Windows both BROWSER and OS_DEFAULT will end up with an IEProxySearchStrategy.
            // The call in createPacSelector to winHttpDetectAutoProxyConfigUrl is quite slow and we don't want to do it twice.
        }
        proxySearch.addStrategy(ProxySearch.Strategy.OS_DEFAULT);
        return proxySearch;
    }