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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to