switch (proxy.getProxyType()) { case MANUAL: if (proxy.getHttpProxy() != null && !proxy.getHttpProxy().isEmpty()) { //< HTTP proxy
StringBuilder builder = new StringBuilder("Proxy("); switch (getProxyType()) { case AUTODETECT: case DIRECT: case MANUAL: case SYSTEM: builder.append(getProxyType().toString().toLowerCase()); break;
if (proxy == null || proxy.getProxyType() == Proxy.ProxyType.UNSPECIFIED) { return; switch (proxy.getProxyType()) { case MANUAL:
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Proxy proxy = (Proxy) o; return isAutodetect() == proxy.isAutodetect() && getProxyType() == proxy.getProxyType() && Objects.equals(getFtpProxy(), proxy.getFtpProxy()) && Objects.equals(getHttpProxy(), proxy.getHttpProxy()) && Objects.equals(getNoProxy(), proxy.getNoProxy()) && Objects.equals(getSslProxy(), proxy.getSslProxy()) && Objects.equals(getSocksProxy(), proxy.getSocksProxy()) && Objects.equals(getSocksVersion(), proxy.getSocksVersion()) && Objects.equals(getSocksUsername(), proxy.getSocksUsername()) && Objects.equals(getSocksPassword(), proxy.getSocksPassword()) && Objects.equals(getProxyAutoconfigUrl(), proxy.getProxyAutoconfigUrl()); }
switch (proxy.getProxyType()) { case MANUAL: if (proxy.getHttpProxy() != null && !proxy.getHttpProxy().isEmpty()) { //< HTTP proxy
@Override public int hashCode() { return Objects.hash( getProxyType(), isAutodetect(), getFtpProxy(), getHttpProxy(), getNoProxy(), getSslProxy(), getSocksProxy(), getSocksVersion(), getSocksUsername(), getSocksPassword(), getProxyAutoconfigUrl()); } }
if (proxy.getProxyType() == Proxy.ProxyType.UNSPECIFIED) { return; switch (proxy.getProxyType()) { case DIRECT: if (!product.is(MOBILE)) { logger.warning("Unsupported proxy type: " + proxy.getProxyType());