Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "ProxySupport"
m (→Update requirements) |
(Added CVS requirements) |
||
Line 2: | Line 2: | ||
== CVS Requirements == | == CVS Requirements == | ||
+ | |||
+ | The CVS/Core and CVS/SSH2 use the proxies provided by the Jsch plug-in to make proxy connections. Currently, there is support for two types of proxies: HTTP and SOCKS5. We would require API that allowed us to do something like this: | ||
+ | |||
+ | <pre> | ||
+ | ProxyInfo[] infos = ProxyInfo.getProxiesFor(String hostName); | ||
+ | ProxyInfo info = getSupportProxy(infos); // method would look for the HTTP or SOCKS5 proxy | ||
+ | if (info == null) { | ||
+ | // Attempt a direct connection. | ||
+ | // If the connection failed and there were proxies specified, let the user know that | ||
+ | // we only support HTTP and SOCKS4 | ||
+ | } else if (info.getType() == ProxyInfo.HTTP) { | ||
+ | // Use host, port, username and password to create an HTTP proxy using Jsch | ||
+ | } else if (info.getType() == Proxy.SOCKS5) { | ||
+ | // Use host, port, username and password to create a SOCKS5 proxy using Jsch | ||
+ | } | ||
+ | </pre> | ||
+ | |||
+ | The API we would require is that ability to retrieve the set of proxies that are available for a particular host. This doesn't imply that we need to support the specification of different proxies for each hist but I think it is good to leave room in the API to support this later. | ||
== Update Requirements == | == Update Requirements == | ||
== WTP Requirements == | == WTP Requirements == |
Revision as of 12:02, 9 February 2007
This page is being used to capture the requirements for Platform level proxy support (bug 154100)
CVS Requirements
The CVS/Core and CVS/SSH2 use the proxies provided by the Jsch plug-in to make proxy connections. Currently, there is support for two types of proxies: HTTP and SOCKS5. We would require API that allowed us to do something like this:
ProxyInfo[] infos = ProxyInfo.getProxiesFor(String hostName); ProxyInfo info = getSupportProxy(infos); // method would look for the HTTP or SOCKS5 proxy if (info == null) { // Attempt a direct connection. // If the connection failed and there were proxies specified, let the user know that // we only support HTTP and SOCKS4 } else if (info.getType() == ProxyInfo.HTTP) { // Use host, port, username and password to create an HTTP proxy using Jsch } else if (info.getType() == Proxy.SOCKS5) { // Use host, port, username and password to create a SOCKS5 proxy using Jsch }
The API we would require is that ability to retrieve the set of proxies that are available for a particular host. This doesn't imply that we need to support the specification of different proxies for each hist but I think it is good to leave room in the API to support this later.