You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Ortwin Glück <or...@nose.ch> on 2005/01/08 18:01:32 UTC

Re: HttpClient API redesign: high level component architecture (d raft 1)

Dennis Cook wrote:
> Ortwin,
> 
> I understand that actually providing a cache implementation would be beyond
> the scope, but if an interface and empty stub provided, the implementation
> could be left to a contrib or an excercise for the user.
> 
> Dennis Cook


Dennis,

isn't the interface there already? It's called HttpClient. It's not 
litartally an interface, but you can always subclass it and wrap the 
cache around Http Client.

HttpClient client = new CachingHttpClient();
HttpMethod get = new GetMethod("http://....");
client.exeucte(get);


If you like you can also implement the cache on a per-method level:

HttpClient client = new HttpClient();
HttpMethod get = new CachingGetMethod("http://....");
client.exeucte(get);

So, if we are not going to implement the actual caching, there isn't 
much left to do really.

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