Re: Guards and authentication mechanisms

2008-05-30 Thread Rhett Sutphin
Hi Bruno, This general idea is good. I have one small objection, though: HTTP allows multiple challenges per 401 response. This means you might want to have a guard with parallel authentication checks. For this reason, I don't think that subclassing Guard per authentication scheme

Life Cycle of a Restlet

2008-05-30 Thread Thomas
Hello, I've got some troubles concerning the integration of a database into a webservice. The whole service is running on a Tomcat server, the database is a db4o. When I stop and restart the server I can't access the dbo file I once created, because the file isn't closed properly. So how or

MODE_ENDS_WITH?

2008-05-30 Thread Ralf Bommersbach
Hello, its me again. I see that the Template class support a MODE_STARTS_WITH and MODE_EQUALS but no MODE_ENDS_WITH. I think that would be very helpful in many use-cases, for example if you have a URL like /.../.../.../result where the path before the result-resource is variable but you

Re: Life Cycle of a Restlet

2008-05-30 Thread Thomas
I've placed the stop method in the application class, but it didn't work. Here's the code, may you can help me out? public void stop() { this.container.close(); try { super.stop(); } catch (Exception e) { e.printStackTrace() } } thanks

Re: Life Cycle of a Restlet

2008-05-30 Thread Thomas
here I've also posted some of the exceptions. I'm not really sure if the problem is the closing of the database, maybe there are other things that don't work. at com.db4o.query.Predicate.appliesTo(Unknown Source) at com.db4o.internal.query.PredicateEvaluation.evaluate(Unknown Source) at

Re: Life Cycle of a Restlet

2008-05-30 Thread Stephan Koops
You could rethrow the catched Exception, if you want. But this construction checks, that you see all Exceptions Stephan Thomas schrieb: I've placed the stop method in the application class, but it didn't work. Here's the code, may you can help me out? public void stop() {