Searched defs:connection (Results 1 - 4 of 4) sorted by relevance
/libcore/luni/src/main/java/java/net/ |
H A D | ResponseCache.java | 75 * @param connection 76 * the connection to fetch the response. 84 public abstract CacheRequest put(URI uri, URLConnection connection) throws IOException; argument
|
/libcore/luni/src/test/java/libcore/sqlite/ |
H A D | QueryTimeoutTest.java | 43 private Connection connection; field in class:QueryTimeoutTest 47 connection = Support_SQL.getConnection(); 58 Database database = ((JDBCConnection) connection).getSQLiteDatabase(); 74 connection.setAutoCommit(true); 78 connection.close(); 85 statement = connection.createStatement(); 95 PreparedStatement statement = connection.prepareStatement(FETCH_QUERY); 113 PreparedStatement statement = connection.prepareStatement(EXEC_QUERY); 125 connection.setAutoCommit(true); 126 PreparedStatement statement = connection [all...] |
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/ |
H A D | HttpsURLConnectionTest.java | 84 // read/connection timeout value 133 // create url connection to be tested 135 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); 136 connection.setSSLSocketFactory(ctx.getSocketFactory()); 139 SSLSocket peerSocket = (SSLSocket) doInteraction(connection, ss); 141 // check the connection state 142 checkConnectionStateParameters(connection, peerSocket); 145 connection.connect(); 149 * Tests the behaviour of HTTPS connection in case of unavailability 164 // create url connection t 1062 private HttpsURLConnection connection; field in class:HttpsURLConnectionTest.ClientConnectionWork 1068 ClientConnectionWork(HttpsURLConnection connection) argument [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | URLConnectionTest.java | 219 HttpURLConnection connection = (HttpURLConnection) server.getUrl("/").openConnection(); 220 assertNull(connection.getErrorStream()); 226 HttpURLConnection connection = (HttpURLConnection) server.getUrl("/").openConnection(); 227 assertEquals("A", readAscii(connection.getErrorStream(), Integer.MAX_VALUE)); 231 // recycled connection doesn't get the unread tail of the first request's response. 310 .setBody("This connection won't pool properly") 312 server.enqueue(new MockResponse().setBody("This comes after a busted connection")); 315 assertContent("This connection won't pool properly", server.getUrl("/a").openConnection()); 317 assertContent("This comes after a busted connection", server.getUrl("/b").openConnection()); 318 // sequence number 0 means the HTTP socket connection wa 2351 assertContent(String expected, URLConnection connection, int limit) argument 2358 assertContent(String expected, URLConnection connection) argument [all...] |
Completed in 117 milliseconds