I use PoolingHttpClientconnectionManager and i need specific sslcontext on each request. By default CloseableHttpClient use manager's sslcontext, but i need sslcontext from .setSSLContext(context). How resolve this problem? I need connection pool and at the same time i need specific sslcontext on each request
CloseableHttpClient client = HttpClients.custom()
.setConnectionManager(httpPoolManager.getConnectionManager())
.setSSLSocketFactory(new SSLConnectionSocketFactory(context, NoopHostnameVerifier.INSTANCE))
.setSSLContext(context)
.build();
setExternalRequestId(externalRequestId);
setHttpClient(client);