/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
D | URLConnectionTest.java | 42 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 …]
|
D | ContentHandlerTest.java | 23 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/ |
D | Handler.java | 21 import java.net.URLConnection; 30 @Override protected URLConnection openConnection(URL url) throws IOException { in openConnection() 34 public static class HandlerURLConnection extends URLConnection {
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | URLStreamHandlerFactoryTest.java | 21 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()
|
D | OldFileNameMapTest.java | 22 import java.net.URLConnection; 26 FileNameMap map = URLConnection.getFileNameMap(); in test_getContentTypeFor()
|
D | FtpURLConnectionTest.java | 40 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()
|
D | OldCookieHandlerTest.java | 26 import java.net.URLConnection; 69 URLConnection connection = server.getUrl("/path/foo").openConnection(); in test_get_put()
|
D | OldURLTest.java | 34 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()
|
D | OldURLStreamHandlerTest.java | 25 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()
|
D | URLConnectionTest.java | 59 import java.net.URLConnection; 372 assertEquals("image/jpeg", URLConnection.guessContentTypeFromName("someFile.jpg")); in bug10100() 373 assertEquals("application/pdf", URLConnection.guessContentTypeFromName("stuff.pdf")); in bug10100() 417 URLConnection connection1 = server.getUrl("/").openConnection(); in connectionsArePooledWithoutExplicitDisconnect() 420 URLConnection connection2 = server.getUrl("/").openConnection(); in connectionsArePooledWithoutExplicitDisconnect() 870 assertThrowsNpe(() -> URLConnection.getFileNameMap().getContentTypeFor(null)); in getFileNameMap_null() 871 assertThrowsNpe(() -> URLConnection.guessContentTypeFromName(null)); in getFileNameMap_null() 978 String actual = URLConnection.getFileNameMap().getContentTypeFor(fileName); in checkFileNameMap() 983 assertEquals(fileName, expected, URLConnection.guessContentTypeFromName(fileName)); in checkFileNameMap() 1396 URLConnection.setDefaultRequestProperty("X-testSetDefaultRequestProperty", "A"); in defaultRequestProperty() [all …]
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/ |
D | Handler.java | 29 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()
|
D | FileURLConnection.java | 48 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/org/apache/harmony/luni/tests/java/net/test_protocol/ |
D | Handler.java | 22 import java.net.URLConnection; 26 protected URLConnection openConnection(URL u) throws IOException { in openConnection()
|
/libcore/ojluni/src/main/java/java/net/ |
D | ContentHandler.java | 81 abstract public Object getContent(URLConnection urlc) throws IOException; in getContent() 100 public Object getContent(URLConnection urlc, Class[] classes) throws IOException { in getContent()
|
D | JarURLConnection.java | 137 public abstract class JarURLConnection extends URLConnection { 146 protected URLConnection jarFileURLConnection;
|
D | ResponseCache.java | 162 public abstract CacheRequest put(URI uri, URLConnection conn) throws IOException; in put()
|
/libcore/ojluni/annotations/hiddenapi/sun/net/www/ |
D | URLConnection.java | 29 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/ |
D | Handler.java | 50 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/ |
D | ClassPathURLStreamHandlerTest.java | 27 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/ |
D | ResponseCacheTest.java | 25 import java.net.URLConnection; 65 public CacheRequest put(URI arg0, URLConnection arg1) in put()
|
/libcore/ojluni/src/main/java/sun/net/www/ |
D | URLConnection.java | 37 abstract public class URLConnection extends java.net.URLConnection { class 51 public URLConnection (URL u) { in URLConnection() method in URLConnection
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/ |
D | JarFileFactory.java | 31 import java.net.URLConnection; 59 URLConnection getConnection(JarFile jarFile) throws IOException { in getConnection() 154 URLConnection uc = getConnection(jarFile); in getPermission()
|
D | JarURLConnection.java | 33 import java.net.URLConnection; 65 private URLConnection jarFileURLConnection;
|
/libcore/luni/src/main/java/libcore/io/ |
D | ClassPathURLStreamHandler.java | 27 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/ |
D | FileURLConnectionTest.java | 26 import java.net.URLConnection;
|