Hi list,

I almost have a working Provider now, and I have a few questions. I'll 
work to see if I can find answers to them myself, but here's one that I 
haven't found an answer to:

Looking at the code, I can't see the the exists() method is used 
anywhere. What is the purpose of exists(), and how does it relate to 
process()? 

Two interpretations of what process() should say comes to mind, either

"yeah, it is my job to process this resource, but you've gotta ask 
exists() if it is actually here" or, process() should itself call 
exists() to see if the resource exists.

Reading the docs, I think it seems that the job of process() is also to 
determine if the resource exists, so the latter interpretation seems 
correct, but then, what would we need exists() for?

Another aspect I wonder about is whether process() should have the final 
say in if there is a sensible resource there, as opposed to just an 
error page (which may indeed contain useful directions for the user)? 
If process() returns 1, there should be a sensible resource there, or 
is this something that can be left to exists() to decide?

It also seems sensible that whenever exists() returns false, a 404 
response should be sent to the client, as the default behaviour. Does 
this happen?

Cheers,

Kjetil
-- 
Kjetil Kjernsmo
Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer
[EMAIL PROTECTED]  [EMAIL PROTECTED]  [EMAIL PROTECTED]
Homepage: http://www.kjetil.kjernsmo.net/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to