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

123

/libcore/ojluni/src/main/java/sun/misc/
H A DFileURLMapper.java45 URL url; field in class:FileURLMapper
48 public FileURLMapper (URL url) { argument
49 this.url = url;
61 String host = url.getHost();
63 path = url.getFile();
/libcore/ojluni/src/main/java/sun/net/
H A DProgressMeteringPolicy.java39 public boolean shouldMeterInput(URL url, String method); argument
H A DProgressEvent.java38 private URL url; field in class:ProgressEvent
53 public ProgressEvent(ProgressSource source, URL url, String method, String contentType, ProgressSource.State state, long progress, long expected) { argument
55 this.url = url;
68 return url;
110 return getClass().getName() + "[url=" + url + ", method=" + method + ", state=" + state
H A DProgressMonitor.java97 public boolean shouldMeterInput(URL url, String method) { argument
98 return meteringPolicy.shouldMeterInput(url, method);
243 public boolean shouldMeterInput(URL url, String method) argument
/libcore/ojluni/src/main/java/sun/net/util/
H A DURLUtil.java35 * Returns a string form of the url suitable for use as a key in HashMap/Sets.
44 public static String urlNoFragString(URL url) { argument
47 String protocol = url.getProtocol();
55 String host = url.getHost();
61 int port = url.getPort();
65 port = url.getDefaultPort();
72 String file = url.getFile();
/libcore/support/src/test/java/tests/support/
H A DSupport_ClassLoaderDalvik.java40 public ClassLoader getClassLoader(URL url, ClassLoader parent) { argument
41 return new DexClassLoader(url.getPath(), tmp.getAbsolutePath(),
H A DSupport_ClassLoader.java29 public abstract ClassLoader getClassLoader(URL url, ClassLoader parent); argument
31 public static ClassLoader getInstance(URL url, ClassLoader parent) { argument
44 return factory.getClassLoader(url, parent);
56 public ClassLoader getClassLoader(URL url, ClassLoader parent) { argument
57 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/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/ojluni/src/main/java/java/net/
H A DJarURLConnection.java43 * jar:<url>!/{entry}
62 * URL url = new URL("jar:file:/home/duke/duke.jar!/");
63 * JarURLConnection jarConnection = (JarURLConnection)url.openConnection();
87 * <p>When constructing a JAR url via {@code new URL(context, spec)},
110 * <dd>url:<b>jar:http://www.foo.com/bar/jar.jar!/baz/entry.txt</b>
115 * <dd>url:<b>jar:http://www.foo.com/bar/jar.jar!/baz/entry.txt</b>
120 * <dd>url:<b>jar:http://www.foo.com/bar/jar.jar!/entry.txt</b>
150 * @param url the URL
156 protected JarURLConnection(URL url) throws MalformedURLException { argument
157 super(url);
164 parseSpecs(URL url) argument
[all...]
/libcore/ojluni/src/main/java/java/security/
H A DCodeSource.java44 public CodeSource(URL url, java.security.cert.Certificate certs[]) { } argument
46 public CodeSource(URL url, CodeSigner[] signers) { } argument
/libcore/ojluni/src/main/java/java/sql/
H A DDriver.java73 * @param url the URL of the database to which to connect
81 Connection connect(String url, java.util.Properties info) argument
90 * @param url the URL of the database
95 boolean acceptsURL(String url) throws SQLException; argument
109 * @param url the URL of the database to which to connect
117 DriverPropertyInfo[] getPropertyInfo(String url, java.util.Properties info) argument
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/
H A DHandler.java45 private String getHost(URL url) { argument
46 String host = url.getHost();
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
H A DJarFileFactory.java45 /* the url to file cache */
48 /* the file to url cache */
70 public JarFile get(URL url) throws IOException { argument
71 return get(url, true);
74 JarFile get(URL url, boolean useCaches) throws IOException { argument
81 result = getCachedJarFile(url);
84 local_result = URLJarFile.getJarFile(url, this);
86 result = getCachedJarFile(url);
88 fileCache.put(URLUtil.urlNoFragString(url), local_result);
89 urlCache.put(local_result, url);
120 getCachedJarFile(URL url) argument
[all...]
H A DHandler.java126 protected void parseURL(URL url, String spec, argument
136 file = url.getFile();
141 // 2. relative (i.e. url + foo/bar/baz.ext)
142 // 3. anchor-only (i.e. url + #foo), which we already did (refOnly)
152 file = parseContextSpec(url, spec);
162 setURL(url, "jar", "", -1, file, ref);
166 URL url = null;
175 url = new URL(innerSpec);
177 throw new NullPointerException("invalid url: " +
183 private String parseContextSpec(URL url, Strin argument
[all...]
/libcore/benchmarks/src/benchmarks/regression/
H A DURLConnectionBenchmark.java39 private URL url; field in class:URLConnectionBenchmark
63 url = server.getUrl("/");
81 HttpURLConnection connection = (HttpURLConnection) url.openConnection();
82 // 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());
/libcore/luni/src/main/java/libcore/io/
H A DClassPathURLStreamHandler.java83 protected URLConnection openConnection(URL url) throws IOException { argument
84 return new ClassPathURLConnection(url);
135 public ClassPathURLConnection(URL url) throws MalformedURLException { argument
136 super(url);
146 "URL does not correspond to an entry in the zip file. URL=" + url
/libcore/luni/src/test/java/libcore/java/net/
H A DOldURLClassLoaderTest.java185 public void addURL(URL url) { argument
186 super.addURL(url);
191 URL url)
193 return super.definePackage(name, man, url);
269 String url;
272 url = "file:" + path;
274 url = path;
276 url = "jar:file:" + path + "!/";
278 urlList.add(new URL(url));
189 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/ojluni/src/main/java/javax/net/ssl/
H A DHttpsURLConnection.java63 * @param url the URL
65 protected HttpsURLConnection(URL url) { argument
66 super(url);

Completed in 491 milliseconds

123