Hello,

when you attach your application at your component, you can specify a root URL:

component.getDefaultHost().attach("/firstResource", new 
FirstResourceApplication());


Inside your application, if you want to define a root URL for a set of 
branches: just attach a router:

Router root = new Router(getContext());

Router branch1 = new Router(getContext());
branch1.attach("​/items", ItemsResource.class);
branch1.attach("​/items/{itemName}​", ItemResource.class);

root.attach("​/branch1", branch1);

return root; 


Best regards,
Thierry Boileau

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

Reply via email to