Use the Eclipse network proxy configuration for HTTP connections
commitf47a061928a8b9ab657a9164bae31029a5829082
authorShawn O. Pearce <spearce@spearce.org>
Sun, 11 May 2008 21:01:35 +0000 (11 17:01 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 11 May 2008 21:13:19 +0000 (11 17:13 -0400)
tree345b62d29eb7f7f643b24c5a365472be40400da8
parent12eaf0cd19d0398a972627aa226706b99f63d183
Use the Eclipse network proxy configuration for HTTP connections

Eclipse provides support for proxy configuration within the workbench,
but this information is not pushed down into the J2SE library itself
so our naive use of java.net.URL to open connections cannot get to the
proxy information.

By installing our own ProxySelector and Authenticator implementations
we can push the Eclipse proxy information down into the J2SE library
and make use of it during transport operations.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.egit.ui/META-INF/MANIFEST.MF
org.spearce.egit.ui/src/org/spearce/egit/ui/Activator.java
org.spearce.egit.ui/src/org/spearce/egit/ui/EclipseAuthenticator.java [new file with mode: 0644]
org.spearce.egit.ui/src/org/spearce/egit/ui/EclipseProxySelector.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/transport/TransportHttp.java