public CloseableHttpClient createClient ( final String siteId ) throws IndyHttpException { try { return httpFactory . createClient ( siteConfigLookup . lookup ( siteId ) ) ; } catch ( JHttpCException e ) { throw new IndyHttpException ( "Failed to create http client: %s" , e , e . getMessage ( ) ) ; } }
Create http client and apply site config .