Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getFragment (0.16 sec)

  1. platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/ApacheDirectoryListingParser.java

                uri = new URI(uri.getScheme(), uri.getUserInfo(), uri.getHost(), uri.getPort(), "/", uri.getQuery(), uri.getFragment());
            }else if (!uri.getPath().endsWith("/") && !uri.getPath().endsWith(".html")) {
                uri = new URI(uri.getScheme(), uri.getUserInfo(), uri.getHost(), uri.getPort(), uri.getPath() + "/", uri.getQuery(), uri.getFragment());
    
            }
            return uri;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  2. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheConfigurationBuildOperationIntegrationTest.groovy

            def safeUri = httpBuildCacheServer.uri
            def basicAuthUri = new URI(safeUri.getScheme(), 'user:pwd', safeUri.getHost(), safeUri.getPort(), safeUri.getPath(), safeUri.getQuery(), safeUri.getFragment())
            settingsFile << """
                buildCache {
                    remote(org.gradle.caching.http.HttpBuildCache) {
                        enabled = true
                        url = "${basicAuthUri}/"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. platforms/core-execution/build-cache-http/src/main/java/org/gradle/caching/http/internal/DefaultHttpBuildCacheServiceFactory.java

            return credentials;
        }
    
        private static URI stripUserInfo(URI uri) {
            try {
                return new URI(uri.getScheme(), null, uri.getHost(), uri.getPort(), uri.getPath(), uri.getQuery(), uri.getFragment());
            } catch (URISyntaxException e) {
                throw new GradleException("Error constructing URL for http build cache", e);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  4. platforms/core-execution/build-cache-http/src/main/java/org/gradle/caching/http/internal/HttpBuildCacheService.java

         * @return a new URI with no user info
         */
        private 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 UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        /**
         * Add a trailing slash to the given URI's path if necessary.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 14:13:12 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. platforms/core-runtime/wrapper-shared/src/main/java/org/gradle/wrapper/Download.java

         * @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)
  6. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceIntegrationTest.groovy

            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"() {
            httpBuildCacheServer.withBasicAuth("correct-username", "correct-password")
            settingsFile << """
                buildCache {
    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

        }
    
        public static URI toSecureUrl(URI scriptUri) {
            try {
                return new URI("https", null, scriptUri.getHost(), scriptUri.getPort(), scriptUri.getPath(), scriptUri.getQuery(), scriptUri.getFragment());
            } catch (URISyntaxException e) {
                throw new IllegalArgumentException("could not make url use https", e);
            }
        }
    
        public static boolean isSecureUrl(URI url) {
            /*
    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

        }
    
        public static URI toSecureUrl(URI scriptUri) {
            try {
                return new URI("https", null, scriptUri.getHost(), scriptUri.getPort(), scriptUri.getPath(), scriptUri.getQuery(), scriptUri.getFragment());
            } catch (URISyntaxException e) {
                throw new IllegalArgumentException("could not make url use https", e);
            }
        }
    
        public static boolean isSecureUrl(URI url) {
            /*
    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

    		case '%':
    			// ok - percent encoded, will decode
    		default:
    			if shouldEscape(s[i], mode) {
    				return false
    			}
    		}
    	}
    	return true
    }
    
    // setFragment is like setPath but for Fragment/RawFragment.
    func (u *URL) setFragment(f string) error {
    	frag, err := unescape(f, encodeFragment)
    	if err != nil {
    		return err
    	}
    	u.Fragment = frag
    	if escf := escape(frag, encodeFragment); f == escf {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 36.1K bytes
    - Viewed (0)
Back to top