Searched defs:url (Results 1 - 25 of 43) sorted by relevance

12

/libcore/luni/src/main/java/libcore/net/url/
H A DFtpHandler.java18 package libcore.net.url;
41 * @param url
45 * @return a connection to the resource pointed by this url.
55 protected URLConnection openConnection(URL url, Proxy proxy) throws IOException { argument
56 if (url == null || proxy == null) {
57 throw new IllegalArgumentException("url == null || proxy == null");
59 return new FtpURLConnection(url, proxy);
H A DFileHandler.java18 package libcore.net.url;
36 * @return A connection to the resource pointed by this url.
37 * @param url
42 public URLConnection openConnection(URL url) throws IOException { argument
43 return openConnection(url, null);
50 * @param url
54 * @return a connection to the resource pointed by this url.
59 * if the url argument is null.
64 public URLConnection openConnection(URL url, Proxy proxy) throws IOException { argument
65 if (url
97 parseURL(URL url, String spec, int start, int end) argument
[all...]
H A DJarHandler.java18 package libcore.net.url;
32 * this url.
47 * @param url
57 protected void parseURL(URL url, String spec, int start, int limit) { argument
58 String file = url.getFile();
81 // check that the embedded url is valid
86 setURL(url, "jar", "", -1, null, null, file, null, null);
90 * Build and return the externalized string representation of url.
92 * @return String the externalized string representation of url
93 * @param url
97 toExternalForm(URL url) argument
[all...]
H A DFileURLConnection.java18 package libcore.net.url;
55 * @param url The URL this connection is connected to
57 public FileURLConnection(URL url) { argument
58 super(url);
59 filename = url.getFile();
126 String result = guessContentTypeFromName(url.getFile());
H A DJarURLConnectionImpl.java18 package libcore.net.url;
63 * @param url
70 public JarURLConnectionImpl(URL url) throws MalformedURLException, IOException { argument
71 super(url);
236 if (url.getFile().endsWith("!/")) {
H A DFtpURLInputStream.java18 package libcore.net.url;
H A DUrlUtils.java17 package libcore.net.url;
H A DFtpURLConnection.java18 package libcore.net.url;
104 * @param url
106 protected FtpURLConnection(URL url) { argument
107 super(url);
108 hostName = url.getHost();
109 String parse = url.getUserInfo();
121 uri = url.toURI();
130 * @param url
133 protected FtpURLConnection(URL url, Proxy proxy) { argument
134 this(url);
[all...]
/libcore/luni/src/test/java/libcore/net/url/
H A DUrlUtilsTest.java17 package libcore.net.url;
/libcore/luni/src/test/java/libcore/java/net/customstreamhandler/http/
H A DHandler.java30 @Override protected URLConnection openConnection(URL url) throws IOException { argument
31 return new HandlerURLConnection(url);
35 protected HandlerURLConnection(URL url) { argument
36 super(url);
/libcore/support/src/test/java/tests/support/
H A DSupport_ClassLoader.java31 public abstract ClassLoader getClassLoader(URL url, ClassLoader parent); argument
33 public static ClassLoader getInstance(URL url, ClassLoader parent) { argument
45 return factory.getClassLoader(url, parent);
68 public ClassLoader getClassLoader(URL url, ClassLoader parent) { argument
69 return new DexClassLoader(url.getPath(), tmp.getAbsolutePath(),
80 public ClassLoader getClassLoader(URL url, ClassLoader parent) { argument
81 return new URLClassLoader(new URL[] { url }, parent);
H A DSupport_GetLocal.java37 public static File getLocalFile(String url) throws IOException, argument
39 url = Support_Resources.RESOURCE_PACKAGE + url;
40 File temp = cache.get(url);
42 InputStream in = Support_GetLocal.class.getResourceAsStream(url);
53 cache.put(url, temp);
58 public static File getExternalLocalFile(String url) throws IOException, argument
60 File temp = cache.get(url);
62 InputStream in = new URL(url).openStream();
73 cache.put(url, tem
78 getStream(String url) argument
[all...]
/libcore/luni/src/main/java/java/net/
H A DJarURLConnection.java31 * as follows: <i>jar:{archive-url}!/{entry}</i> where "!/" is called a
60 * @param url
65 protected JarURLConnection(URL url) throws MalformedURLException { argument
66 super(url);
67 file = url.getFile();
72 fileURL = new URL(url.getFile().substring(0,sepIdx));
78 if (url.getRef() != null) {
79 entryName += "#" + url.getRef();
/libcore/luni/src/main/java/java/sql/
H A DDriver.java39 * @param url
48 public boolean acceptsURL(String url) throws SQLException; argument
54 * @param url
66 public Connection connect(String url, Properties info) throws SQLException; argument
90 * @param url
105 public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) argument
/libcore/benchmarks/src/benchmarks/regression/
H A DURLConnectionBenchmark.java41 private URL url; field in class:URLConnectionBenchmark
65 url = server.getUrl("/");
83 HttpURLConnection connection = (HttpURLConnection) url.openConnection();
84 // URLConnection connection = url.openConnection();
/libcore/dom/src/test/java/org/w3c/domts/
H A DBatikTestDocumentBuilderFactory.java126 * @param url url to load
130 public Document load(java.net.URL url) throws DOMTestLoadException { argument
132 java.io.InputStream stream = url.openStream();
135 new Object[] {url.toString(), stream});
H A DDOM4JTestDocumentBuilderFactory.java105 public Document load(java.net.URL url) throws DOMTestLoadException { argument
106 if (url == null) {
107 throw new NullPointerException("url");
114 new Object[] {url});
H A DDOMTestDocumentBuilderFactory.java64 public abstract Document load(java.net.URL url) throws DOMTestLoadException; argument
H A DJTidyDocumentBuilderFactory.java87 public Document load(java.net.URL url) throws DOMTestLoadException { argument
90 java.io.InputStream stream = url.openStream();
H A DJAXPDOMTestDocumentBuilderFactory.java118 public Document load(java.net.URL url) throws DOMTestLoadException { argument
124 InputStream stream = url.openStream();
125 doc = builder.parse(stream, url.toString());
H A DLSDocumentBuilderFactory.java327 * @param url url to load
331 public Document load(java.net.URL url) throws DOMTestLoadException { argument
334 new Object[] {url.toString()});
/libcore/luni/src/main/java/javax/net/ssl/
H A DHttpsURLConnection.java54 * URL url = new URL("https://www.example.com/");
55 * HttpsURLConnection urlConnection = (HttpsURLConnection) url.openConnection();
88 * URL url = new URL("https://www.example.com/");
89 * HttpsURLConnection urlConnection = (HttpsURLConnection) url.openConnection();
179 * @param url
182 protected HttpsURLConnection(URL url) { argument
183 super(url);
/libcore/luni/src/test/java/libcore/java/net/
H A DOldURLClassLoaderTest.java189 public void addURL(URL url) { argument
190 super.addURL(url);
195 URL url)
197 return super.definePackage(name, man, url);
275 String url;
278 url = "file:" + path;
280 url = path;
282 url = "jar:file:" + path + "!/";
284 urlList.add(new URL(url));
193 definePackage(String name, Manifest man, URL url) argument
/libcore/luni/src/test/java/tests/support/
H A DSupport_SQL.java80 throw new SQLException("Failed to connect. url=" + Support_SQL.sqlUrl + ", sqlLogin="
85 public static Connection getConnection(String url, String login, argument
88 return DriverManager.getConnection(url, login, password);
/libcore/support/src/test/java/tests/support/resource/
H A DSupport_Resources.java69 URL url = null;
75 url = new URL("file:/" + resPath + "/" + fileName);
80 return url.toString();
152 public static File getExternalLocalFile(String url) throws IOException { argument
154 InputStream in = new URL(url).openStream();

Completed in 1069 milliseconds

12