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() );
        }
    }
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() );
        }
    }
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.
@param siteId ID to represent the site. It is generally the hostname of target site.
@return
@throws IndyHttpException
Create http client and apply site config .