hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: multi-user/settings with httpclient
Date Fri, 28 Jan 2011 11:10:27 GMT
On Fri, 2011-01-28 at 00:05 +0100, khiem nguyen wrote:
> hi,
> i want to use http-client to implement a kind of proxy-server, since it'll
> be used by several users & each user can have different settings
> (cookie-handling, headers-handling...), is there a better way than to give
> each user 1 or more instances of httpclient which hold user-specific params
> & 1 connection-manager for all these client instances ?
> 
> thanx for your help
> 
> khiemu

You can use different instances of HttpContext, HttpParams, CookieStore,
etc per individual user / thread of execution while sharing a single
instance of HttpClient and a pooling connection manager for all users /
threads.

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message