Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 271 - 280 of 1,372 for builder (0.1 seconds)

  1. android-test/src/androidDeviceTest/java/okhttp/android/test/OkHttpTest.kt

        val certificatePinner =
          CertificatePinner
            .Builder()
            .add(server.hostName, "sha256/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=")
            .build()
        client = client.newBuilder().certificatePinner(certificatePinner).build()
    
        server.enqueue(MockResponse(body = "abc"))
    
        val request = Request.Builder().url(server.url("/")).build()
    
        try {
          client.newCall(request).execute()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 29.9K bytes
    - Click Count (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapGenerators.java

        @Override
        protected BiMap<String, String> create(Entry<String, String>[] entries) {
          ImmutableBiMap.Builder<String, String> builder = ImmutableBiMap.builder();
          for (Entry<String, String> entry : entries) {
            checkNotNull(entry);
            builder.put(entry.getKey(), entry.getValue());
          }
          return builder.build();
        }
      }
    
      public static class ImmutableBiMapCopyOfGenerator extends TestStringBiMapGenerator {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Aug 10 19:54:19 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/ConnectionSpec.kt

        val COMPATIBLE_TLS =
          Builder(true)
            .cipherSuites(*APPROVED_CIPHER_SUITES.toTypedArray())
            .tlsVersions(TlsVersion.TLS_1_3, TlsVersion.TLS_1_2, TlsVersion.TLS_1_1, TlsVersion.TLS_1_0)
            .supportsTlsExtensions(true)
            .build()
    
        /** Unencrypted, unauthenticated connections for `http:` URLs. */
        @JvmField
        val CLEARTEXT = Builder(false).build()
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Jan 10 09:36:53 GMT 2026
    - 13.5K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/TestTls13Request.kt

     * available in JDK11 or Conscrypt.
     */
    private val TLS_13 =
      ConnectionSpec
        .Builder(true)
        .cipherSuites(*TLS13_CIPHER_SUITES.toTypedArray())
        .tlsVersions(TlsVersion.TLS_1_3)
        .build()
    
    private val TLS_12 =
      ConnectionSpec
        .Builder(ConnectionSpec.RESTRICTED_TLS)
        .tlsVersions(TlsVersion.TLS_1_2)
        .build()
    
    private fun testClient(
      urls: List<String>,
      client: OkHttpClient,
    ) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu May 22 14:39:30 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  5. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

      @Test
      fun ecdsaSignedByRsa() {
        val root =
          HeldCertificate
            .Builder()
            .certificateAuthority(0)
            .rsa2048()
            .build()
        val leaf =
          HeldCertificate
            .Builder()
            .certificateAuthority(0)
            .ecdsa256()
            .signedBy(root)
            .build()
        assertThat(root.certificate.sigAlgName).isEqualTo("SHA256WITHRSA", ignoreCase = true)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 22.6K bytes
    - Click Count (0)
  6. benchmarks/src/main/java/org/elasticsearch/benchmark/search/fetch/subphase/FetchSourcePhaseBenchmark.java

                    )
            ) {
                builder.copyCurrentStructure(parser);
                return BytesReference.bytes(builder);
            }
        }
    
        @Benchmark
        public BytesReference filterXContentOnBuilder() throws IOException {
            BytesStreamOutput streamOutput = new BytesStreamOutput(Math.min(1024, sourceBytes.length()));
            XContentBuilder builder = new XContentBuilder(
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 13 17:34:14 GMT 2021
    - 5.4K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorErrorHandlingTest.java

                    doc.put(ID_FIELD, null); // Explicitly null
                    doc.put("title", "Document " + i);
                    builder.addDocument(doc);
                }
                builder.allRecordCount(10);
                builder.allRecordCountRelation(Relation.EQUAL_TO.toString());
                return builder.build();
            }
        }
    
        /**
         * Searcher that returns documents with numeric ID field.
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 14.3K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/CallKotlinTest.kt

      @Test fun httpExceptionsAreReturnedAsSuppressed() {
        server.enqueue(MockResponse.Builder().onRequestStart(CloseSocket()).build())
        server.enqueue(MockResponse.Builder().onRequestStart(CloseSocket()).build())
    
        client =
          client
            .newBuilder()
            .dns(DoubleInetAddressDns()) // Two routes so we get two failures.
            .build()
    
        val request = Request(server.url("/"))
        assertFailsWith<IOException> {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/graph/StandardNetwork.java

      /** Constructs a graph with the properties specified in {@code builder}. */
      StandardNetwork(NetworkBuilder<? super N, ? super E> builder) {
        this(
            builder,
            builder.nodeOrder.createMap(firstNonNull(builder.expectedNodeCount, DEFAULT_NODE_COUNT)),
            builder.edgeOrder.createMap(firstNonNull(builder.expectedEdgeCount, DEFAULT_EDGE_COUNT)));
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/entity/GeoInfo.java

     * into OpenSearch geo-distance queries for location-based search functionality.
     *
     */
    public class GeoInfo {
    
        /** The OpenSearch query builder for geographic queries. */
        private QueryBuilder builder;
    
        /**
         * Constructs a GeoInfo instance by parsing geographic parameters from the HTTP request.
         * Extracts geo.{field}.point and geo.{field}.distance parameters to create
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 5.7K bytes
    - Click Count (0)
Back to Top