public static CloseableHttpClient initHttpClient ( boolean insecureMode , File ocspCacheFile ) { if ( httpClient == null ) { synchronized ( HttpUtil . class ) { if ( httpClient == null ) { httpClient = buildHttpClient ( insecureMode , ocspCacheFile , enableOcspResponseCacheServer ( ) ) ; } } } return httpClient ; }
Accessor for the HTTP client singleton .