I’m afraid you need to wait for a while after we remove the deprecated API of 
HttpClient 4.x.
In the meantime I think you can still use the MyHttpClientConfigurer to do the 
job.
BTW, I just fill a JIRA[1] for it.

[1]https://issues.apache.org/jira/browse/CAMEL-7010  

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Monday, November 25, 2013 at 7:31 PM, PJ Walstroem wrote:

> I could use the code below (as suggested in
> http://camel.apache.org/http4.html), but seems like any calls on the
> HttpClient are deprecated in HttpClient 4.3. Any non-deprecated suggestions?
>  
> HttpComponent httpComponent = getContext().getComponent("http4",
> HttpComponent.class);
> httpComponent.setHttpClientConfigurer(new MyHttpClientConfigurer());
>  
> public class MyHttpClientConfigurer implements HttpClientConfigurer {
> public void configureHttpClient(HttpClient client) {
> client.getParams().setIntParameter("httpClient.soTimeout", 50000);
> }
> }
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/How-to-configure-http-client-tp5743784p5743790.html
> Sent from the Camel - Users mailing list archive at Nabble.com 
> (http://Nabble.com).



Reply via email to