hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: HttpParams read-only access as Set
Date Wed, 15 Dec 2010 15:26:53 GMT
...

> In the case of DefaultedHttpParams, I think the local names should
> also be made available, e.g. through a method such as getLocalNames().
> But the default getNames() should include all names.
> 
> The default names can be easily extracted using getDefaults().getNames().
> 
> Though I do wonder why the getDefaults() method is present: given that
> defaults are supposed to be immutable, it seems odd to expose the
> field and thus permit updates to it.
> 
> Perhaps the method should be deprecated?
> Or maybe the method should return an immutable view of the defaults?
> 

Agreed. Feel free to deprecate it.

Oleg



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


Mime
View raw message