hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Defining preferences using properties
Date Thu, 14 Sep 2006 13:15:49 GMT
Just wondering if there are any plans to allow default preferences to
be picked up from java properties?

So for example, one could define

http.protocol.element-charset=ISO-8859-1

and have that automatically added as the default preference.

An application can of course do this itself, by scanning the system
properties looking for any with the appropriate prefix, or it could
process an httpclient.properties file.

But it might be useful to be able to change the preferences without
needing to write any application code. For example, for embedded
applications.

We're probably going to have to do this anyway for JMeter; of course
the code could be added to HttpClient if it was thought useful (e.g.
we could provide patches).

So: is there any interest in making this part of HttpClient?

And how best to add it?
- scan for prefixed properties
- read props from httpclient-specific property file
- update code to check system property as last resort.

S///

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


Mime
View raw message