Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for getSchemes (0.21 sec)

  1. platforms/core-runtime/wrapper-shared/src/main/java/org/gradle/wrapper/Download.java

         *
         * @param uri Original URI
         * @return a new URI with no user info
         */
        static URI safeUri(URI uri) {
            try {
                return new URI(uri.getScheme(), null, uri.getHost(), uri.getPort(), uri.getPath(), uri.getQuery(), uri.getFragment());
            } catch (URISyntaxException e) {
                throw new RuntimeException("Failed to parse URI", e);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/wrapper-main/src/main/java/org/gradle/wrapper/GradleWrapperMain.java

                location = GradleWrapperMain.class.getProtectionDomain().getCodeSource().getLocation().toURI();
            } catch (URISyntaxException e) {
                throw new RuntimeException(e);
            }
            if (!location.getScheme().equals("file")) {
                throw new RuntimeException(String.format("Cannot determine classpath for wrapper Jar from codebase '%s'.", location));
            }
            try {
                return Paths.get(location).toFile();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. platforms/software/security/src/main/java/org/gradle/security/internal/PublicKeyDownloadService.java

        }
    
        private ExternalResourceName toQuery(URI baseUri, String fingerprint) throws URISyntaxException {
            String scheme = baseUri.getScheme();
            int port = baseUri.getPort();
            if ("hkp".equals(scheme)) {
                scheme = "http";
                port = 11371;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:49:35 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. platforms/software/build-init/src/main/java/org/gradle/api/tasks/wrapper/Wrapper.java

                URI uri = getDistributionUri(uriRoot, url);
                if (uri.getScheme().equals("file")) {
                    if (!Files.exists(Paths.get(uri).toAbsolutePath())) {
                        throw new UncheckedIOException(String.format(DISTRIBUTION_URL_EXCEPTION_MESSAGE, url));
                    }
                } else if (uri.getScheme().startsWith("http") && !isOffline) {
                    try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 08 03:11:06 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  5. pkg/config/validation/virtualservice.go

    			// https://github.com/envoyproxy/envoy/blob/v1.29.2/api/envoy/type/matcher/string.proto#L38
    			errs = appendErrors(errs, validateStringMatchRegexp(match.GetUri(), "uri"))
    			errs = appendErrors(errs, validateStringMatch(match.GetScheme(), "scheme"))
    			errs = appendErrors(errs, validateStringMatch(match.GetMethod(), "method"))
    			errs = appendErrors(errs, validateStringMatch(match.GetAuthority(), "authority"))
    			for _, qp := range match.GetQueryParams() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:27 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceIntegrationTest.groovy

            output.contains('PKIX path building failed: ')
        }
    
        private URI getUrlWithCredentials(String user, String password) {
            def uri = httpBuildCacheServer.uri
            return new URI(uri.getScheme(), "${user}:${password}", uri.getHost(), uri.getPort(), uri.getPath(), uri.getQuery(), uri.getFragment())
        }
    
        def "build does not leak credentials in cache URL"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 23:08:20 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  7. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/GUtil.java

             * server, they can use http://127.0.0.1
             */
            if ("127.0.0.1".equals(url.getHost())) {
                return true;
            }
    
            final String scheme = url.getScheme();
            return !"http".equalsIgnoreCase(scheme);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  8. platforms/core-runtime/logging/src/main/java/org/gradle/util/GUtil.java

             * server, they can use http://127.0.0.1
             */
            if ("127.0.0.1".equals(url.getHost())) {
                return true;
            }
    
            final String scheme = url.getScheme();
            return !"http".equalsIgnoreCase(scheme);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  9. src/net/url/url.go

    	}
    	return s
    }
    
    // Maybe rawURL is of the form scheme:path.
    // (Scheme must be [a-zA-Z][a-zA-Z0-9+.-]*)
    // If so, return scheme, path; else return "", rawURL.
    func getScheme(rawURL string) (scheme, path string, err error) {
    	for i := 0; i < len(rawURL); i++ {
    		c := rawURL[i]
    		switch {
    		case 'a' <= c && c <= 'z' || 'A' <= c && c <= 'Z':
    		// do nothing
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  10. operator/pkg/controller/istiocontrolplane/istiocontrolplane_controller.go

    	if err != nil {
    		return fmt.Errorf("create Kubernetes client: %v", err)
    	}
    	return add(mgr, &ReconcileIstioOperator{client: mgr.GetClient(), scheme: mgr.GetScheme(), kubeClient: kubeClient, options: options}, options)
    }
    
    // add adds a new Controller to mgr with r as the reconcile.Reconciler along with options for additional configuration.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 13:56:46 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top