INNER CODE UNIT · Java

setSslContext

dadoonet/spring-elasticsearch · src/main/java/fr/pilato/spring/elasticsearch/ElasticsearchClientFactoryBean.java:388

    public void setSslContext(SSLContext sslContext) {
        this.sslContext = sslContext;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        logger.info("Starting Elasticsearch Low Level client");
        lowLevelClient = buildElasticsearchLowLevelClient();

        logger.info("Starting Elasticsearch client");
        // Create the transport with a Jackson mapper
        ElasticsearchTransport transport = new RestClientTransport(lowLevelClient, new JacksonJsonpMapper());
        // And create the API client
        client = new ElasticsearchClient(transport);

        // Automagically initialize the cluster/indices
        initLifecycles();
        initPipelines();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…