code: public void setAutoProxy(String autoProxyUrl) {
      proxyConfig = new ProxyConfig();
      proxyConfig.setProxyAutoConfigUrl(autoProxyUrl);
      getWebClient().getOptions().setProxyConfig(proxyConfig);
    }
docs: Sets Proxy Autoconfiguration URL for WebClient
  
  @param autoProxyUrl The Proxy Autoconfiguration URL