(URL url)
| 87 | } |
| 88 | |
| 89 | @Override |
| 90 | public HttpURLConnection getConnection(URL url) throws IOException { |
| 91 | HttpURLConnection connection = (HttpURLConnection) url.openConnection(this.proxy); |
| 92 | if (isNotBlank(this.credentials)) { |
| 93 | connection.addRequestProperty(PROXY_AUTHORIZATION, this.credentials); |
| 94 | } |
| 95 | return connection; |
| 96 | } |
| 97 | |
| 98 | public String getCredentials() { |
| 99 | return this.credentials; |