You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Roland Weber <ht...@dubioso.net> on 2006/05/21 17:01:50 UTC

Re: svn commit: r408172 - in /jakarta/httpcomponents/httpcore/trunk/src: contrib/org/apache/http/contrib/benchmark/ java/org/apache/http/protocol/

Hi Oleg,

>>What is the advantage of an extra interface over a flag attribute
>>as was used in HttpClient?
> 
> It does not pollute the interface of the base class.

But it requires two implementation classes.

> To me this is
> certainly an advantage but I can have it either way

I also can have it either way. Let's leave it as it is
until others share their views with us.

> GeneratedHeader is merely a marker subclass of the Header class. This
> still does not preclude us from using request wrappers or any other
> techniques to deal with automatically generated headers. 

Yes, but we'd have two ways to do the same thing then.
Anyway, that's a different story.

cheers,
  Roland

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


Re: svn commit: r408172 - in /jakarta/httpcomponents/httpcore/trunk/src: contrib/org/apache/http/contrib/benchmark/ java/org/apache/http/protocol/

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Sun, 2006-05-21 at 17:01 +0200, Roland Weber wrote:
> Hi Oleg,
> 
> >>What is the advantage of an extra interface over a flag attribute
> >>as was used in HttpClient?
> > 
> > It does not pollute the interface of the base class.
> 
> But it requires two implementation classes.
> 
> > To me this is
> > certainly an advantage but I can have it either way
> 
> I also can have it either way. Let's leave it as it is
> until others share their views with us.
> 
> > GeneratedHeader is merely a marker subclass of the Header class. This
> > still does not preclude us from using request wrappers or any other
> > techniques to deal with automatically generated headers. 
> 
> Yes, but we'd have two ways to do the same thing then.
> Anyway, that's a different story.

Actually, we already have two APIs: HttpCore and HttpClient. One geared
towards efficiency and flexibility while another one geared more toward
feature richness and simplicity. Sometimes that means doing the same
things two ways

Oleg

> 
> cheers,
>   Roland
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> 
> 


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