Hi Thierry!

I tried as you suggested:
// Attach subscriptions resource.
Route subscriptionsRoute = 
router.attach("/rms/channels/{topicPath}/subscriptions", 
SubscriptionsResource.class);
        subscriptionsRoute.getTemplate().setMatchingMode(Template.MODE_EQUALS);
Map<String, Variable> subscriptionsRouteVariables = 
subscriptionsRoute.getTemplate().getVariables();
subscriptionsRouteVariables.put("topicPath", new Variable(Variable.TYPE_ALL));
        
// Attach publishers resource.
Route publishersRoute = router.attach("/rms/channels/{topicPath}/publishers", 
PublishersResource.class);
        
publishersRoute.getTemplate().setMatchingMode(Template.MODE_STARTS_WITH);
Map<String, Variable> publishersRouteVariables = 
publishersRoute.getTemplate().getVariables();
publishersRouteVariables.put("topicPath", new Variable(Variable.TYPE_ALL));

But still does not work. I get the same problem. No idea why. I could try to 
add one more route then containing "subscriptions/". Then I guess it should 
work, but it will be more like a hack...

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

Reply via email to