--- a/jdk/src/share/classes/sun/net/www/URLConnection.java Mon May 30 16:37:42 2011 +0100
+++ b/jdk/src/share/classes/sun/net/www/URLConnection.java Mon May 30 23:36:10 2011 +0100
@@ -238,4 +238,14 @@
public void close() {
url = null;
}
+
+ private static HashMap<String,Void> proxiedHosts = new HashMap<>();
+
+ public synchronized static void setProxiedHost(String host) {
+ proxiedHosts.put(host.toLowerCase(), null);
+ }
+
+ public synchronized static boolean isProxiedHost(String host) {
+ return proxiedHosts.containsKey(host.toLowerCase());
+ }
}