jdk/src/share/classes/sun/net/www/URLConnection.java
changeset 9775 1b128726e887
parent 9550 c3a275ce56d3
child 10596 39b3a979e600
equal deleted inserted replaced
9774:50a2b28ca54c 9775:1b128726e887
   236      * Overriders must remember to call super.close()
   236      * Overriders must remember to call super.close()
   237      */
   237      */
   238     public void close() {
   238     public void close() {
   239         url = null;
   239         url = null;
   240     }
   240     }
       
   241 
       
   242     private static HashMap<String,Void> proxiedHosts = new HashMap<>();
       
   243 
       
   244     public synchronized static void setProxiedHost(String host) {
       
   245         proxiedHosts.put(host.toLowerCase(), null);
       
   246     }
       
   247 
       
   248     public synchronized static boolean isProxiedHost(String host) {
       
   249         return proxiedHosts.containsKey(host.toLowerCase());
       
   250     }
   241 }
   251 }