RE: how to use Guard to protect confirmed URIs

2009-08-17 Thread Jerome Louvel
Hi Fabian, Cool! Thanks for the detailed reply. Cheers, Jerome -Message d'origine- De : Fabian Mandelbaum [mailto:fmandelb...@gmail.com] Envoyé : lundi 17 août 2009 16:04 À : discuss@restlet.tigris.org Objet : Re: how to use Guard to protect confirmed URIs Hi Jerome, Since the

Re: how to use Guard to protect confirmed URIs

2009-08-17 Thread Fabian Mandelbaum
~ Co-founder ~ http://www.noelios.com > > > > -Message d'origine- > De : Fabian Mandelbaum [mailto:fmandelb...@gmail.com] > Envoyé : vendredi 31 juillet 2009 01:58 > À : discuss@restlet.tigris.org > Objet : Re: how to use Guard to protect confirmed URIs > >

RE: how to use Guard to protect confirmed URIs

2009-08-17 Thread Jerome Louvel
~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine- De : Fabian Mandelbaum [mailto:fmandelb...@gmail.com] Envoyé : vendredi 31 juillet 2009 01:58 À : discuss@restlet.tigris.org Objet : Re: how to use Guard to protect confirmed URIs

Re: how to use Guard to protect confirmed URIs

2009-07-30 Thread Fabian Mandelbaum
For all it's worth, I've downloaded Restlet 1.1.5, coded a small test application with the following createRoot() method: @Override public synchronized Restlet createRoot() { Router router = new Router(getContext()); router.attach("/", RootFolderResource.class); router.

Re: how to use Guard to protect confirmed URIs

2009-07-29 Thread Fabian Mandelbaum
Hello Thierry, Johnson, I've tried a similar strategy as the one described by Thierry, but with Restlet 2.0-snapshot (both from 2009-07-09 and last one from 2009-07-29) and get 404 (HTTP Not Found) errors all over the place. The createRoot() method is as follows: @Override public synchronized

Re: how to use Guard to protect confirmed URIs

2009-07-16 Thread Thierry Boileau
Hello Johnson, this information is specific to the HTTP_DIGEST authentication scheme, here is the related excerpt from the rfc 2069 : domain A comma-separated list of URIs, as specified for HTTP/1.0. The intent is that the client could use this information to know the set of URIs

RE: Re: how to use Guard to protect confirmed URIs

2009-07-16 Thread Johnson
Thanks thboileau, yes, you are right. but I still don't understand what baseUris means in Guard class. what can we do with it? Do we just use it like: Collection baseUris = new ArrayList(); then put empty baseUris into the constructor of Guard or its subclass? can I put something into it or

Re: how to use Guard to protect confirmed URIs

2009-07-15 Thread Thierry Boileau
Hello Johnson, you can code your "routing" logic as follow (I mean in the Application#createRoot method). Router router = new Router(getContext()); /// Defines the routes, relatively to the root uri "/customers") Router customerRouter = new Router(getContext()); customerRouter.attach("", ...); /

how to use Guard to protect confirmed URIs

2009-07-15 Thread Johnson
hi, I add some description for the topic above: actually the scenario is like that: I just want to protect some of all resources like /customers, /customers/{customerId}, /customers/{customerId}/orders etc. but not including some other resources such as /users, /users/{userId} etc. if I want