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

Shawn Heisey commented on SOLR-5604:
------------------------------------

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

An implementation detail: I do not see 'context' anywhere in HttpSolrServer.  
We must not be using that.

Here's answers to your questions:
 * setAllowCompression calls an HttpClientUtil method that says it controls 
HTTP payload compression.  That method adds request and response interceptors 
that are defined locally, extending HttpRequestInterceptor and 
HttpResponseInterceptor.  If the client passed to the method is not a 
DefaultHttpClient, the method throws an exception.
 * setBasicAuth gets the CredentialsProvider and then sets the 
UsernamePasswordCredentials with a provided username and password.
 * setUseRetry calls HttpClient#setHttpRequestRetryHandler.


> 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