Re: Router and URLs with extra stuff at the end

2007-03-22 Thread Stokes
Thierry Boileau thboileau at gmail.com writes: Ooops, I forget : you also need to set the equals mode when routing to fooListFinder, otherwise this route will catch the garbage URLs. Best regards, Thierry Boileau Thanks, that worked for me. I did need the ?{fooQuery} part, although I

Re: Router and URLs with extra stuff at the end

2007-03-22 Thread Thierry Boileau
Hello Stokes, the behaviour of variables is based on the URI specification (http://gbiv.com/protocols/uri/rfc/rfc3986.html). This spec definies precisely each part of an Uri, give them a name and a list of allowed characters. For example : - a segment can contain alphabetical characters,

Re: Router and URLs with extra stuff at the end

2007-03-20 Thread Thierry Boileau
Hello Stokes, The routing mechanism is based on Template objects (http://www.restlet.org/documentation/1.0/api/index.html?org/restlet/util/Template.html) and Variable objects. When defining a route with the attach method, a Template object is created and then associated with this route. This

RE: Router and URLs with extra stuff at the end

2007-03-20 Thread Jerome Louvel
Hi Stokes, Depending on the type of routing it maybe desirable to require an exact match of the target URI (like in your case) or simply a match of the start of the target URI (like in the case of a Directory finder). The Router class uses the second mode (Template.START_WITH) by default when

Re: Router and URLs with extra stuff at the end

2007-03-20 Thread Thierry Boileau
Ooops, I forget : you also need to set the equals mode when routing to fooListFinder, otherwise this route will catch the garbage URLs. Best regards, Thierry Boileau Hello Stokes, The routing mechanism is based on Template objects