< prev index next >
src/java.base/share/classes/sun/net/spi/DefaultProxySelector.java
Print this page
rev 52699 : 8214014: Remove vestiges of gopher: protocol proxy support
@@ -51,11 +51,10 @@
*
* Most of the implementation copied from the old http protocol handler
*
* Supports http/https/ftp.proxyHost, http/https/ftp.proxyPort,
* proxyHost, proxyPort, and http/https/ftp.nonProxyHost, and socks.
- * NOTE: need to do gopher as well
*/
public class DefaultProxySelector extends ProxySelector {
/**
* This is where we define all the valid System Properties we have to
@@ -80,11 +79,10 @@
* protocol, Property prefix 1, Property prefix 2, ...
*/
{"http", "http.proxy", "proxy", "socksProxy"},
{"https", "https.proxy", "proxy", "socksProxy"},
{"ftp", "ftp.proxy", "ftpProxy", "proxy", "socksProxy"},
- {"gopher", "gopherProxy", "socksProxy"},
{"socket", "socksProxy"}
};
private static final String SOCKS_PROXY_VERSION = "socksProxyVersion";
@@ -348,12 +346,10 @@
return 443;
} else if ("ftp".equalsIgnoreCase(protocol)) {
return 80;
} else if ("socket".equalsIgnoreCase(protocol)) {
return 1080;
- } else if ("gopher".equalsIgnoreCase(protocol)) {
- return 80;
} else {
return -1;
}
}
< prev index next >