Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 34 for getProtocol (0.07 sec)

  1. android/guava/src/com/google/common/reflect/ClassPath.java

            } catch (MalformedURLException e) {
              // Ignore bad entry
              logger.warning("Invalid Class-Path entry: " + path);
              continue;
            }
            if (url.getProtocol().equals("file")) {
              builder.add(toFile(url));
            }
          }
        }
        return builder.build();
      }
    
      @VisibleForTesting
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 24.9K bytes
    - Viewed (0)
  2. 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);
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.9K bytes
    - Viewed (0)
  3. 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) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 31 12:36:13 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

                }
                if (user == null) {
                    if (!allowUserInteraction) return null;
                    try {
                        URL url = getURL();
                        String protocol = url.getProtocol();
                        int port = url.getPort();
                        if (port == -1) {
                            port = "https".equalsIgnoreCase(protocol) ? 443 : 80;
                        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 20.4K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java

                authBuilder.addUsername(proxy.getUsername()).addPassword(proxy.getPassword());
                proxySelector.add(
                        new org.eclipse.aether.repository.Proxy(
                                proxy.getProtocol(), proxy.getHost(), proxy.getPort(), authBuilder.build()),
                        proxy.getNonProxyHosts());
            }
            sessionBuilder.setProxySelector(proxySelector);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/io/FileUtil.java

            assertArgumentNotEmpty("path", path);
            assertArgumentNotEmpty("encoding", encoding);
    
            final URL url = ResourceUtil.getResource(path);
            if (url.getProtocol().equals("file")) {
                return readText(URLUtil.toFile(url), encoding);
            }
            final InputStream is = URLUtil.openStream(url);
            try {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/artifact/repository/MavenArtifactRepository.java

            return id;
        }
    
        public String getUrl() {
            return url;
        }
    
        public String getBasedir() {
            return basedir;
        }
    
        public String getProtocol() {
            return protocol;
        }
    
        public void setId(String id) {
            this.id = id;
        }
    
        public void setUrl(String url) {
            this.url = url;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java

                AuthenticationBuilder authBuilder = new AuthenticationBuilder();
                authBuilder.addUsername(proxy.getUserName()).addPassword(proxy.getPassword());
                result = new Proxy(proxy.getProtocol(), proxy.getHost(), proxy.getPort(), authBuilder.build());
            }
            return result;
        }
    
        public static ArtifactHandler newHandler(Artifact artifact) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

        protected String normalizeCanonicalUrl(final String baseUrl, final String canonicalUrl) {
            try {
                final URL u = new URL(baseUrl);
                return new URL(u, canonicalUrl.startsWith(":") ? u.getProtocol() + canonicalUrl : canonicalUrl).toString();
            } catch (final MalformedURLException e) {
                logger.warn("Invalid canonical url: {} : {}", baseUrl, canonicalUrl, e);
            }
            return null;
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 24 13:01:38 UTC 2024
    - 42.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/io/ResourceUtil.java

         */
        public static File getBuildDir(final String path) {
            assertArgumentNotEmpty("path", path);
    
            File dir = null;
            final URL url = getResource(path);
            if ("file".equals(url.getProtocol())) {
                final int num = path.split("/").length;
                dir = new File(getFileName(url));
                for (int i = 0; i < num; ++i) {
                    dir = dir.getParentFile();
                }
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 15.8K bytes
    - Viewed (0)
Back to top