Thank you for the response...
My simplified test code is now:
public final Restlet createInboundRoot() {
Router router = new Router(getContext());
router.attach("/v1/", RootServerResource.class);
router.attach("/v2/", RootServerResource.class);
GaeAuthenticator guard = new GaeAuthenticator(getContext());
router.attach("/v1/", guard, Template.MODE_STARTS_WITH);
guard.setNext(router);
return guard;
}
But in the browser, both the paths /v1/ and /v2/ bring up the guard. I am not
sure why that happens, but that is what seems to be the result.
Thanks for the suggestion (it definitely met the "easy" part of the
qualification)!
RB
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2960926