/** * Gets the value of the proxyServerType property. * <p> * Specifies the type of the proxy server. Can be either HTTP or SOCKS. * */ public ProxyServerType getProxyServerType() { if (null == proxyServerType) { return ProxyServerType.fromValue("HTTP"); } return proxyServerType; }
public String value() { return name(); }
/** * Construct a new {@code Proxy} instance from the given policy. */ private Proxy createProxy(final HTTPClientPolicy policy) { return new Proxy(Proxy.Type.valueOf(policy.getProxyServerType().toString()), new InetSocketAddress(policy.getProxyServer(), policy.getProxyServerPort())); } }
public static ProxyServerType fromValue(String v) { return valueOf(v); }
&& (p1.isSetProxyServerPort() ? p1.getProxyServerPort() == p2.getProxyServerPort() : !p2 .isSetProxyServerPort()) && p1.getProxyServerType().value().equals(p2.getProxyServerType().value()) && (p1.getConnectionRequestTimeout() == p2.getConnectionRequestTimeout()) && (p1.getReceiveTimeout() == p2.getReceiveTimeout())
|| p1.getProxyServerType().equals(p2.getProxyServerType());
public static ProxyServerType fromValue(String v) { return valueOf(v); }
&& (p1.isSetProxyServerPort() ? p1.getProxyServerPort() == p2.getProxyServerPort() : !p2 .isSetProxyServerPort()) && p1.getProxyServerType().value().equals(p2.getProxyServerType().value()) && (p1.getConnectionRequestTimeout() == p2.getConnectionRequestTimeout()) && (p1.getReceiveTimeout() == p2.getReceiveTimeout())
|| p1.getProxyServerType().equals(p2.getProxyServerType());
p.setProxyServerPort(Integer.parseInt(v.trim())); } else if ("ProxyServerType".equals(k)) { p.setProxyServerType(ProxyServerType.fromValue(v)); } else if ("NonProxyHosts".equals(k)) { p.setNonProxyHosts(v);
/** * Construct a new {@code Proxy} instance from the given policy. */ private Proxy createProxy(final HTTPClientPolicy policy) { return new Proxy(Proxy.Type.valueOf(policy.getProxyServerType().toString()), new InetSocketAddress(policy.getProxyServer(), policy.getProxyServerPort())); } }
public static ProxyServerType fromValue(String v) { return valueOf(v); }
public String value() { return name(); }
|| p1.getProxyServerType().equals(p2.getProxyServerType());
/** * Gets the value of the proxyServerType property. * */ public ProxyServerType getProxyServerType() { if (null == proxyServerType) { return ProxyServerType.fromValue("HTTP"); } return proxyServerType; }
/** * Construct a new {@code Proxy} instance from the given policy. */ private Proxy createProxy(final HTTPClientPolicy policy) { return new Proxy(Proxy.Type.valueOf(policy.getProxyServerType().toString()), new InetSocketAddress(policy.getProxyServer(), policy.getProxyServerPort())); } }
public String value() { return name(); }
/** * Gets the value of the proxyServerType property. * <p> * Specifies the type of the proxy server. Can be either HTTP or SOCKS. * */ public ProxyServerType getProxyServerType() { if (null == proxyServerType) { return ProxyServerType.fromValue("HTTP"); } return proxyServerType; }
p.setProxyServerPort(Integer.parseInt(v.trim())); } else if ("ProxyServerType".equals(k)) { p.setProxyServerType(ProxyServerType.fromValue(v)); } else if ("NonProxyHosts".equals(k)) { p.setNonProxyHosts(v);