I have a specialized Redirector that redirects to a URI based upon the language 
of the request.  I have a URI template that I use to insert a language 
qualifier into a resource path (e.g. portal/content/foo -> portal/d/en/foo).  
This resource is attached to the "content" path using MODE_STARTS_WITH.  The 
redirected path (e.g. portal/d) is attached to a Directory resource where I 
serve up some static files from the filesystem.

Is there a way I can determine if a particular file or directory exists, and if 
it doesn't redirect to some standard location (e.g. portal/d/en)?  The use case 
is, if I encounter an Accept-Language that I do not have content for, I just 
use the files located in "en".

I am free to adjust the URI scheme and what resources are attached to each 
route in order to support this.

Thanks

ba

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2653828

Reply via email to