Is this it?

        Route uriRoute = router.attach("/users/{username}/tags/{Name}",
TagResource.class);
        Route r = router.attach("/users/{username}/tags/{Name}/{args}",
TagResource.class);
        r.getTemplate().getVariables().put("args", new
Variable(Variable.TYPE_URI_QUERY)); 

-----Original Message-----
From: Klotz, Leigh 
Sent: Monday, June 11, 2007 4:02 PM
To: '[email protected]'
Subject: Route templates and path info

Is there a way to use a Template in a route that both matches an initial
pattern and provides the Resource the ability the Path Info from the
Request?

For example,

        Route uriRoute = router.attach("/users/{username}/tags/{Name}",
TagResource.class);

/users/fred/tags/abcdef/more/stuff

Class TagResource {
        ..
      String pathInfo = request.getPathInfo(); // ==> "/more/stuff"

I've read 
  http://www.restlet.org/documentation/1.0/tutorial#part11
and not seen the answer there.

Thank you,
Leigh.

Reply via email to