Home
last modified time | relevance | path

Searched refs:getHost (Results 1 – 25 of 27) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DURLTest.java71 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 …]
/libcore/luni/src/test/java/libcore/java/net/
DURITest.java33 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 …]
DURLTest.java49 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 …]
DOldAndroidURITest.java33 assertEquals(host, uri.getHost()); in construct()
DOldURLTest.java71 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()
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/
DHandler.java45 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/
DURLStreamHandler.java127 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()
DCookiePolicy.java64 return HttpCookie.domainMatches(cookie.getDomain(), uri.getHost());
DInMemoryCookieStore.java128 getInternal1(cookies, uriIndex, uri.getHost()); in get()
422 uri.getHost(), in getEffectiveURI()
DHttpURLConnection.java799 String host = url.getHost() + ":" + port; in getPermission()
DCookieManager.java331 String host = uri.getHost(); in put()
DURLClassLoader.java696 String host = locUrl.getHost(); in getPermissions()
/libcore/ojluni/src/main/java/sun/security/x509/
DURIName.java115 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/
DFileURLMapper.java61 String host = url.getHost(); in getPath()
DURLClassPath.java675 security.checkConnect(locUrl.getHost(),
/libcore/ojluni/src/main/java/sun/net/util/
DURLUtil.java55 String host = url.getHost(); in urlNoFragString()
/libcore/benchmarks/src/benchmarks/regression/
DSSLSocketBenchmark.java50 this.host = InetAddress.getByName(url.getHost()); in WebSite()
/libcore/ojluni/annotations/hiddenapi/sun/security/x509/
DURIName.java78 public java.lang.String getHost() { in getHost() method in URIName
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DJarFileFactory.java141 sm.checkConnect(url.getHost(), url.getPort()); in getCachedJarFile()
DURLJarFile.java104 String host = url.getHost(); in isFileURL()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
DHttpURLConnectionTest.java142 if (("localhost".equals(uri.getHost())) in select()
/libcore/ojluni/src/main/java/sun/net/spi/
DDefaultProxySelector.java159 String host = uri.getHost(); in select()
/libcore/ojluni/annotations/hiddenapi/java/net/
DURL.java124 public java.lang.String getHost() { in getHost() method in URL
DURI.java142 public java.lang.String getHost() { in getHost() method in URI
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/
DFtpURLConnection.java182 host = url.getHost(); in FtpURLConnection()

12