Home | History | Annotate | Download | only in net

Lines Matching defs:connection

92         URLConnection connection = fileUrl.openConnection();
93 assertContents(fileContents, connection.getInputStream());
114 URLConnection connection = fileUrl.openConnection();
116 connection.getInputStream();
129 URLConnection connection = fileUrl.openConnection();
130 connection.setDoInput(false);
131 connection.setDoOutput(true);
132 OutputStream os = connection.getOutputStream();
142 URLConnection connection = fileUrl.openConnection(proxy);
143 assertContents(fileContents, connection.getInputStream());
150 * counts connection attempts to the address represented by {@code asProxy()}.
160 socket.connect(address, /* timeout (msec) */ 200); // attempt one connection
173 * connection instead.
181 URLConnection connection = fileUrl.openConnection(proxy);
182 // direct connection succeeds
183 assertContents(fileContents, connection.getInputStream());
192 * ftp:// URLs will be rejected. A direct connection will
205 URLConnection connection = fileUrl.openConnection();
206 InputStream inputStream = connection.getInputStream();
212 // The direct connection is successful
226 URLConnection connection = url.openConnection();
227 assertContents(fileContents, connection.getInputStream());
270 fail("Connection shouldn't have succeeded: " + urlString);
373 connectionAttempts.release(1); // count one connection attempt
390 // holds one permit for each connection attempt encountered; this allows