equal
deleted
inserted
replaced
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 } |