Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-05-13 06:22:49 +0000
committerspingel2009-05-13 06:22:49 +0000
commit7e7d343032f15c41914ef0dc757644e4a4d3a576 (patch)
tree0309695ff6ce3baa04e5040133c641c802793145
parenteeeac4310021ce20d973dfc8938ec3a098867bb4 (diff)
downloadorg.eclipse.mylyn.commons-7e7d343032f15c41914ef0dc757644e4a4d3a576.tar.gz
org.eclipse.mylyn.commons-7e7d343032f15c41914ef0dc757644e4a4d3a576.tar.xz
org.eclipse.mylyn.commons-7e7d343032f15c41914ef0dc757644e4a4d3a576.zip
NEW - bug 266256: WebUtil.getProxy() should return Java system proxy if platform is not running
https://bugs.eclipse.org/bugs/show_bug.cgi?id=266256
-rw-r--r--org.eclipse.mylyn.commons.net/src/org/eclipse/mylyn/commons/net/WebLocation.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.commons.net/src/org/eclipse/mylyn/commons/net/WebLocation.java b/org.eclipse.mylyn.commons.net/src/org/eclipse/mylyn/commons/net/WebLocation.java
index 4988609e..19a46040 100644
--- a/org.eclipse.mylyn.commons.net/src/org/eclipse/mylyn/commons/net/WebLocation.java
+++ b/org.eclipse.mylyn.commons.net/src/org/eclipse/mylyn/commons/net/WebLocation.java
@@ -21,6 +21,14 @@ import java.util.Map;
*/
public class WebLocation extends AbstractWebLocation {
+ private static class PlatformProxyProvider implements IProxyProvider {
+
+ public Proxy getProxyForHost(String host, String proxyType) {
+ return WebUtil.getProxy(host, proxyType);
+ }
+
+ }
+
private final Map<AuthenticationType, AuthenticationCredentials> credentialsByType;
private final IProxyProvider proxyProvider;
@@ -37,11 +45,11 @@ public class WebLocation extends AbstractWebLocation {
}
public WebLocation(String url, String username, String password) {
- this(url, username, password, null);
+ this(url, username, password, new PlatformProxyProvider());
}
public WebLocation(String url) {
- this(url, null, null, null);
+ this(url, null, null, new PlatformProxyProvider());
}
@Override

Back to the top