Specifies the URL to be used for proxy auto-configuration. Expected format is http://hostname.com:1234/pacfile . This is required if #getProxyType() is set to ProxyType#PAC, ignored otherwise. @param proxyAutoconfigUrl the URL for proxy auto-configuration @return refere
(String proxyAutoconfigUrl)
| 384 | * @return reference to self |
| 385 | */ |
| 386 | public Proxy setProxyAutoconfigUrl(String proxyAutoconfigUrl) { |
| 387 | verifyProxyTypeCompatibility(ProxyType.PAC); |
| 388 | this.proxyType = ProxyType.PAC; |
| 389 | this.proxyAutoconfigUrl = proxyAutoconfigUrl; |
| 390 | return this; |
| 391 | } |
| 392 | |
| 393 | private void verifyProxyTypeCompatibility(ProxyType compatibleProxy) { |
| 394 | if (proxyType != ProxyType.UNSPECIFIED && proxyType != compatibleProxy) { |