Hi Bruno,
now a Restlet given with JaxRsRestlet.attachDefault(Restlet) handles all
requests, where no root resource class, no resource class or no resource
method is found.
To give different Restlet for this cases there are some methods
JaxRsRestlet.setNo*handler(Restlet).
best regards
Stephan
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?
Yes, I'd like that.
IMO the situation can't be easily compared with org.restlet.Router, as
that one has no knowledge of the internal behavior of the attached
Restlet's (nor does it say anything about what kinds of restlets can be
attached), while the JAX-RS system defines and controls the complete
routing up to potential sub-resources.