Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 48 for GetProtocol (0.46 sec)

  1. 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);
                }
            }
        }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 16:33:18 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 24.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/http/Handler.java

            return DEFAULT_HTTP_PORT;
        }
    
        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(String protocol)
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 6.1K bytes
    - Viewed (0)
  4. 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: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.9K bytes
    - Viewed (0)
  5. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 31 12:36:13 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. testing/internal-testing/src/main/groovy/org/gradle/util/internal/Resources.java

            assertNotNull(declaringTestClass);
            URL resource = declaringTestClass.getResource(name);
            if (resource == null) {
                return null;
            }
    
            try {
                switch (resource.getProtocol()) {
                    case "jar":
                            return fromWithinJar(resource);
                    case "file":
                        return fromFile(resource);
                    default:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 24.9K bytes
    - Viewed (0)
  8. 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: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Dec 26 15:12:32 UTC 2022
    - 11K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/internal/classpath/DefaultCachedClasspathTransformer.java

        }
    
        private Optional<Either<URL, Callable<URL>>> cachedURL(URL original, ClasspathFileTransformer transformer, Set<HashCode> seen, InstrumentationTypeRegistry typeRegistry) {
            if (original.getProtocol().equals("file")) {
                return cachedFile(Convert.urlToFile(original), transformer, seen, typeRegistry).map(
                    result -> result.fold(
                        file -> left(Convert.fileToURL(file)),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  10. 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: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Feb 28 07:40:37 UTC 2024
    - 16K bytes
    - Viewed (0)
Back to top