Hi Guys,
I seems to have a route scoring problem.
Here are the two routes:
/customers --> resourceA
/customers?surname={bla} --> resourceB
My router currently has the following properties set:
router.setDefaultMatchingMode(Template.MODE_EQUALS);
router.setRoutingMode(Router.MODE_BEST_MATCH);
router.setDefaultMatchingQuery(false);
Now the 2nd route that specifies the query parameters, i specifically enable
the searching on the query portion.
i.e.
route.setMatchingQuery(true);
The test uri i'm testing with is:
/customers?surname=adams
The problem is that currently, both routes are scoring 1.
Is there any other hint i can give restlet that the 2nd route should score
greater than the first route?
How have have you handled similar problems?
--KD
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2455043