/** * 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())); } }
/** * This method returns the Proxy server should it be set on the * Client Side Policy. * * @return The proxy server or null, if not set. */ public Proxy createProxy(HTTPClientPolicy policy, URI currentUrl) { if (policy != null) { // Maybe the user has provided some proxy information if (policy.isSetProxyServer() && !StringUtils.isEmpty(policy.getProxyServer())) { return getProxy(policy, currentUrl.getHost()); } // There is a policy but no Proxy configuration, // fallback on the system proxy configuration return getSystemProxy(currentUrl.getHost()); } // Use system proxy configuration return getSystemProxy(currentUrl.getHost()); }
+ proxyAuthorizationPolicy.getUserName() + "'"; if (clientSidePolicy == null || clientSidePolicy.getProxyServer() == null) { if (usingProxy()) { msg += " using a proxy even if NONE is configured in CXF conduit " + clientSidePolicy.getProxyServer() + ":" + clientSidePolicy.getProxyServerPort();
/** * This method returns the Proxy server should it be set on the * Client Side Policy. * * @return The proxy server or null, if not set. */ public Proxy createProxy(HTTPClientPolicy policy, URI currentUrl) { if (policy != null) { // Maybe the user has provided some proxy information if (policy.isSetProxyServer() && !StringUtils.isEmpty(policy.getProxyServer())) { return getProxy(policy, currentUrl.getHost()); } // There is a policy but no Proxy configuration, // fallback on the system proxy configuration return getSystemProxy(currentUrl.getHost()); } // Use system proxy configuration return getSystemProxy(currentUrl.getHost()); }
result &= StringUtils.equals(p1.getProxyServer(), p2.getProxyServer()) && (p1.isSetProxyServerPort() ? p1.getProxyServerPort() == p2.getProxyServerPort() : !p2 .isSetProxyServerPort())
/** * This method returns the Proxy server should it be set on the * Client Side Policy. * * @return The proxy server or null, if not set. */ public Proxy createProxy(HTTPClientPolicy policy, URI currentUrl) { if (policy != null) { // Maybe the user has provided some proxy information if (policy.isSetProxyServer() && !StringUtils.isEmpty(policy.getProxyServer())) { return getProxy(policy, currentUrl.getHost()); } else { // There is a policy but no Proxy configuration, // fallback on the system proxy configuration return getSystemProxy(currentUrl.getHost()); } } else { // Use system proxy configuration return getSystemProxy(currentUrl.getHost()); } }
private Proxy createProxy(final HTTPClientPolicy policy) { return new Proxy(Proxy.Type.valueOf(policy.getProxyServerType().toString()), new InetSocketAddress(policy.getProxyServer(), policy.getProxyServerPort())); }
compatible &= StringUtils.compatible(p1.getProxyServer(), p2.getProxyServer());
/** * 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())); } }
/** * 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())); } }
p.setDecoupledEndpoint(StringUtils.combine(p1.getDecoupledEndpoint(), p2.getDecoupledEndpoint())); p.setHost(StringUtils.combine(p1.getHost(), p2.getHost())); p.setProxyServer(StringUtils.combine(p1.getProxyServer(), p2.getProxyServer())); if (p1.isSetProxyServerPort()) { p.setProxyServerPort(p1.getProxyServerPort());
+ proxyAuthorizationPolicy.getUserName() + "'"; if (clientSidePolicy == null || clientSidePolicy.getProxyServer() == null) { if (usingProxy()) { msg += " using a proxy even if NONE is configured in CXF conduit " + clientSidePolicy.getProxyServer() + ":" + clientSidePolicy.getProxyServerPort();
+ proxyAuthorizationPolicy.getUserName() + "'"; if (clientSidePolicy == null || clientSidePolicy.getProxyServer() == null) { if (usingProxy()) { msg += " using a proxy even if NONE is configured in CXF conduit " + clientSidePolicy.getProxyServer() + ":" + clientSidePolicy.getProxyServerPort();
result &= StringUtils.equals(p1.getProxyServer(), p2.getProxyServer()) && (p1.isSetProxyServerPort() ? p1.getProxyServerPort() == p2.getProxyServerPort() : !p2 .isSetProxyServerPort())
result &= StringUtils.equals(p1.getProxyServer(), p2.getProxyServer()) && (p1.isSetProxyServerPort() ? p1.getProxyServerPort() == p2.getProxyServerPort() : !p2 .isSetProxyServerPort())
compatible &= StringUtils.compatible(p1.getProxyServer(), p2.getProxyServer());
compatible &= StringUtils.compatible(p1.getProxyServer(), p2.getProxyServer());
p.setDecoupledEndpoint(StringUtils.combine(p1.getDecoupledEndpoint(), p2.getDecoupledEndpoint())); p.setHost(StringUtils.combine(p1.getHost(), p2.getHost())); p.setProxyServer(StringUtils.combine(p1.getProxyServer(), p2.getProxyServer())); if (p1.isSetProxyServerPort()) { p.setProxyServerPort(p1.getProxyServerPort());
p.setDecoupledEndpoint(StringUtils.combine(p1.getDecoupledEndpoint(), p2.getDecoupledEndpoint())); p.setHost(StringUtils.combine(p1.getHost(), p2.getHost())); p.setProxyServer(StringUtils.combine(p1.getProxyServer(), p2.getProxyServer())); if (p1.isSetProxyServerPort()) { p.setProxyServerPort(p1.getProxyServerPort());