jdk/src/share/classes/sun/net/www/URLConnection.java
changeset 9775 1b128726e887
parent 9550 c3a275ce56d3
child 10596 39b3a979e600
--- 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());
+    }
 }