Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 266256

Summary: [api] WebUtil.getProxy() should return Java system proxy if platform is not running
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P4 CC: robert.elves
Version: unspecifiedKeywords: helpwanted
Target Milestone: 3.5   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Steffen Pingel CLA 2009-02-26 01:52:54 EST
From bug 258571:

Currently WebUtil.getProxy returns null if the workbench isn't running (i.e. bugzilla libs in use but without platform running).   Perhaps we should be checking if system level proxy properties are defined and return a proxy based on those if set?

Java system properties: http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html
Comment 1 Steffen Pingel CLA 2011-01-22 16:37:41 EST
Added support using the standard JDK ProxySelector.
Comment 2 Steffen Pingel CLA 2011-01-22 16:37:43 EST
Created attachment 187366 [details]
mylyn/context/zip
Comment 3 Steffen Pingel CLA 2011-01-22 20:19:13 EST
Added additional method for obtaining the default proxy for a URL: WebUtil.getProxyForUrl(String url).