public SocketAddress getSocketAddress( ProxyInfo proxyInfo ) { return InetSocketAddress.createUnresolved( proxyInfo.getHost(), proxyInfo.getPort() ); }
public ProxyInfo getProxy( String protocol ) { ProxyInfo info = (ProxyInfo) proxies.get( protocol ); if ( info != null ) { getLogger().debug( "Using Proxy: " + info.getHost() ); } return info; }
static ClientConfiguration getClientConfiguration(ProxyInfoProvider proxyInfoProvider) { ClientConfiguration clientConfiguration = new ClientConfiguration(); if (proxyInfoProvider != null) { ProxyInfo proxyInfo = proxyInfoProvider.getProxyInfo("s3"); if (proxyInfo != null) { clientConfiguration.withProxyHost(proxyInfo.getHost()).withProxyPort(proxyInfo.getPort()); } } return clientConfiguration; } }
static ClientConfiguration getClientConfiguration(ProxyInfoProvider proxyInfoProvider) { ClientConfiguration clientConfiguration = new ClientConfiguration(); if (proxyInfoProvider != null) { ProxyInfo proxyInfo = proxyInfoProvider.getProxyInfo("s3"); if (proxyInfo != null) { clientConfiguration.withProxyHost(proxyInfo.getHost()).withProxyPort(proxyInfo.getPort()); } } return clientConfiguration; } }
"start proxy on host/port " + proxyInfo.getHost() + "/" + proxyInfo.getPort() + " with non proxyHosts " + proxyInfo.getNonProxyHosts() );
"start proxy on host/port " + proxyInfo.getHost() + "/" + proxyInfo.getPort() + " with non proxyHosts " + proxyInfo.getNonProxyHosts() );
System.out.println( "start proxy on host/port " + proxyInfoProvider.getProxyInfo( null ).getHost() + "/" + proxyInfoProvider.getProxyInfo( null ).getPort() + " with non proxyHosts " + proxyInfoProvider.getProxyInfo( null ).getNonProxyHosts() );
public void openConnection() throws ConnectionException, AuthenticationException { previousHttpsProxyHost = System.getProperty("https.proxyHost"); previousHttpsProxyPort = System.getProperty("https.proxyPort"); previousHttpsProxyExclusions = System.getProperty("https.nonProxyHosts"); final ProxyInfo proxyInfo = getProxyInfo("https", getRepository().getHost()); if (proxyInfo != null) { setSystemProperty("https.proxyHost", proxyInfo.getHost()); setSystemProperty("https.proxyPort", String.valueOf(proxyInfo.getPort())); setSystemProperty("https.nonProxyHosts", proxyInfo.getNonProxyHosts()); } else { setSystemProperty("https.proxyHost", null); setSystemProperty("https.proxyPort", null); } super.openConnection(); }
public void openConnection() throws ConnectionException, AuthenticationException { previousHttpsProxyHost = System.getProperty( "https.proxyHost" ); previousHttpsProxyPort = System.getProperty( "https.proxyPort" ); previousHttpsProxyExclusions = System.getProperty( "https.nonProxyHosts" ); final ProxyInfo proxyInfo = getProxyInfo( "https", getRepository().getHost() ); if ( proxyInfo != null ) { setSystemProperty( "https.proxyHost", proxyInfo.getHost() ); setSystemProperty( "https.proxyPort", String.valueOf( proxyInfo.getPort() ) ); setSystemProperty( "https.nonProxyHosts", proxyInfo.getNonProxyHosts() ); } else { setSystemProperty( "https.proxyHost", null ); setSystemProperty( "https.proxyPort", null ); } super.openConnection(); }
message.append(e.getMessage()); message.append(" from " + url); if (getProxyInfo() != null && getProxyInfo().getHost() != null) { message.append(" with proxyInfo ").append(getProxyInfo().toString());
String proxyHost = proxyInfo.getHost(); String proxyNtlmHost = proxyInfo.getNtlmHost(); String proxyNtlmDomain = proxyInfo.getNtlmDomain();
String msg = "Using network proxy " + networkProxy.getHost() + ":" + networkProxy.getPort() + " to connect to remote repository " + remoteRepository.getURL(); if ( networkProxy.getNonProxyHosts() != null )
String proxyHost = proxyInfo.getHost(); String proxyNtlmHost = proxyInfo.getNtlmHost(); String proxyNtlmDomain = proxyInfo.getNtlmDomain();
insertKeyValueToBuf(buf, "proxy.host", getProxyInfo().getHost());
webdavResource.setProxy( proxyInfo.getHost(), proxyInfo.getPort() ); if ( !StringUtils.isEmpty( proxyInfo.getUserName() ) )
if ( proxy != null ) manager.addProxy( proxy.getType(), proxy.getHost(), proxy.getPort(), proxy.getUserName(), proxy.getPassword(), proxy.getNonProxyHosts() );
proxy.setHost(getProxyInfo().getHost()); proxy.setPort(getProxyInfo().getPort());