[ 
https://issues.apache.org/jira/browse/SOLR-5604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13903532#comment-13903532
 ] 

Oleg Kalnichevski commented on SOLR-5604:
-----------------------------------------

{quote} How do you change connection manager properties after the HttpClient is 
created? ClientConnectionManager and HttpClient#getConnectionManager are 
deprecated. {quote}

What prevents you from keeping a reference to the connection manager along with 
that to HttpClient? Connection pools are separate entities. They have their 
separate life cycles and can be shared by multiple clients. One can create a 
new client that makes use of an existing connection pool.

* setAllowCompression 
Create protocol interceptors at HttpClient construction times but use a custom 
context variable to enable and disable them at run time if desired 
* setBasicAuth
Settable through context
* setUseRetry
Create a custom handler that can be customized through context at run time if 
desired

Oleg

Oleg

> Remove deprecations caused by httpclient 4.3.x upgrade
> ------------------------------------------------------
>
>                 Key: SOLR-5604
>                 URL: https://issues.apache.org/jira/browse/SOLR-5604
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 4.7
>            Reporter: Shawn Heisey
>             Fix For: 4.7, 5.0
>
>         Attachments: SOLR-5604-4x-just-lucene.patch
>
>
> SOLR-5590 upgraded httpclient in Solr and Lucene to version 4.3.x.  This 
> version deprecates a LOT of classes and methods, recommending that they all 
> be replaced with various methods from the HttpClientBuilder class.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to