Searched refs:host (Results 51 - 63 of 63) sorted by relevance

123

/libcore/luni/src/main/java/org/apache/harmony/security/x509/
H A DGeneralName.java348 // or by b.c - host name.
367 // specifies a host.
368 // Extract the host from URI:
372 String host = (end == -1)
381 if (host.startsWith(".")) {
382 return _host.toLowerCase(Locale.US).endsWith(host.toLowerCase(Locale.US));
384 return host.equalsIgnoreCase(_host);
/libcore/luni/src/test/java/libcore/java/net/
H A DURLConnectionTest.java1894 // On JB-MR2 and below, we would allow a host containing \u0000
1898 // The ideal behaviour here is to be "lenient" about the host and rewrite
1905 URL url = new URL("http://host\u0000/");
1915 assertEquals("http://host" + asAuthority + ".tld/",
1916 backdoorUrlToUri(new URL("http://host" + string + ".tld/")).toString());
1919 assertEquals("http://host.tld/file" + asFile + "/",
1920 backdoorUrlToUri(new URL("http://host.tld/file" + string + "/")).toString());
1923 assertEquals("http://host.tld/file?q" + asQuery + "=x",
1924 backdoorUrlToUri(new URL("http://host.tld/file?q" + string + "=x")).toString());
1926 assertEquals("http://host
2494 createSocket(Socket s, String host, int port, boolean autoClose) argument
2505 createSocket(String host, int port) argument
2510 createSocket(String host, int port, InetAddress localHost, int localPort) argument
2516 createSocket(InetAddress host, int port) argument
2542 createSocket(Socket s, String host, int port, boolean autoClose) argument
2557 createSocket(String host, int port) argument
2564 createSocket(String host, int port, InetAddress localHost, int localPort) argument
2572 createSocket(InetAddress host, int port) argument
2600 createSocket(Socket s, String host, int port, boolean autoClose) argument
2615 createSocket(String host, int port) argument
2622 createSocket(String host, int port, InetAddress localHost, int localPort) argument
2630 createSocket(InetAddress host, int port) argument
[all...]
H A DOldURLTest.java71 assertEquals("Assert 1: wrong host", "[www.apache.org:8082]", testURL.getHost());
152 URL testURL = new URL("ftp://myname@host.dom/etc/motd");
155 assertEquals("Assert 1: wrong host", "host.dom", testURL.getHost());
162 new URL("ftpmyname@host.dom/etc/motd");
349 String testFTPURLString = "ftp://myname@host.dom/etc/motd";
361 // octet form, with no host
362 "http://host/a[path#frag", // an illegal char, not in escaped
365 "http://host/a%path#frag", // invalid escape sequence in path
366 "http://host/
587 checkConnect(String host, int port) argument
[all...]
H A DOldSocketTest.java54 public void checkConnect(String host, int port) {
98 new Socket("unknown.host.google.com", 0);
2164 public void checkConnect(String host, int port) { argument
2165 if ("127.0.0.1".equals(host)) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DProxySelectorTest.java68 tcpUri = new URI("socket://host.com");
348 // set https proxy host empty
385 // set ftp host empty
522 * "host","port".
525 String host, int port) {
526 SocketAddress sa = InetSocketAddress.createUnresolved(host, port);
524 assertProxyEquals(List selectedProxyList, Proxy.Type type, String host, int port) argument
H A DSocketTest.java49 InetSocketAddress addr = new InetSocketAddress(host, port);
77 new InetSocketAddress(host, port).getAddress());
82 host = socket.getInetAddress().getHostName();
115 String host = "localhost"; field in class:SocketTest
548 "Misconfiguration - local host is the loopback address",
H A DURITest.java38 "http://user%60%20info@host/a%20path?qu%60%20ery#fr%5E%20ag"),
41 "http://user%C3%9F%C2%A3info@host:80/a%E2%82%ACpath?qu%C2%A9%C2%AEery#fr%C3%A4%C3%A8g"),
44 "ascheme://user\u00DF\u00A3info@host:0/a\u20ACpath?qu\u00A9\u00AEery#fr\u00E4\u00E8g"),
46 // URI("ascheme://user\u00df\u00a3info@host:0/a\u0080path?qu\u00a9\u00aeery#fr\u00e4\u00e8g"),
49 new URI("http", "user%60%20info", "host", 80, "/a%20path", //$NON-NLS-4$
52 new URI("http", "user%C3%9F%C2%A3info", "host", -1,
56 new URI("ascheme", "user\u00DF\u00A3info", "host", 80,
59 // URI("ascheme", "user\u00df\u00a3info", "host", 80,
61 new URI("http", "user` info", "host", 81, "/a path", "qu` ery",
63 new URI("http", "user%info", "host",
400 construct1(String scheme, String userinfo, String host, int port, String path, String query, String fragment) argument
[all...]
H A DURLTest.java71 assertEquals("u returns a wrong host", "www.yahoo1.com", u.getHost());
80 assertEquals("u1 returns a wrong host", "www.yahoo2.com", u1.getHost());
89 assertEquals("u2 returns a wrong host", "www.yahoo3.com", u2.getHost());
98 assertEquals("u2a returns a wrong host", "www.yahoo3.com", u2a
108 assertEquals("u3 returns a wrong host", "www.yahoo4.com", u3.getHost());
116 assertEquals("u3a returns a wrong host", "www.yahoo4.com", u3a
125 assertEquals("u3b returns a wrong host", "www.yahoo4.com", u3b
135 assertEquals("u4 returns a wrong host", "www.yahoo5.com", u4.getHost());
143 assertTrue("u5 returns a wrong host", u5.getHost().equals(""));
150 assertTrue("u5a returns a wrong host", u5
1092 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String file, String query, String ref) argument
[all...]
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DTestSSLEnginePair.java90 SSLEngine client = c.clientContext.createSSLEngine(c.host.getHostName(), c.port);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
H A DHandshakeCompletedEventTest.java205 private String host = "localhost"; field in class:HandshakeCompletedEventTest
H A DSSLSessionTest.java465 String host = "localhost"; field in class:SSLSessionTest
/libcore/luni/src/test/java/libcore/javax/net/ssl/
H A DSSLContextTest.java558 assertNotNull(testContext.host);
/libcore/benchmarks/src/benchmarks/regression/
H A DR.java1707 public static final int host = 0; field in class:R

Completed in 959 milliseconds

123