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
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
() 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
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
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;
}
}
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
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
7 matches
Mail list logo