@Test public void getClientConfigurationNoProxyInfo() { ClientConfiguration clientConfiguration = S3Utils.getClientConfiguration(this.proxyInfoProvider); assertNull(clientConfiguration.getProxyHost()); assertEquals(-1, clientConfiguration.getProxyPort()); }
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; }
S3Utils { 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; } }
S3Utils { 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; } private  S3Utils(); }
S3Utils { 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; } private  S3Utils();  }
S3Utils { 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; } private  S3Utils();   }