RE: Confusion with filter

2009-06-12 Thread Marc Lerma
I'm also confused about the use of filters. I'm trying to apply a security filter in order to check whether the user is authenticated before accessing the resources, but it seems to me that it's never being applied. I've tried to debug the code and the filter is never called before handling a

Re: Confusion with filter

2009-06-12 Thread Jonathan Hall
You should be returning securityFilter not the router. Then the securityFilter does it's thing and moves onto the next restlet chain (router) jon Marc Lerma wrote: I'm also confused about the use of filters. I'm trying to apply a security filter in order to check whether the user is

RE: Confusion with filter

2008-02-23 Thread Jerome Louvel
() will be called concurrently. Changes in SVN trunk. Best regards, Jerome -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Tim Peierls Envoyé : vendredi 22 février 2008 21:52 À : discuss@restlet.tigris.org Objet : Re: Confusion with filter Thierry, I'm

Confusion with filter

2008-02-22 Thread Chris
I'm new to restlet and I'm having trouble understanding how to connect a filter. I've instantiated my filter but it isn't active. Do I need to attach it to the router? Nothing I've tried seems to work. regards, -Chris

Re: Confusion with filter

2008-02-22 Thread Thierry Boileau
Hi Chris, assuming that you you are using an application like that : public class YourApplication extends Application { @Override public synchronized Restlet createRoot() { Router router = new Router(getContext()); //defines routes ... return router; } }

Re: Confusion with filter

2008-02-22 Thread Chris
Yes thats perfect. Thank you. Now I understand a little better and things are starting to click. thx, -Chris Thierry Boileau wrote: Hi Chris, assuming that you you are using an application like that : public class YourApplication extends Application { @Override public synchronized

Re: Confusion with filter

2008-02-22 Thread Tim Peierls
Thierry, I'm curious: Why is createRoot() synchronized? --tim On Fri, Feb 22, 2008 at 2:18 PM, Thierry Boileau [EMAIL PROTECTED] wrote: Hi Chris, assuming that you you are using an application like that : public class YourApplication extends Application { @Override public