Home
last modified time | relevance | path

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

123

/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
DURLConnectionTest.java42 import java.net.URLConnection;
64 private URLConnection fileURLCon;
168 static class MockURLConnection extends URLConnection {
181 protected URLConnection openConnection(URL u) throws IOException { in openConnection()
209 URLConnection uc;
211 URLConnection uc2;
213 URLConnection uc3;
368 URLConnection fakeCon = url.openConnection();
444 URLConnection gifURLCon = openGifURLConnection();
470 URLConnection htmlFileCon = openHTMLFile();
[all …]
DContentHandlerTest.java23 import java.net.URLConnection;
34 URLConnection conn = new URL("http://www.apache.org").openConnection(); in test_getContent()
57 public Object getContent(URLConnection uConn) throws IOException { in getContent()
/libcore/luni/src/test/java/libcore/java/net/customstreamhandler/http/
DHandler.java21 import java.net.URLConnection;
30 @Override protected URLConnection openConnection(URL url) throws IOException { in openConnection()
34 public static class HandlerURLConnection extends URLConnection {
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/
DHandler.java29 import java.net.URLConnection;
70 public synchronized URLConnection openConnection(URL u) in openConnection()
75 public synchronized URLConnection openConnection(URL u, Proxy p) in openConnection()
87 URLConnection uc; in openConnection()
110 protected URLConnection createFileURLConnection(URL u, File file) in createFileURLConnection()
DFileURLConnection.java48 public class FileURLConnection extends URLConnection {
119 FileNameMap map = java.net.URLConnection.getFileNameMap(); in initializeHeaders()
192 FileNameMap map = java.net.URLConnection.getFileNameMap(); in getInputStream()
/libcore/luni/src/test/java/libcore/java/net/
DURLStreamHandlerFactoryTest.java21 import java.net.URLConnection;
60 URLConnection connection = url.openConnection(); in testCreateURLStreamHandler()
93 URLConnection connection = new URL("http://android.com/").openConnection(); in testInstallCustomProtocolHandler()
106 URLConnection connection1 = new URL("http://android.com/").openConnection(); in testFirstUseIsCached()
112 URLConnection connection2 = new URL("http://android.com/").openConnection(); in testFirstUseIsCached()
DOldFileNameMapTest.java22 import java.net.URLConnection;
26 FileNameMap map = URLConnection.getFileNameMap(); in test_getContentTypeFor()
DFtpURLConnectionTest.java40 import java.net.URLConnection;
92 URLConnection connection = fileUrl.openConnection(); in testInputUrl()
103 URLConnection noPasswordConnection = noPasswordUrl.openConnection(); in testInputUrl_missingPassword()
114 URLConnection connection = fileUrl.openConnection(); in checkInputUrl_invalidUserOrPassword()
129 URLConnection connection = fileUrl.openConnection(); in testOutputUrl()
142 URLConnection connection = fileUrl.openConnection(proxy); in testConnectOverProxy_noProxy()
181 URLConnection connection = fileUrl.openConnection(proxy); in testConnectOverProxy_explicit_http_uses_direct_connection()
205 URLConnection connection = fileUrl.openConnection(); in testConnectOverProxy_implicit_http_fails()
226 URLConnection connection = url.openConnection(); in testInputUrlWithSpaces()
DOldCookieHandlerTest.java26 import java.net.URLConnection;
69 URLConnection connection = server.getUrl("/path/foo").openConnection(); in test_get_put()
DOldURLTest.java34 import java.net.URLConnection;
339 URLConnection conn = u.openConnection(); in testOpenConnection()
553 protected URLConnection openConnection(URL u) in openConnection()
606 protected URLConnection openConnection(URL arg0) throws IOException { in openConnection()
608 URLConnection con = arg0.openConnection(); in openConnection()
637 public URLConnection openConnection(URL arg0) throws IOException { in openConnection()
639 URLConnection con = arg0.openConnection(); in openConnection()
648 public URLConnection openConnection(URL arg0, Proxy proxy) in openConnection()
DOldURLStreamHandlerTest.java25 import java.net.URLConnection;
176 @Override protected URLConnection openConnection(URL arg0) throws IOException { in openConnection()
200 @Override public URLConnection openConnection(URL u, Proxy p) throws IOException { in openConnection()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/test_protocol/
DHandler.java22 import java.net.URLConnection;
26 protected URLConnection openConnection(URL u) throws IOException { in openConnection()
/libcore/ojluni/src/main/java/java/net/
DContentHandler.java81 abstract public Object getContent(URLConnection urlc) throws IOException; in getContent()
100 public Object getContent(URLConnection urlc, Class[] classes) throws IOException { in getContent()
DJarURLConnection.java137 public abstract class JarURLConnection extends URLConnection {
146 protected URLConnection jarFileURLConnection;
DResponseCache.java162 public abstract CacheRequest put(URI uri, URLConnection conn) throws IOException; in put()
/libcore/ojluni/annotations/hiddenapi/sun/net/www/
DURLConnection.java29 public abstract class URLConnection extends java.net.URLConnection { class
32 public URLConnection(java.net.URL u) { in URLConnection() method in URLConnection
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/
DHandler.java50 protected java.net.URLConnection openConnection(URL u) in openConnection()
55 protected java.net.URLConnection openConnection(URL u, Proxy p) in openConnection()
/libcore/luni/src/test/java/libcore/libcore/io/
DClassPathURLStreamHandlerTest.java27 import java.net.URLConnection;
174 URLConnection standardUrlConnection = standardUrl.openConnection(); in assertOpenConnectionOk()
178 URLConnection actualUrlConnection = actualUrl.openConnection(); in assertOpenConnectionOk()
183 private static void assertBehaviorSame(URLConnection standardURLConnection, in assertBehaviorSame()
184 URLConnection actualUrlConnection) throws IOException { in assertBehaviorSame()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DResponseCacheTest.java25 import java.net.URLConnection;
65 public CacheRequest put(URI arg0, URLConnection arg1) in put()
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DJarFileFactory.java31 import java.net.URLConnection;
59 URLConnection getConnection(JarFile jarFile) throws IOException { in getConnection()
154 URLConnection uc = getConnection(jarFile); in getPermission()
/libcore/ojluni/src/main/java/sun/net/www/
DURLConnection.java37 abstract public class URLConnection extends java.net.URLConnection { class
51 public URLConnection (URL u) { in URLConnection() method in URLConnection
/libcore/luni/src/main/java/libcore/net/http/
DHttpURLConnectionFactory.java28 import java.net.URLConnection;
106 public URLConnection openConnection(@NonNull URL url, @NonNull SocketFactory socketFactory, in openConnection()
/libcore/luni/src/test/java/libcore/libcore/net/http/
DHttpURLConnectionFactoryTest.java35 import java.net.URLConnection;
63 final URLConnection connection = factory.openConnection(url, SocketFactory.getDefault(), in testOpenConnection()
/libcore/luni/src/main/java/libcore/io/
DClassPathURLStreamHandler.java27 import java.net.URLConnection;
82 protected URLConnection openConnection(URL url) throws IOException { in openConnection()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/internal/net/www/protocol/file/
DFileURLConnectionTest.java26 import java.net.URLConnection;

123