/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | URLTest.java | 71 assertEquals("u returns a wrong host", "www.yahoo1.com", u.getHost()); in test_ConstructorLjava_lang_String() 80 assertEquals("u1 returns a wrong host", "www.yahoo2.com", u1.getHost()); in test_ConstructorLjava_lang_String() 89 assertEquals("u2 returns a wrong host", "www.yahoo3.com", u2.getHost()); in test_ConstructorLjava_lang_String() 99 .getHost()); in test_ConstructorLjava_lang_String() 108 assertEquals("u3 returns a wrong host", "www.yahoo4.com", u3.getHost()); in test_ConstructorLjava_lang_String() 117 .getHost()); in test_ConstructorLjava_lang_String() 126 .getHost()); in test_ConstructorLjava_lang_String() 135 assertEquals("u4 returns a wrong host", "www.yahoo5.com", u4.getHost()); in test_ConstructorLjava_lang_String() 143 assertTrue("u5 returns a wrong host", u5.getHost().equals("")); in test_ConstructorLjava_lang_String() 150 assertTrue("u5a returns a wrong host", u5a.getHost().equals("")); in test_ConstructorLjava_lang_String() [all …]
|
D | URITest.java | 233 assertNull("Assert 3: returned wrong host value,", uri.getHost()); in test_ConstructorLjava_lang_String() 243 assertNull("Assert 6: returned wrong host value,", uri.getHost()); in test_ConstructorLjava_lang_String() 289 assertNull("wrong hostname", uri.getHost()); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String() 383 assertEquals("wrong hostname", "hostname", uri.getHost()); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_StringILjava_lang_StringLjava_lang_StringLjava_lang_String() 484 assertNull("wrong hostname", uri.getHost()); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_String() 516 .getHost()); in test_fiveArgConstructor() 786 assertNull("Host not null for URI " + uri, uri.getHost()); in test_getAuthority2() 792 assertNull("Host not null for URI " + uri, uri.getHost()); in test_getAuthority2() 798 assertNull("Host not null for URI " + uri, uri.getHost()); in test_getAuthority2() 807 assertNull("Host not null for URI " + uri2, uri.getHost()); in test_getAuthority2() [all …]
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | URITest.java | 33 assertEquals("host", uri.getHost()); in testUriParts() 93 assertEquals(null, uri.getHost()); in testEmptyHost() 99 assertEquals(null, uri.getHost()); in testNoHost() 105 assertEquals("host", uri.getHost()); in testNoPath() 120 assertEquals("a", uri.getHost()); in testSingleLetterHost() 136 assertEquals(null, uri.getHost()); in testAtSignInUserInfo() 143 assertEquals("host", uri.getHost()); in testUserNoPassword() 152 assertEquals(null, uri.getHost()); in testUserNoHost() 159 assertEquals("host", uri.getHost()); in testUserNoPasswordExplicitPort() 167 assertEquals("host", uri.getHost()); in testUserPasswordHostPort() [all …]
|
D | URLTest.java | 49 assertEquals("host", url.getHost()); in testUrlParts() 60 assertEquals("www.google.com", url.getHost()); in testExplicitPort() 264 asList(url.getProtocol(), url.getHost(), url.getPort(), url.getAuthority(), in assertFields() 298 assertEquals("", url.getHost()); in testOmittedHost() 308 assertEquals("", url.getHost()); in testNoHost() 319 assertEquals("host", url.getHost()); in testNoPath() 329 assertEquals("", url.getHost()); in testEmptyHostAndNoPath() 343 assertEquals("", url.getHost()); in testNoHostAndNoPath() 357 assertTrue(url.getHost().isEmpty()); in testAtSignInUserInfo() 364 assertEquals("host", url.getHost()); in testUserNoPassword() [all …]
|
D | OldURLTest.java | 71 assertEquals("Assert 1: wrong host", "[www.apache.org:8082]", testURL.getHost()); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String() 155 assertEquals("Assert 1: wrong host", "host.dom", testURL.getHost()); in testURLString() 659 .getHost()); in test_ConstructorLjava_lang_StringLjava_lang_StringILjava_lang_StringLjava_net_URLStreamHandler() 669 .getHost()); in test_ConstructorLjava_lang_StringLjava_lang_StringILjava_lang_StringLjava_net_URLStreamHandler() 733 assertEquals("1 returns a wrong host", "www.yahoo.com", u1.getHost()); in testURLURLStringURLStreamHandler() 741 assertTrue("2 returns a wrong host", u1.getHost().equals("")); in testURLURLStringURLStreamHandler() 749 assertEquals("3 returns a wrong host", "www.yahoo.com", u1.getHost()); in testURLURLStringURLStreamHandler()
|
D | OldAndroidURITest.java | 33 assertEquals(host, uri.getHost()); in construct()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/ |
D | Handler.java | 45 private String getHost(URL url) { in getHost() method in Handler 46 String host = url.getHost(); in getHost() 77 String host = u.getHost(); in openConnection() 128 String s1 = u1.getHost(); in hostsEqual() 129 String s2 = u2.getHost(); in hostsEqual()
|
/libcore/ojluni/src/main/java/java/net/ |
D | URLStreamHandler.java | 127 String host = u.getHost(); in parseURL() 418 u.getHost(), in hashCode() 472 String host = u.getHost(); in getHostAddress() 497 if (u1.getHost() != null && u2.getHost() != null) in hostsEqual() 498 return u1.getHost().equalsIgnoreCase(u2.getHost()); in hostsEqual() 500 return u1.getHost() == null && u2.getHost() == null; in hostsEqual()
|
D | CookiePolicy.java | 64 return HttpCookie.domainMatches(cookie.getDomain(), uri.getHost());
|
D | InMemoryCookieStore.java | 128 getInternal1(cookies, uriIndex, uri.getHost()); in get() 422 uri.getHost(), in getEffectiveURI()
|
D | HttpURLConnection.java | 799 String host = url.getHost() + ":" + port; in getPermission()
|
D | URL.java | 820 public String getHost() { in getHost() method in URL 1410 String host = tempState.getHost(); in setDeserializedFields() 1576 String getHost() {
|
D | CookieManager.java | 331 String host = uri.getHost(); in put()
|
D | URLClassLoader.java | 696 String host = locUrl.getHost(); in getPermissions()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | URIName.java | 115 host = uri.getHost(); in URIName() 260 public String getHost() { in getHost() method in URIName 329 String otherHost = ((URIName)inputName).getHost(); in constrains()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | FileURLMapper.java | 61 String host = url.getHost(); in getPath()
|
/libcore/ojluni/src/main/java/sun/net/util/ |
D | URLUtil.java | 55 String host = url.getHost(); in urlNoFragString()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SSLSocketBenchmark.java | 50 this.host = InetAddress.getByName(url.getHost()); in WebSite()
|
/libcore/ojluni/annotations/hiddenapi/sun/security/x509/ |
D | URIName.java | 80 public java.lang.String getHost() { in getHost() method in URIName
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/ |
D | JarFileFactory.java | 141 sm.checkConnect(url.getHost(), url.getPort()); in getCachedJarFile()
|
D | URLJarFile.java | 104 String host = url.getHost(); in isFileURL()
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/ |
D | HttpURLConnectionTest.java | 142 if (("localhost".equals(uri.getHost())) in select()
|
/libcore/ojluni/src/main/java/sun/net/spi/ |
D | DefaultProxySelector.java | 159 String host = uri.getHost(); in select()
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | URL.java | 124 public java.lang.String getHost() { in getHost() method in URL
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/ |
D | FtpURLConnection.java | 182 host = url.getHost(); in FtpURLConnection()
|