Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 31 for openConnections (0.19 sec)

  1. regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt

            .setTrafficStatsTag(101)
            .build()
    
        req.start()
        return completableFuture
      }
    
      @Test
      fun urlConnection() {
        val conn = engine.openConnection(URL("https://google.com/robots.txt")) as HttpURLConnection
    
        val text =
          conn.inputStream.use {
            it.bufferedReader().readText()
          }
    
        assertEquals(200, conn.responseCode)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/Handler.java

         */
        public Handler() {
        }
    
        @Override
        protected int getDefaultPort() {
            return SmbConstants.DEFAULT_PORT;
        }
    
        @Override
        public URLConnection openConnection(final URL u) throws IOException {
            return new SmbFile(u);
        }
    
        @Override
        protected void parseURL(final URL u, String spec, final int start, int limit) {
            final String host = u.getHost();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/Handler.java

            this.transportContext = tc;
        }
    
        @Override
        protected int getDefaultPort() {
            return SmbConstants.DEFAULT_PORT;
        }
    
        @Override
        public URLConnection openConnection(final URL u) throws IOException {
            if (log.isDebugEnabled()) {
                log.debug("Opening file " + u);
            }
            return new SmbFile(u, getTransportContext());
        }
    
        /**
         * @return
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

            } else if (stream != null) {
                when(conn.getInputStream()).thenReturn(stream);
            }
        }
    
        /**
         * Test helper class for mocking URL.openConnection() behavior
         */
        static class TestURLStreamHandler extends java.net.URLStreamHandler {
            private final List<HttpURLConnection> connections = new ArrayList<>();
            private int currentIndex = 0;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/jar/JarFileUtil.java

         */
        public static JarFile toJarFile(final URL jarUrl) {
            assertArgumentNotNull("jarUrl", jarUrl);
    
            final URLConnection con = URLUtil.openConnection(jarUrl);
            if (con instanceof JarURLConnection) {
                return JarURLConnectionUtil.getJarFile((JarURLConnection) con);
            }
            return create(new File(toJarFilePath(jarUrl)));
        }
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/curl/CurlRequest.java

         */
        protected HttpURLConnection open(final URL u) throws IOException {
            final HttpURLConnection connection = (HttpURLConnection) (proxy != null ? u.openConnection(proxy) : u.openConnection());
            if (sslSocketFactory != null && connection instanceof HttpsURLConnection) {
                ((HttpsURLConnection) connection).setSSLSocketFactory(sslSocketFactory);
            }
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

            }
            return message;
        }
    
        private void reconnect() throws IOException {
            connection = (HttpURLConnection) connection.getURL().openConnection();
            connection.setRequestMethod(method);
            headerFields = null;
            final Iterator properties = requestProperties.entrySet().iterator();
            while (properties.hasNext()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  8. docs/changelogs/changelog_1x.md

       the way the hostname verifier was selected.
     * Fix: Locking bug in SpdyConnection.
     * Fix: Ignore null header values (for compatibility with HttpURLConnection).
     * Add URLStreamHandlerFactory support so that `URL.openConnection()` uses
       OkHttp.
     * Expose the transport ("http/1.1", "spdy/3", etc.) via magic request headers.
       Use `X-Android-Transports` to write the preferred transports and
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/ProtocolHelper.java

                            }
                        }
                    } else if ("jar".equals(resource.getProtocol())) {
                        final JarURLConnection jarURLConnection = (JarURLConnection) resource.openConnection();
                        try (JarFile jarFile = jarURLConnection.getJarFile()) {
                            final Enumeration<JarEntry> entries = jarFile.entries();
                            while (entries.hasMoreElements()) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

        // Minimal URLStreamHandler to allow creating smb:// URLs in tests
        private static final URLStreamHandler SMB_HANDLER = new URLStreamHandler() {
            @Override
            protected URLConnection openConnection(URL u) {
                return null; // not used
            }
        };
    
        @BeforeEach
        void setup() {
            when(ctx.getConfig()).thenReturn(config);
            when(ctx.getCredentials()).thenReturn(creds);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
Back to top