Home
last modified time | relevance | path

Searched defs:url (Results 1 – 25 of 62) sorted by relevance

123

/libcore/luni/src/test/java/libcore/java/net/
DURLTest.java31 URL url = new URL("http://username:password@host:8080/directory/file?query#ref"); in testUrlParts() local
45 URL url = new URL("http://www.google.com:80/example?language[id]=2"); in testExplicitPort() local
107 URL url = new URL("http://user:pass@host/path/file?query#hash"); in testUrlSerialization() local
123 final URL url = new URL("http://user:pass@host/path/file?query#hash"); in testUrlSerializationWithHashCode() local
124 new SerializationTester<URL>(url, s) { in testUrlSerializationWithHashCode() argument
140 URL url = new URL("http:///path"); in testOmittedHost() local
147 URL url = new URL("http:/path"); in testNoHost() local
161 URL url = new URL("http://host"); in testNoPath() local
168 URL url = new URL("http://"); in testEmptyHostAndNoPath() local
182 URL url = new URL("http:"); in testNoHostAndNoPath() local
[all …]
DOldJarURLConnectionTest.java132 URL url = new URL("jar:file:///bar.jar!/foo.jar!/Bugs/HelloWorld.class"); in test_getEntryName() local
160 URL url = createContent("lf.jar", "missing"); in test_getJarFile() local
229 URL url = new URL("jar:file:" + file.getPath() + "!/HasAttributes.txt"); in test_setUseCaches() local
261 URL url = new URL("jar:file:///bar.jar!/foo.jar!/Bugs/HelloWorld.class"); in test_getJarFileURL() local
301 URL url = new URL("jar:file:" + jarFileName + "!/" + entry); in test_getInputStream_DeleteJarFileUsingURLConnection() local
314 URL url = new URL("jar:file:" + jarFileName + "!/" + entry); in test_Constructor() local
DURLConnectionTest.java416 URL url = server.getUrl("/"); in testGetResponseCodeNoResponseBody() local
529 URL url = new URL("http://android.com/foo"); in testConnectViaProxy() local
580 URL url = server.getUrl("/foo"); in testConnectViaDirectProxyToHttps() local
622 URL url = new URL("https://android.com/foo"); in testConnectViaHttpProxyToHttps() local
662 URL url = new URL("https://android.com/foo"); in testConnectViaHttpProxyToHttpsUsingBadProxyAndHttpResponseCache() local
696 URL url = new URL("https://android.com/foo"); in testProxyConnectIncludesProxyHeadersOnly() local
731 URL url = new URL("https://android.com/foo"); in testProxyAuthenticateOnConnect() local
763 URL url = new URL("https://android.com/foo"); in testProxyWithConnectionClose() local
888 URL url = server.getUrl("/"); in testUnauthorizedResponseHandling() local
DOldURLStreamHandlerTest.java108 URL url = new URL("http://test.org"); in test_parseURLLjava_net_URLLjava_lang_StringII() local
134 URL url = new URL("http://test.org"); in test_setURL1() local
144 URL url = new URL("http://test.org"); in test_setURL2() local
204 @Override public void parseURL(URL url, String spec, int start, int limit) { in parseURL()
DOldURLTest.java245 URL url = new URL("http://web2.javasoft.com/some+file.html"); in testSameFile() local
483 URL url = new URL("http://www.example.com"); in testGetPath() local
494 URL url = new URL("ftp://myUser:password@host.dom/etc/motd"); in testGetUserInfo() local
504 URL url = new URL("http://www.java2s.com:8080"); in testGetAuthority() local
617 public void parse(URL url, String spec, int start, int end) { in parse()
786 URL url = new URL(new URL(strURL), ref); in test_toExternalForm_Relative() local
792 URL url = new URL(strURL); in test_toExternalForm_Absolute() local
DOldURLClassLoaderTest.java174 public void addURL(URL url) { in addURL()
180 URL url) in definePackage()
258 String url; in getURLClassLoader() local
DURLStreamHandlerFactoryTest.java56 URL url = new URL("http://android.com/"); in testCreateURLStreamHandler() local
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/internal/net/www/protocol/file/
DFileURLConnectionTest.java44 final URL url = loader.getResource(resourceName); in createTempFileWithContent() local
66 URL url = createTempFileWithContent(resourceName); in getContentType() local
83 URL url = createTempFileWithContent(RESOURCE_NAME); in testGetInputStream() local
94 URL url = createTempFileWithContent(RESOURCE_NAME); in testGetInputStream_localHost() local
103 URL url = createTempFileWithContent(RESOURCE_NAME); in testHeaderFunctions() local
124 URL url = createTempFileWithContent(RESOURCE_NAME); in testHeader_BoundaryCheck() local
/libcore/support/src/test/java/tests/support/
DSupport_ClassLoader.java31 public abstract ClassLoader getClassLoader(URL url, ClassLoader parent); in getClassLoader()
33 public static ClassLoader getInstance(URL url, ClassLoader parent) { in getInstance()
68 public ClassLoader getClassLoader(URL url, ClassLoader parent) { in getClassLoader()
80 public ClassLoader getClassLoader(URL url, ClassLoader parent) { in getClassLoader()
DSupport_GetLocal.java37 public static File getLocalFile(String url) throws IOException, in getLocalFile()
58 public static File getExternalLocalFile(String url) throws IOException, in getExternalLocalFile()
78 static ByteArrayInputStream getStream(String url) throws IOException, in getStream()
/libcore/luni/src/main/java/java/sql/
DDriver.java48 public boolean acceptsURL(String url) throws SQLException; in acceptsURL()
66 public Connection connect(String url, Properties info) throws SQLException; in connect()
105 public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) in getPropertyInfo()
DDriverManager.java143 public static Connection getConnection(String url) throws SQLException { in getConnection()
165 public static Connection getConnection(String url, Properties info) throws SQLException { in getConnection()
204 public static Connection getConnection(String url, String user, String password) in getConnection()
226 public static Driver getDriver(String url) throws SQLException { in getDriver()
/libcore/luni/src/main/java/libcore/net/url/
DFileHandler.java42 public URLConnection openConnection(URL url) throws IOException { in openConnection()
64 public URLConnection openConnection(URL url, Proxy proxy) throws IOException { in openConnection()
97 protected void parseURL(URL url, String spec, int start, int end) { in parseURL()
DJarHandler.java57 protected void parseURL(URL url, String spec, int start, int limit) { in parseURL()
97 protected String toExternalForm(URL url) { in toExternalForm()
DFtpHandler.java55 protected URLConnection openConnection(URL url, Proxy proxy) throws IOException { in openConnection()
/libcore/luni/src/test/java/libcore/java/net/customstreamhandler/http/
DHandler.java30 @Override protected URLConnection openConnection(URL url) throws IOException { in openConnection()
35 protected HandlerURLConnection(URL url) { in HandlerURLConnection()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DHttpsURLConnectionTest.java58 URL url = new URL("https://localhost:55555"); in test_getCipherSuite() local
74 URL url = new URL("https://localhost:55555"); in test_getLocalCertificates() local
126 URL url = new URL("https://localhost:55555"); in test_getLocalPrincipal() local
144 URL url = new URL("https://localhost:55555"); in test_getPeerPrincipal() local
167 URL url = new URL("https://localhost:55555"); in test_getServerCertificates() local
266 public MyHttpsURLConnection(URL url) { in MyHttpsURLConnection()
270 public MyHttpsURLConnection(URL url, String type) { in MyHttpsURLConnection()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DJarURLConnectionTest.java78 URL url = copyAndOpenResourceStream("lf.jar", "foo.jar!/Bugs/HelloWorld.class"); in test_getEntryName() local
99 URL url = copyAndOpenResourceStream("lf.jar", "missing"); in test_getJarFile() local
161 URL url = new URL("jar:file:" + file.getPath() + "!/HasAttributes.txt"); in test_setUseCaches() local
190 URL url = new URL("jar:file:///bar.jar!/foo.jar!/Bugs/HelloWorld.class"); in test_getJarFileURL() local
219 URL url = new URL("jar:file:" + file.getAbsolutePath() + "!/entry.txt"); in test_getInputStream_DeleteJarFileUsingURLConnection() local
305 … URL url = copyAndOpenResourceStream("url-test.jar", "test%20folder%20for%20url%20test/test"); in test_getURLEncodedEntry() local
DURLTest.java868 URL url = new URL("http", ipv6Host, -1, "myfile"); in test_getHost() local
1066 URL url = new URL(strURL); in test_toExternalForm_Absolute() local
1077 URL url = new URL(new URL(strURL), ref); in test_toExternalForm_Relative() local
1103 URL url = new URL(null, "foobar://example.com/foobar", myHandler); in test_toExternalForm_Null() local
1129 public void parse(URL url, String spec, int start, int end) { in parse()
/libcore/luni/src/main/java/java/net/
DURLClassLoader.java71 static IndexFile readIndexFile(JarFile jf, JarEntry indexEntry, URL url) { in readIndexFile()
123 private static URL getParentURL(URL url) throws IOException { in getParentURL()
146 URL url; field in URLClassLoader.URLHandler
149 public URLHandler(URL url) { in URLHandler()
245 public URLJarHandler(URL url, URL jarURL, JarFile jf, String prefixName) { in URLJarHandler()
254 public URLJarHandler(URL url, URL jarURL, JarFile jf, String prefixName, IndexFile index) { in URLJarHandler()
403 private synchronized URLHandler getSubHandler(URL url) { in getSubHandler()
422 private URLHandler createURLSubJarHandler(URL url) { in createURLSubJarHandler()
456 public URLFileHandler(URL url) { in URLFileHandler()
564 protected void addURL(URL url) { in addURL()
[all …]
DURLStreamHandler.java85 protected void parseURL(URL url, String spec, int start, int end) { in parseURL()
261 protected String toExternalForm(URL url) { in toExternalForm()
265 String toExternalForm(URL url, boolean escapeIllegalCharacters) { in toExternalForm()
323 protected InetAddress getHostAddress(URL url) { in getHostAddress()
338 protected int hashCode(URL url) { in hashCode()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
DHttpsURLConnectionTest.java139 URL url = webServer.getUrl("/"); in testHttpsConnection() local
172 URL url = webServer.getUrl("/"); in testHttpsConnection_Not_Found_Response() local
217 URL url = webServer.getUrl("/"); in testSetDefaultSSLSocketFactory() local
257 URL url = webServer.getUrl("/"); in testSetSSLSocketFactory() local
290 URL url = new URL("https://localhost:55555"); in testUnconnectedStateParameters() local
333 URL url = webServer.getUrl("/"); in testSetHostnameVerifier() local
369 URL url = webServer.getUrl("/"); in test_doOutput() local
408 URL url = new URL("https://requested.host:55556/requested.data"); in testProxyConnection() local
457 URL url = new URL("https://requested.host:55555/requested.data"); in testProxyAuthConnection() local
490 URL url = new URL("https://requested.host:55555/requested.data"); in testConsequentProxyConnection() local
[all …]
/libcore/luni/src/test/java/libcore/xml/
DJaxenXPathTestSuite.java90 String url = document.getAttribute("url"); in suite() local
103 private static void contextToTestSuite(TestSuite suite, String url, in contextToTestSuite()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
DHttpURLConnectionTest.java191 URL url = new URL("http://localhost:" + server.port()); in testUsingProxy() local
231 URL url = new URL("http://localhost:" + server.port()); in testUsingProxySelector() local
285 URL url = new URL("http://remotehost:55555/requested.data"); in testProxyAuthorization() local
/libcore/support/src/test/java/tests/support/resource/
DSupport_Resources.java69 URL url = null; in getURL() local
152 public static File getExternalLocalFile(String url) throws IOException { in getExternalLocalFile()

123