On 4/9/07, Thierry Boileau <[EMAIL PROTECTED]> wrote:
Hello Alex,
I have a question : why do you need to route your admin application to
"/admin/"?
Is it because you notice that another URIs such as "/adminblahblah", are
routed to your application too?
Yes. Those uri values are "unknown" to the AdminApplication restlet.
If so, you can specify the way this route must match the URIs :
Route route = router.attach("/admin/", new AdminApplication(...));
route.getTemplate().setMatchingMode(Template.MODE_EQUALS)
Everything is working fine without "mode equals". The problem I have
is that routing inside the AdminApplication depends upon how you
setup the route for the AdminApplication restlet.
I suspect the right answer here is to attach the AdminApplication to
"/admin" with out the trailing slash. Then the routes inside the
AdminApplication
restlet can be things like "/" or "/user/{user}".
I want the ability to host the AdminApplication restlet on a different host and
port combination without the "/admin" prefix.
--Alex Milowski