文件系统上云的挑战-五、代码修改

时间:2024-11-05 14:13:05

【1】添加ProxyRequest设置代理服务器地址即可。

String httpProxyURL = CertificateConfig.getHttpProxyURL(); // proxy-nwl.fraaws.xxx.com:8080
String[] tmpList = httpProxyURL.split(":"); 
HttpHost proxy = new HttpHost(tmpList[0], NumberUtil.parseInt(tmpList[1]));
requestConfigBuilder.setProxy(proxy);