On Fri, 2013-04-05 at 14:30 +0200, Francois-Xavier Bonnet wrote: > No, you cannot reconfigure an existing instance. An HttpClient is now an > immutable object. If you need to change some settings, you have to create a > new HtpClient. > >
This is absolutely true. However, generally one should rarely need to reconfigure an existing HttpClient instance. Pretty much all HttpClient level settings are just defaults that can always be overridden either at the request level (through RequestConfig) or at the session level (through HttpContext). Hope this helps Oleg > 2013/4/5 Simone Tripodi <simonetrip...@apache.org> > > > Hi all again mates, > > > > sorry for the beginner's question, but I am now in the middle of the need > > of reconfiguring a running instance of the HttpClient - is there any way, > > without using the deprecated methods, to reconfigure some parameters, such > > us the proxy and so on? > > > > Many thanks in advance, all the best! > > -Simo > > > > http://people.apache.org/~simonetripodi/ > > http://simonetripodi.livejournal.com/ > > http://twitter.com/simonetripodi > > http://www.99soft.org/ > > --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org