Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for newBuilder (0.25 sec)

  1. maven-api-impl/src/main/java/org/apache/maven/internal/impl/SettingsUtilsV4.java

            Profile.Builder profile = Profile.newBuilder();
    
            profile.id(modelProfile.getId());
    
            org.apache.maven.api.model.Activation modelActivation = modelProfile.getActivation();
    
            if (modelActivation != null) {
                Activation.Builder activation = Activation.newBuilder();
    
                activation.activeByDefault(modelActivation.isActiveByDefault());
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

          client.newBuilder()
            .dns { listOf() }
            .build()
            .routeDatabase,
        )
        assertNotSame(
          client.routeDatabase,
          client.newBuilder()
            .proxyAuthenticator { _: Route?, _: Response? -> null }
            .build()
            .routeDatabase,
        )
        assertNotSame(
          client.routeDatabase,
          client.newBuilder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  3. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

      // 4. successful stale cached GET response
      // 5. unsuccessful response
      @Test
      fun usesCache() {
        val cache = Cache(cacheFs, "cache".toPath(), (100 * 1024).toLong())
        val cachedClient = bootstrapClient.newBuilder().cache(cache).build()
        val cachedDns = buildLocalhost(cachedClient, false)
    
        repeat(2) {
          server.enqueue(
            dnsResponse(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 11K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultSettingsBuilder.java

                    && effective.getPluginRepositories().isEmpty()) {
                Repository central = Repository.newBuilder()
                        .id("central")
                        .name("Central Repository")
                        .url("https://repo.maven.apache.org/maven2")
                        .snapshots(RepositoryPolicy.newBuilder().enabled(false).build())
                        .build();
                Repository centralWithNoUpdate = central.withReleases(
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 12K bytes
    - Viewed (0)
  5. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

          if (post) {
            url(url)
              .cacheUrlOverride(
                url.newBuilder()
                  .addQueryParameter("hostname", hostname).build(),
              )
              .post(query.toRequestBody(DNS_MESSAGE))
          } else {
            val encoded = query.base64Url().replace("=", "")
            val requestUrl = url.newBuilder().addQueryParameter("dns", encoded).build()
    
            url(requestUrl)
          }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

            .build().also {
              listener.satisfactionFailure(call, it)
            }
        }
    
        // If we don't need the network, we're done.
        if (networkRequest == null) {
          return cacheResponse!!.newBuilder()
            .cacheResponse(cacheResponse.stripBody())
            .build().also {
              listener.cacheHit(call, it)
            }
        }
    
        if (cacheResponse != null) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java

                        .map(p -> prune(Profile.newBuilder(p, true), p).build())
                        .collect(Collectors.toList()));
    
                model = builder.build();
                String modelVersion = new MavenModelVersion().getModelVersion(model);
                model = model.withModelVersion(modelVersion);
            } else {
                Model.Builder builder = prune(
                        Model.newBuilder(model, true)
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri May 03 08:48:38 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

          "Request header not permitted: 'Sec-WebSocket-Extensions'",
        )
      }
    
      @Test
      fun webSocketAndApplicationInterceptors() {
        val interceptedCount = AtomicInteger()
        client =
          client.newBuilder()
            .addInterceptor(
              Interceptor { chain: Interceptor.Chain ->
                assertThat(chain.request().body).isNull()
                val response = chain.proceed(chain.request())
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 35.2K bytes
    - Viewed (1)
  9. okhttp/src/main/kotlin/okhttp3/Request.kt

       * [newBuilder].
       *
       * @suppress this method breaks Dokka! https://github.com/Kotlin/dokka/issues/2473
       */
      fun tag(): Any? = tag<Any>()
    
      /**
       * Returns the tag attached with [type] as a key, or null if no tag is attached with that
       * key.
       */
      fun <T> tag(type: Class<out T>): T? = tag(type.kotlin)
    
      fun newBuilder(): Builder = Builder(this)
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:17:44 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

          }
    
          val conditionalRequestHeaders = request.headers.newBuilder()
          conditionalRequestHeaders.addLenient(conditionName, conditionValue!!)
    
          val conditionalRequest =
            request.newBuilder()
              .headers(conditionalRequestHeaders.build())
              .build()
          return CacheStrategy(conditionalRequest, cacheResponse)
        }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
Back to top