Java 类sun.misc.RegexpPool 实例源码

项目:r01fb    文件:HttpsClient.java   
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;
}
项目:r01fb    文件:HttpsClient.java   
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;
}
项目:OpenJSharp    文件:DefaultProxySelector.java   
NonProxyInfo(String p, String s, RegexpPool pool, String d) {
    property = p;
    hostsSource = s;
    hostsPool = pool;
    defaultVal = d;
}
项目:lookaside_java-1.8.0-openjdk    文件:DefaultProxySelector.java   
NonProxyInfo(String p, String s, RegexpPool pool, String d) {
    property = p;
    hostsSource = s;
    hostsPool = pool;
    defaultVal = d;
}
项目:infobip-open-jdk-8    文件:DefaultProxySelector.java   
NonProxyInfo(String p, String s, RegexpPool pool, String d) {
    property = p;
    hostsSource = s;
    hostsPool = pool;
    defaultVal = d;
}
项目:jdk8u-dev-jdk    文件:DefaultProxySelector.java   
NonProxyInfo(String p, String s, RegexpPool pool, String d) {
    property = p;
    hostsSource = s;
    hostsPool = pool;
    defaultVal = d;
}
项目:jdk7-jdk    文件:DefaultProxySelector.java   
NonProxyInfo(String p, String s, RegexpPool pool, String d) {
    property = p;
    hostsSource = s;
    hostsPool = pool;
    defaultVal = d;
}
项目:openjdk-source-code-learn    文件:DefaultProxySelector.java   
NonProxyInfo(String p, String s, RegexpPool pool, String d) {
    property = p;
    hostsSource = s;
    hostsPool = pool;
    defaultVal = d;
}
项目:OLD-OpenJDK8    文件:DefaultProxySelector.java   
NonProxyInfo(String p, String s, RegexpPool pool, String d) {
    property = p;
    hostsSource = s;
    hostsPool = pool;
    defaultVal = d;
}
项目:openjdk-jdk7u-jdk    文件:DefaultProxySelector.java   
NonProxyInfo(String p, String s, RegexpPool pool, String d) {
    property = p;
    hostsSource = s;
    hostsPool = pool;
    defaultVal = d;
}
项目:openjdk-icedtea7    文件:DefaultProxySelector.java   
NonProxyInfo(String p, String s, RegexpPool pool, String d) {
    property = p;
    hostsSource = s;
    hostsPool = pool;
    defaultVal = d;
}