On Mon, 2010-12-13 at 11:20 +0000, sebb wrote:
> For HC 3.1, JMeter supports a configuration file which can be used to
> set up global defaults.
> 
> There is no concept of global defaults in HC 4.x, but one can
> initialise HttpClient with a DefaultedHttpParams to get similar
> functionality.
> 
> The method DefaultHttpClient.createHttpParams() creates a default set
> of parameters (HttpVersion etc.), however it is not static (so it
> means creating a temporary HttpClient) and it forces one to use
> SyncBasicHttpParams.
> 
> This makes it harder than it could be to create the initial parameter set.
> 
> I think it would be useful to expose the defaults as a static method,
> with parameter HttpParams, and call that from createHttpParams().
> 
> Any objections to adding that?

I guess not.

> Or is there a better way of achieving the same goal?
> Perhaps the defaults belong in AbstractHttpClient?
> 

Overriding AbstractHttpClient#determineParams() method and returning a
stack consisting of request, client and global parameters would probably
be the least intrusive.

Oleg



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

Reply via email to