Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getSocketFactory (0.08 sec)

  1. src/test/java/org/codelibs/curl/CurlTest.java

                SSLContext sslContext = SSLContext.getInstance("TLS");
                sslContext.init(null, trustManagerFactory.getTrustManagers(), null);
    
                Curl.get("https://localhost:9200/").sslSocketFactory(sslContext.getSocketFactory()).execute(response -> {
                    final String content = response.getContentAsString();
                    logger.info(content);
                    assertTrue(content.length() > 0);
                }, e -> {
    Registered: Thu Oct 31 02:32:13 UTC 2024
    - Last Modified: Mon Nov 14 21:05:19 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/CurlHelper.java

                    final SSLContext sslContext = SSLContext.getInstance("TLS");
                    sslContext.init(null, trustManagerFactory.getTrustManagers(), null);
                    sslSocketFactory = sslContext.getSocketFactory();
                } catch (final Exception e) {
                    logger.warn("Failed to load {}", authorities, e);
                }
            }
    
            final String[] hosts = split(ResourceUtil.getFesenHttpUrl(), ",")
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. docs/features/https.md

              SSLContext sslContext = SSLContext.getInstance("TLS");
              sslContext.init(null, new TrustManager[] { trustManager }, null);
              sslSocketFactory = sslContext.getSocketFactory();
            } catch (GeneralSecurityException e) {
              throw new RuntimeException(e);
            }
    
            client = new OkHttpClient.Builder()
                .sslSocketFactory(sslSocketFactory, trustManager)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Dec 24 00:16:30 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java

            final Registry<ConnectionSocketFactory> socketFactoryRegistry = RegistryBuilder.<ConnectionSocketFactory> create()//
                    .register("http", PlainConnectionSocketFactory.getSocketFactory())//
                    .register("https", sslSocketFactory).build();
    
            final long timeToLive = getInitParameter(TIME_TO_LIVE_PROPERTY, 5L, Long.class);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 09 09:29:26 UTC 2024
    - 41K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         *
         * SSLContext sslContext = SSLContext.getInstance("TLS");
         * sslContext.init(null, new TrustManager[] { trustManager }, null);
         * SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();
         *
         * OkHttpClient client = new OkHttpClient.Builder()
         *     .sslSocketFactory(sslSocketFactory, trustManager)
         *     .build();
         * ```
         *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:21:33 UTC 2024
    - 52K bytes
    - Viewed (0)
Back to top