Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 33 for toUrl (0.16 sec)

  1. guava-tests/test/com/google/common/io/ResourcesTest.java

        assertThrows(IllegalArgumentException.class, () -> Resources.getResource(tempFile.getName()));
    
        // Now set the context loader to one that should find the resource.
        URL baseUrl = tempFile.getParentFile().toURI().toURL();
        URLClassLoader loader = new URLClassLoader(new URL[] {baseUrl});
        ClassLoader oldContextLoader = Thread.currentThread().getContextClassLoader();
        try {
          Thread.currentThread().setContextClassLoader(loader);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/classrealm/DefaultClassRealmManager.java

                    String id = getId(constituent);
                    logger.debug("  Included: {}", id);
                }
    
                try {
                    classRealm.addURL(file.toURI().toURL());
                } catch (MalformedURLException e) {
                    // Not going to happen
                    logger.error(e.getMessage(), e);
                }
            }
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Jan 10 12:53:42 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/EnumsTest.java

        ImmutableList.Builder<URL> urls = ImmutableList.builder();
        for (String entry : Splitter.on(PATH_SEPARATOR.value()).split(JAVA_CLASS_PATH.value())) {
          try {
            try {
              urls.add(new File(entry).toURI().toURL());
            } catch (SecurityException e) { // File.toURI checks to see if the file is a directory
              urls.add(new URL("file", null, new File(entry).getAbsolutePath()));
            }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 8.8K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

          ),
        )
        assertContent("This is the 2nd server!", getResponse(newRequest("/a")))
        assertThat(proxySelectionRequests).isEqualTo(
          listOf(
            server.url("/").toUrl().toURI(),
            server2.url("/").toUrl().toURI(),
          ),
        )
      }
    
      @Test
      fun redirectWithAuthentication() {
        server2.enqueue(
          MockResponse(body = "Page 2"),
        )
        server.enqueue(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  5. build-logic/build-init-samples/src/main/kotlin/gradlebuild/samples/SamplesGenerator.kt

            return tasksExecuted + if (descriptor.language === Language.KOTLIN) 1 else 0
        }
    
        private
        fun Directory.template(templateFragment: String) = file("$templateFragment.template").asFile.toURI().toURL()
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Feb 06 17:51:21 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

          PublicSuffixDatabase.get().getEffectiveTldPlusOne(host)
        }
      }
    
      @JvmName("-deprecated_url")
      @Deprecated(
        message = "moved to toUrl()",
        replaceWith = ReplaceWith(expression = "toUrl()"),
        level = DeprecationLevel.ERROR,
      )
      fun url(): URL = toUrl()
    
      @JvmName("-deprecated_uri")
      @Deprecated(
        message = "moved to toUri()",
        replaceWith = ReplaceWith(expression = "toUri()"),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  7. okhttp/src/test/java/okhttp3/HttpUrlJvmTest.kt

        assertThat(uri.toHttpUrlOrNull()).isNull()
      }
    
      @Test
      fun toJavaNetUrl() {
        val httpUrl = "http://username:password@host/path?query#fragment".toHttpUrl()
        val javaNetUrl = httpUrl.toUrl()
        assertThat(javaNetUrl.toString())
          .isEqualTo("http://username:password@host/path?query#fragment")
      }
    
      @Test
      fun toUri() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/io/TraversalUtil.java

                        final URL warUrl = URLUtil.create(zipUrl, "../..");
                        final String path = warUrl.getPath();
                        zipUrl = FileUtil.toURL(new File(path.substring(0, path.length() - 1)));
                        prefix = zipUrlString.substring(warUrl.toExternalForm().length());
                        loadFromZip(zipUrl);
                    }
                }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

         * c.g.c.io.Files.createTempDir?
         */
        File fullPath = new File(Files.createTempDir(), name);
        File jarFile = pickAnyJarFile();
        Files.copy(jarFile, fullPath);
        return fullPath.toURI().toURL();
      }
    
      private static File pickAnyJarFile() throws IOException {
        for (ClassPath.LocationInfo location :
            ClassPath.locationsFrom(ClassPathTest.class.getClassLoader())) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 26 14:02:27 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/ClassPathTest.java

         * c.g.c.io.Files.createTempDir?
         */
        File fullPath = new File(Files.createTempDir(), name);
        File jarFile = pickAnyJarFile();
        Files.copy(jarFile, fullPath);
        return fullPath.toURI().toURL();
      }
    
      private static File pickAnyJarFile() throws IOException {
        for (ClassPath.LocationInfo location :
            ClassPath.locationsFrom(ClassPathTest.class.getClassLoader())) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Jul 10 17:06:37 GMT 2023
    - 27.7K bytes
    - Viewed (0)
Back to top