Hi all, I'm trying to port the restlet-gwt sample to a jax-rs style using the appropriate classes and annotations. However, I do not know how to set two guards on a same resource.
In the original sample, two guards performing basic and digest authentication were added on two different urls /guarded and guarded_digest. This was possible since the router.attach method was being invoked. Now I'm wondering whether the same thing is possible to achieve using a JsrApplication instance. If I use the setGuard method I'm unable to distinguish which Guard should be invoked depending on a particular url. So how can I do? May someone help me? The documentation at the link: http://wiki.restlet.org/docs_1.1/13-restlet/28-restlet/57-restlet.html is a little vague and according to previous posts, it also seems to be partially wrong since the createRoot method is being missed and all the activity has been moved to the construcor. Moreover, the ExampleApplication should extend ApplicationConfig and not Application, if I do not get wrong. Thanks to alla for your support. It's a really great project and I'd like to contribute for it. -- View this message in context: http://n2.nabble.com/how-to-provide-several-guards-for-a-resource-when-using-jax-rs-extensions-tp1619094p1619094.html Sent from the Restlet Discuss mailing list archive at Nabble.com. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=980176

