On Mar 10, 2008, at 1:45 AM, Thierry Boileau wrote:
I've tested this code below with both Restlet 1.1 (snapshot) and Restlet 1.0.8 and it works. Could you tell us more about your code?
I have my own classes derived from Directory and DirectoryResource. I override DirectoryResource.handleGet(). In handleGet(), I need to know what the Directory's "root directory" is so I call Directory.getRootRef().getPath(). The path it returns is URL-encoded, e.g., spaces are encoded as %20. This is why my code fails (because it needs to be decoded first).
So the question is: should Reference.getPath() (and other get*() methods) return their component strings already decoded? This would parallel URI.getPath(). If you really want the original form, there's URI.getRawPath() and there could correspondingly be Reference.getRaw*() methods.
- Paul

