-----Original Message-----
>From : David Rauschenbach [mailto:[EMAIL PROTECTED] 
Date : mercredi 27 décembre 2006 17:32
To : [EMAIL PROTECTED]
Object : Restlet base URI versus relative path

Hello,

I've been using the restlet API and Noelios container for a few weeks  
now, with satisfactory results. This is fine work, and a useful  
abstraction.

It seems wrong to me that Request.getBaseRef() does not return a  
trailing slash, and especially wrong that Request.getResourceRef()  
begins with a slash. This concept is in particular dis-harmony with  
WebDAV, which is the extension of the HTTP spec that extends it for  
read/write operations.

In WebDAV, as well as in industry current-best-practices such as  
default Apache configurations, trailing shashes are formalized to  
mean "resource collection", such as directories. The same goes for  
Rails and ActiveResource/REST, where a relative path of person with  
id=1 should be relativePart="1" and baseURI="http://<server:port>/ 
persons/" or whatever, the case of a url "http://<server:port>/ 
persons/1".

David

<<attachment: winmail.dat>>

Reply via email to