Hi Bruno,
Great work. I've tested it, it works fine and fits my needs.
Fine.
One comment though: I see the default route is only used when a root
resource is not found, not when a sub resource is not found. But from my
point of view, I'm only interested in whether there is some resource
which can handle the requested URI, I don't care if it is the root or
sub resource which is missing. IIUC, everything which can be done with
sub resources can also be done with root resources, so it seems like an
implementation detail to me. So I would call the default route in both
cases. What do you think?
The JaxRsRouter has now the same behaviour as in the org.restlet.Router.
If this Router finds a Route ("root resource class") and gave it the
request, but the reached Restlet could not forward the request (no "sub
resource class"), than the defaultRestlet will not catch this error.
In older versions I gave the possibility for such cases. Should I
reimplement it?
best regards
Stephan
I've just implemented a method JaxRsRetlet.attachDefault(Restlet). It is
available in the trunk now. Please test it and let me now, if it works.
The attached Restlet should get the same Reference value etc. as you
give in the JaxRsRestlet.