Hi Stephan,

Great work. I've tested it, it works fine and fits my needs.

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 ExceptionHandler patch is indeed outdated now.

On Fri, 2008-11-14 at 01:31 +0100, Stephan Koops wrote:
> Hi Bruno,
> 
> 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.
> So your patch for the ExceptionHandler is outdated, right?
> 
> best regards
>    Stephan
> 
> Bruno Dumon schrieb:
> >> Hi Bruno,
> >>
> >> I looked into the org.restlet.Router. I think the method 
> >> attachDefault(Restlet) does exact what you want for the Router, right?
> >> I could also implement this for the JaxRsRouter. This is very easy to 
> >> implement and analogue to Router.
> >>     
> > Thierry suggested this earlier. I then thought it wouldn't help, but
> > thinking about it again, I don't see why not. So yes, this would solve
> > my problem. It would be very helpful if you could implement it.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought                            http://www.daisycms.org/
[EMAIL PROTECTED]              http://www.kauriproject.org/

Reply via email to