Jerome Louvel wrote:

This is hard to determine the best default case. It seemed more common to
rely on hierarchical routing (partial match) than flat routing (exact
match).
That would be interesting to other users' feed-back on routing practices.

Could well be. I'm coming at this from the perspective of building a web application, and I'm not so familiar with other uses.

Just to let you know where I'm coming from, I'm just mapping particular resources, and wanting everything else to have a central 404 handler. That lets me write less guard code in each of my restlets to handle incorrect URLs.

I've added a "defaultMatchingMode" property to Router and don't call
createRoute() anymore for the default route. Checked in SVN trunk!

Fab. That solves my problem perfectly. Thanks!

William

--
William Pietri - [EMAIL PROTECTED] - +1-415-643-1024
Agile consulting, coaching, and development: http://www.scissor.com/
Use your geek-fu to fight poverty: http://www.mifos.org/

Reply via email to