Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 78 of 78 for toURI (0.02 seconds)

  1. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/TestingConventionsTasks.java

                throw new RuntimeException("Failed to load class " + name + ". Incorrect test runtime classpath?", e);
            }
        }
    
        private URL fileToUrl(File file) {
            try {
                return file.toURI().toURL();
            } catch (MalformedURLException e) {
                throw new IllegalStateException(e);
            }
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 17.6K bytes
    - Click Count (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java

        }
    
        @Override
        public ArtifactRepository createLocalRepository(File localRepository) throws InvalidRepositoryException {
            return createRepository(
                    "file://" + localRepository.toURI().getRawPath(),
                    RepositorySystem.DEFAULT_LOCAL_REPO_ID,
                    true,
                    ArtifactRepositoryPolicy.UPDATE_POLICY_ALWAYS,
                    true,
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 31.2K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.kt

        assertThat(query.body).isEqualTo(body)
      }
    
      @Test
      fun uninitializedURI() {
        val request = Request.Builder().url("http://localhost/api").build()
        assertThat(request.url.toUri()).isEqualTo(URI("http://localhost/api"))
        assertThat(request.url).isEqualTo("http://localhost/api".toHttpUrl())
      }
    
      @Test
      fun newBuilderUrlResetsUrl() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 24.6K bytes
    - Click Count (0)
  4. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/rest/compat/RestCompatTestTransformTask.java

                    transformRestTests = transformer.transformRestTests(new LinkedList<>(tests), transformations);
                }
    
                // convert to url to ensure forward slashes
                String[] testFileParts = file.toURI().toURL().getPath().split(REST_TEST_PREFIX);
                if (testFileParts.length != 2) {
                    throw new IllegalArgumentException("could not split " + file + " into expected parts");
                }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Sep 30 16:30:48 GMT 2021
    - 22.3K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

        cookie.domain = server.hostName
        cookie.path = "/"
        val portList = server.port.toString()
        cookie.portlist = portList
        cookieManager.cookieStore.add(server.url("/").toUri(), cookie)
        client =
          client
            .newBuilder()
            .cookieJar(JavaNetCookieJar(cookieManager))
            .build()
        val response = client.newCall(Request(server.url("/page1"))).execute()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 146.5K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

      }
    
      @Test
      fun httpUrl() {
        val httpUrl: HttpUrl = "".toHttpUrl()
        val isHttps: Boolean = httpUrl.isHttps
        val url: URL = httpUrl.toUrl()
        val uri: URI = httpUrl.toUri()
        val scheme: String = httpUrl.scheme
        val encodedUsername: String = httpUrl.encodedUsername
        val username: String = httpUrl.username
        val encodedPassword: String = httpUrl.encodedPassword
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 49.7K bytes
    - Click Count (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                    true, ArtifactRepositoryPolicy.UPDATE_POLICY_ALWAYS, ArtifactRepositoryPolicy.CHECKSUM_POLICY_IGNORE);
            return new MavenArtifactRepository(
                    "local", "file://" + baseDirectory.toUri().getRawPath(), layout, blah, blah);
        }
    
        protected void populateRequestFromSettings(MavenExecutionRequest request, Settings settings) throws Exception {
            if (settings == null) {
                return;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Oct 28 13:01:07 GMT 2025
    - 43.2K bytes
    - Click Count (0)
  8. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

                for (File file : extClassPath) {
                    slf4jLogger.debug("  included '{}'", file);
    
                    extRealm.addURL(file.toURI().toURL());
                }
    
                for (CoreExtensionEntry entry : reverse(extensions)) {
                    Set<String> exportedPackages = entry.getExportedPackages();
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Oct 27 13:24:03 GMT 2025
    - 78.1K bytes
    - Click Count (0)
Back to Top