Home
last modified time | relevance | path

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

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DURLTest.java70 assertEquals("u returns a wrong protocol", "http", u.getProtocol()); in test_ConstructorLjava_lang_String()
79 assertEquals("u1 returns a wrong protocol", "http", u1.getProtocol()); in test_ConstructorLjava_lang_String()
88 assertEquals("u2 returns a wrong protocol", "http", u2.getProtocol()); in test_ConstructorLjava_lang_String()
97 assertEquals("u2a returns a wrong protocol", "file", u2a.getProtocol()); in test_ConstructorLjava_lang_String()
107 assertEquals("u3 returns a wrong protocol", "http", u3.getProtocol()); in test_ConstructorLjava_lang_String()
115 assertEquals("u3a returns a wrong protocol", "file", u3a.getProtocol()); in test_ConstructorLjava_lang_String()
124 assertEquals("u3b returns a wrong protocol", "file", u3b.getProtocol()); in test_ConstructorLjava_lang_String()
134 assertEquals("u4 returns a wrong protocol", "http", u4.getProtocol()); in test_ConstructorLjava_lang_String()
142 assertEquals("u5 returns a wrong protocol", "file", u5.getProtocol()); in test_ConstructorLjava_lang_String()
149 assertEquals("u5a returns a wrong protocol", "file", u5a.getProtocol()); in test_ConstructorLjava_lang_String()
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DOldURLTest.java70 assertEquals("Assert 0: wrong protocol", "http", testURL.getProtocol()); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String()
154 assertEquals("Assert 0: wrong protocol", "ftp", testURL.getProtocol()); in testURLString()
179 .getProtocol()); in testURLURLString()
184 assertEquals(gamelanNetwork.getProtocol(), gamelanNetworBottom2.getProtocol()); in testURLURLString()
192 gamelanNetworkBottom3.getProtocol()); in testURLURLString()
210 assertTrue("someFancyNewProt".equalsIgnoreCase(u.getProtocol())); in testURLURLString()
446 assertTrue("http".equalsIgnoreCase(testHTTPURL.getProtocol())); in testGetProtocol()
447 assertTrue("https".equalsIgnoreCase(testHTTPSURL.getProtocol())); in testGetProtocol()
448 assertTrue("ftp".equalsIgnoreCase(testFTPURL.getProtocol())); in testGetProtocol()
449 assertTrue("file".equalsIgnoreCase(testFile.getProtocol())); in testGetProtocol()
[all …]
DURLTest.java46 assertEquals("http", url.getProtocol()); in testUrlParts()
264 asList(url.getProtocol(), url.getHost(), url.getPort(), url.getAuthority(), in assertFields()
305 assertEquals("http", url.getProtocol()); in testNoHost()
326 assertEquals("http", url.getProtocol()); in testEmptyHostAndNoPath()
340 assertEquals("http", url.getProtocol()); in testNoHostAndNoPath()
731 assertEquals("http", url.getProtocol()); in testComposeUrl()
740 assertEquals("http", url.getProtocol()); in testComposeUrlWithNullHost()
839 assertEquals("http", url.getProtocol()); in testUrlDoesNotEncodeParts()
849 assertEquals("http", url.getProtocol()); in testSchemeCaseIsCanonicalized()
/libcore/ojluni/src/main/java/java/net/
DURLStreamHandler.java124 String protocol = u.getProtocol(); in parseURL()
416 u.getProtocol(), in hashCode()
435 if (!((u1.getProtocol() == u2.getProtocol()) || in sameFile()
436 (u1.getProtocol() != null && in sameFile()
437 u1.getProtocol().equalsIgnoreCase(u2.getProtocol())))) in sameFile()
513 int len = u.getProtocol().length() + 1; in toExternalForm()
528 result.append(u.getProtocol()); in toExternalForm()
574 u.set(u.getProtocol(), host, port, authority, userInfo, path, query, ref); in setURL()
DURLClassLoader.java680 } else if ((p == null) && (url.getProtocol().equals("file"))) { in getPermissions()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLContext1Test.java107 sslContext.getProtocol()); in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
125 assertNull("Incorrect protocol", sslContext.getProtocol()); in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
205 sslContext.getProtocol()); in test_getInstanceLjava_lang_String01()
322 validValues[i], sslContext.getProtocol()); in test_getInstanceLjava_lang_StringLjava_lang_String04()
386 assertEquals("Invalid protocol", validValues[i], sslContext.getProtocol()); in test_getInstanceLjava_lang_StringLjava_security_Provider03()
403 defaultProtocol, sslContext.getProtocol()); in test_getProtocol()
406 assertNull("Incorrect protocol", sslContext.getProtocol()); in test_getProtocol()
409 defaultProtocol, sslContext.getProtocol()); in test_getProtocol()
412 defaultProtocol, sslContext.getProtocol()); in test_getProtocol()
415 defaultProtocol, sslContext.getProtocol()); in test_getProtocol()
DSSLContext2Test.java171 assertEquals("Incorrect protocol", sslC.getProtocol(), validValues[i]); in test_getInstanceLjava_lang_String()
235 assertEquals("Incorrect protocol", sslC.getProtocol(), validValues[i]); in test_getInstanceLjava_lang_StringLjava_lang_String()
281 assertEquals("Incorrect protocol", sslC.getProtocol(), validValues[i]); in test_getInstanceLjava_lang_StringLjava_security_Provider()
DSSLSessionBindingEventTest.java184 public String getProtocol() { in getProtocol() method in MySSLSession
DSSLSessionTest.java166 assertEquals("TLSv1.3", clientSession.getProtocol()); in test_getProtocol()
647 assertEquals(a.getProtocol(), b.getProtocol()); in assertSSLSessionsEqual()
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DHandler.java62 if (!u1.getProtocol().equals("jar") || !u2.getProtocol().equals("jar")) in sameFile()
99 String protocol = u.getProtocol(); in hashCode()
DURLJarFile.java99 if (url.getProtocol().equalsIgnoreCase("file")) { in isFileURL()
/libcore/ojluni/src/main/java/javax/net/ssl/
DSSLSession.java334 public String getProtocol(); in getProtocol() method
DSSLContext.java294 public final String getProtocol() { in getProtocol() method in SSLContext
/libcore/ojluni/src/main/java/sun/net/util/
DURLUtil.java47 String protocol = url.getProtocol(); in urlNoFragString()
/libcore/support/src/test/java/libcore/javax/net/ssl/
DFakeSSLSession.java83 public String getProtocol() { in getProtocol() method in FakeSSLSession
/libcore/ojluni/src/main/java/javax/crypto/
DJarVerifier.java81 final URL url = jarURL.getProtocol().equalsIgnoreCase("jar")? in verify()
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
DmySSLSession.java117 public String getProtocol() { in getProtocol() method in mySSLSession
/libcore/dom/src/test/java/org/w3c/domts/
DDOMTest.java85 if (resolvedURI.getProtocol() != null) { in resolveURI()
/libcore/luni/src/test/java/tests/org/w3c/dom/
DDOMTestCase.java57 if (resolvedURI.getProtocol() != null) { in resolveURI()
/libcore/ojluni/src/main/java/sun/misc/
DURLClassPath.java578 if ("file".equals(url.getProtocol())) {
882 return "file".equals(url.getProtocol());
1257 if (!"file".equals(url.getProtocol())) {
/libcore/ojluni/annotations/hiddenapi/java/net/
DURL.java120 public java.lang.String getProtocol() { in getProtocol() method in URL
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/
DFtpURLConnection.java189 + url.getProtocol() + "://" + host in FtpURLConnection()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
DURLConnectionTest.java1235 assertEquals("file", con1.getURL().getProtocol()); // http://b/119607552
1257 assertEquals("file", con1.getURL().getProtocol()); // http://b/119607552
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DDefaultHostnameVerifierTest.java520 public String getProtocol() { in getProtocol() method in DefaultHostnameVerifierTest.StubSSLSession
/libcore/ojluni/src/main/java/sun/net/www/
DParseUtil.java276 String protocol = url.getProtocol(); in toURI()