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 20:21:44 GMT
On Wed, 2010-12-15 at 19:12 +0000, sebb wrote:
> On 15 December 2010 15:26, Oleg Kalnichevski <olegk@apache.org> wrote:
> > ...
> >
> >> 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.
> >>
> 
> It's easy create a new Set with the current set of names - much harder
> to create a read-only Set that tracks subsequent changes to both local
> and default sets - so I propose to create a new Set in each case, i.e.
> the Sets will be a snapshot of the current names.
> 
> This also completely decouples the output from the implementation.
> 
> I've updated SVN accordingly.
> 

Looks ok to me.

Oleg



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


Mime
View raw message