Hello,
one way is to filter the incoming requests. You can place a filter before the
router which aims at updating the URLs. For example, when configuring an
subclass of Application:
public Restlet createInboundRoot() {
Router router = new Router(getContext());
Filter filter = new Filter(getContext(), router) {
@Override
protected int beforeHandle(Request request, Response response) {
// handle the request's url
return Filter.CONTINUE;
}
};
return filter;
// return router;
}
Best regards,
Thierry Boileau
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2681227