cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <andr...@apache.org>
Subject Re: ResourceExists does not work on cocoon: protocol requests?
Date Mon, 11 Oct 2004 08:56:24 GMT
Vadim Gritsenko wrote:
> Nicola Ken Barozzi wrote:
> 
>> In fact IIUC, in SitemapSource I see:
>>
>>     /**
>>      *
>>      * @see org.apache.excalibur.source.Source#exists()
>>      */
>>     public boolean exists() {
>>         return true;
>>     }
> 
> 
> The problem is that the only way to actually test whether sitemap source 
> exist or not is to try and generate this sitemap resource - which might 
> be expensive operation.

Hmmm, it seems strange to me to return "true" instead of
doing an expensive operation. Is there any special reason
for that? Or was there an agreement that SitemapSource.exists()
is not well-defined?

-- Andreas


Mime
View raw message