Re: Injecting Restlet resources with Guice

2008-07-24 Thread Rob Heittman
Hey, that's cool! Our last dialogue about Guice left me interested, but head-scratching about how that could be useful in my world. This is a very practical example! On Thu, Jul 24, 2008 at 5:05 PM, Tim Peierls <[EMAIL PROTECTED]> wrote: > I wrote up a progress report on my use of Guice to inje

Injecting Restlet resources with Guice

2008-07-24 Thread Tim Peierls
I wrote up a progress report on my use of Guice to inject Restlet resources. http://tembrel.blogspot.com/2008/07/resource-dependency-injection-in.html Nothing earth-shaking, but it makes Restlet application programming a tad more comfortable for me. --tim

Re: Using Prototype.js with Restlet

2008-07-24 Thread Eric Vuillermet
Hi Jerome, Gal and Thierry, Thanks for your inputs on this subject. I ended up sending a request to the Prototype.js team to make the tunneling of PUT and DELETE through POST optional. PUT and DELETE are handled by the latest versions of the major browsers (IE, FF, Safari) so it would make sens

How to filter Log Messages ?

2008-07-24 Thread Jaime Santana
Hi, I've been trying several way to filter the messages I get in my tomcat console.. message like these: Jul 24, 2008 12:41:46 PM com.noelios.restlet.LogFilter afterHandle INFO: 2008-07-2412:41:4610.99.17.114- 10.99.17.114 80 GET /webportal/rest/users/9725552109

Re: Support for log4j?

2008-07-24 Thread Aaron Crow
Hi Evgeny, Sure, I will. First though, I'd like to say that I don't consider it the ideal solution. In my case I just want the Restlet's access logs, and if I can emulate those myself with my own logging statements, I'll be happier. That being said, here's what I did to redirect Restlet's JDK

Re: Using JAAS with JAX-RS

2008-07-24 Thread Roman Geus
Hi Stephan Stephan Koops wrote: Hi Roman, you could use the static method Request.getCurrent(). Thank you, that seems to work fine for me. For what do you need this access? I decided to not give access to it for now, because I see no advantage for it, and because I had to create a proxy clas

RE: Support for log4j?

2008-07-24 Thread Jerome Louvel
Hi Aaron, The best way to reproduce the same logging mechanism directly using log4j is to write a Filter subclass similar to com.noelios.restlet.LogFilter. You could either customize this class or provide an alternative one added as the root of your application or in your component if you have

Re: Using JAAS with JAX-RS

2008-07-24 Thread Stephan Koops
Hi Roman, you could use the static method Request.getCurrent(). For what do you need this access? I decided to not give access to it for now, because I see no advantage for it, and because I had to create a proxy class for it. Perhaps I could do it later. best regards Stephan Roman Geus sc

Re: Using JAAS with JAX-RS

2008-07-24 Thread Roman Geus
Hello Stephan Thanks for your reply. Does this mean, that there is currently no way to access the org.restlet.data.Request object from within a JAX-RS resource class? Thanks, -- Roman Stephan Koops wrote: Hi Roman, I've planned to allow Servlet authentification etc. for JAX-RS. Because th

Re: Using JAAS with JAX-RS

2008-07-24 Thread Stephan Koops
Hi Roman, I've planned to allow Servlet authentification etc. for JAX-RS. Because the Restlet team plans to redesign the authentication etc., it was moved to later, after Restlet 1.1, to have enough time for implementing and testing. Roman Geus schrieb: Hi all I'm new to Restlet and I woul

Using JAAS with JAX-RS

2008-07-24 Thread Roman Geus
Hi all I'm new to Restlet and I would like to implement a REST interface for my Java application using the JAX-RS API. My application uses the JAAS framework for authentication vs a Windows Active Directory and also for authorization. I have written a custom Guard for doing HTTP basic authenti

Re: Support for log4j?

2008-07-24 Thread Evgeny Shepelyuk
Hello Aaron ! Would u be so kind to share how u set up slf4j to be used as a bridge from restlet to log4j ? -- Best Regards Evgeny K. Shepelyuk