New user here trying to wrap my head around the routing... When I use the following App class createInboundRoot() method I get 404's when I try to access either /licenses/{license}/valid or /licenses/{license}/valid. When I comment out one of the lines or the other the remaining one _can_ be accessed. This happens whether or not I use MODE_STARTS_WITH.
public class App extends Application { @Override public synchronized Restlet createInboundRoot() { // Create a router Restlet that routes each call to new instances of the appropriate class Router router = new Router(getContext()); // Define routes router.setDefaultMatchingMode(Template.MODE_STARTS_WITH); router.attach("/licenses/{license}/valid", LicensesValidResource.class); router.attach("/licenses/{license}/usage", LicensesUsageResource.class); return router; } } Any help on how I can route both /licenses/{license}/valid and /licenses/{license}/usage would be appreciated. Also is it good. bad or indifferent form to route them both (once we get that working) to the same resource class? In this case that'd be LicensesResource. Thanks in advance. Chris ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2883962