private boolean isNonProxyHost() { RegexpPool nonProxyHosts; nonProxyHosts = _getNonProxyHosts(); if (nonProxyHosts.match(super.url.getHost().toLowerCase()) != null) { return true; } String s; InetAddress inetaddress; try { inetaddress = InetAddress.getByName(super.url.getHost()); s = inetaddress.getHostAddress(); if (nonProxyHosts.match(s) != null) { return true; } } catch (UnknownHostException ex) { ex.printStackTrace(System.out); } /* * break MISSING_BLOCK_LABEL_54; UnknownHostException * unknownhostexception; unknownhostexception; */ return false; }
private static RegexpPool _getNonProxyHosts() { RegexpPool regexppool = new RegexpPool(); String nonProxyHosts = AccessController.doPrivileged(new GetPropertyAction("http.nonProxyHosts")); if (nonProxyHosts != null) { StringTokenizer stringtokenizer = new StringTokenizer(nonProxyHosts, "|", false); try { while (stringtokenizer.hasMoreTokens()) { regexppool.add(stringtokenizer.nextToken().toLowerCase(), new Boolean(true)); } } catch (Exception exception) { exception.printStackTrace(System.out); } } return regexppool; }
NonProxyInfo(String p, String s, RegexpPool pool, String d) { property = p; hostsSource = s; hostsPool = pool; defaultVal = d; }