Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for getProtocols (0.09 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. compat/maven-compat/src/main/java/org/apache/maven/repository/DefaultMirrorSelector.java

                URL url = new URL(originalRepository.getUrl());
                return ("http".equalsIgnoreCase(url.getProtocol())
                                || "dav".equalsIgnoreCase(url.getProtocol())
                                || "dav:http".equalsIgnoreCase(url.getProtocol())
                                || "dav+http".equalsIgnoreCase(url.getProtocol()))
                        && !isLocal(url.getHost());
            } catch (MalformedURLException e) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 8K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/HandlerTest.java

            Handler handler = newHandler();
            URL url = new URL(null, "smb://", handler);
    
            // Assert
            assertEquals("smb", url.getProtocol());
            assertEquals(SmbConstants.DEFAULT_PORT, url.getPort(), "Default port applied for root smb URL");
            assertNull(url.getRef(), "Ref should remain null for root URL");
        }
    
        @Test
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/FakeSSLSession.kt

      override fun getPeerPort(): Int = throw UnsupportedOperationException()
    
      @Throws(SSLPeerUnverifiedException::class)
      override fun getPeerPrincipal(): Principal = throw UnsupportedOperationException()
    
      override fun getProtocol(): String = throw UnsupportedOperationException()
    
      override fun getSessionContext(): SSLSessionContext = throw UnsupportedOperationException()
    
      override fun putValue(
        s: String,
        obj: Any,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  4. compat/maven-artifact/src/main/java/org/apache/maven/repository/Proxy.java

            this.userName = userName;
        }
    
        /**
         * Get the protocol of the proxy server.
         *
         * @return the protocol of the proxy server
         */
        public String getProtocol() {
            return protocol;
        }
    
        /**
         * @param protocol the protocol of the proxy server like <i>SOCKSv4</i>
         */
        public void setProtocol(String protocol) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 4K bytes
    - Click Count (0)
  5. impl/maven-core/src/test/java/org/apache/maven/repository/TestRepositoryConnector.java

                this.basedir = null;
            } else {
                try {
                    URL url = new URL(repository.getUrl());
                    if ("file".equals(url.getProtocol())) {
                        basedir = new File(url.getPath());
                    }
                } catch (MalformedURLException e) {
                    throw new IllegalStateException(e);
                }
            }
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Sep 11 17:20:46 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/http/Handler.java

            return DEFAULT_HTTP_PORT;
        }
    
        @Override
        protected URLConnection openConnection(URL url) throws IOException {
            url = new URL(url, url.toExternalForm(), getDefaultStreamHandler(url.getProtocol()));
            return new NtlmHttpURLConnection((HttpURLConnection) url.openConnection());
        }
    
        private static URLStreamHandler getDefaultStreamHandler(final String protocol) throws IOException {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  7. src/main/java/jcifs/http/Handler.java

            return DEFAULT_HTTP_PORT;
        }
    
        @Override
        protected URLConnection openConnection(URL url) throws IOException {
            url = new URL(url, url.toExternalForm(), getDefaultStreamHandler(url.getProtocol()));
            return new NtlmHttpURLConnection((HttpURLConnection) url.openConnection(), this.transportContext);
        }
    
        private static URLStreamHandler getDefaultStreamHandler(final String protocol) throws IOException {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/io/IoTestCase.java

        }
    
        URL testFileUrl = IoTestCase.class.getResource("testdata/i18n.txt");
        if (testFileUrl == null) {
          throw new RuntimeException("unable to locate testdata directory");
        }
    
        if (testFileUrl.getProtocol().equals("file")) {
          try {
            File testFile = new File(testFileUrl.toURI());
            testDir = testFile.getParentFile(); // the testdata directory
          } catch (Exception ignore) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 5.6K bytes
    - Click Count (0)
Back to Top