public SocketAddress getSocketAddress( ProxyInfo proxyInfo ) { return InetSocketAddress.createUnresolved( proxyInfo.getHost(), proxyInfo.getPort() ); }
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; } }
int proxyPort = p.getPort();
"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() );
@Override protected FTPClient createClient() { ProxyInfo proxyInfo = getProxyInfo(); LOG.debug( "Creating FTP over HTTP proxy client. Proxy Host: [{}].", proxyInfo.getHost() ); return new FTPHTTPClient( proxyInfo.getHost(), proxyInfo.getPort(), proxyInfo.getUserName(), proxyInfo.getPassword() ); }
@Override protected FTPClient createClient() { ProxyInfo proxyInfo = getProxyInfo(); LOG.debug( "Creating FTP over HTTP proxy client. Proxy Host: [{}].", proxyInfo.getHost() ); return new FTPHTTPClient( proxyInfo.getHost(), proxyInfo.getPort(), proxyInfo.getUserName(), proxyInfo.getPassword() ); }
+ proxyInfoProvider.getProxyInfo( null ).getPort() + " with non proxyHosts " + proxyInfoProvider.getProxyInfo( null ).getNonProxyHosts() );
+ 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(); }
httpClient.setProxy( new Address( proxyInfo.getHost(), proxyInfo.getPort() ) );
int proxyPort = proxyInfo.getPort();
String msg = "Using network proxy " + networkProxy.getHost() + ":" + networkProxy.getPort() + " to connect to remote repository " + remoteRepository.getURL(); if ( networkProxy.getNonProxyHosts() != null )
int proxyPort = proxyInfo.getPort();
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() );
AetherClientProxy proxy = new AetherClientProxy(); proxy.setHost(getProxyInfo().getHost()); proxy.setPort(getProxyInfo().getPort());