/** * Specify proxy that should be used to connect. * * @param proxyHost Hostname of proxy. * @param proxyPort Port of proxy. * @return the current {@link Builder} instance */ public Builder proxy(String proxyHost, int proxyPort) { if (proxy == null) { proxy = new ProxyConfig(Proxy.Type.HTTP); } proxy.setProxyHost(proxyHost); proxy.setProxyPort(proxyPort); return this; }