RE: Modifying the response headers

2008-07-30 Thread loic.mathieu
Hello, I'm not sure I understand your answer. I try to remove the third line ( response.getAttributes().put("org.restlet.http.headers", headers);) and in this case, the headers was not updated anymore (sounds logical for me)! So, my issue still exist, when I revcover the headers, add mines and

RE: ExecutorService (Was: 1.1m4 release notes)

2008-07-30 Thread Jerome Louvel
Hi Kevin, Good idea! I've added a protected createThreadFactory() method to TaskService (ex-ExecutorService). By default it names threads with a "restlet-" prefix. The implementation is based on the code of Executors#defaultThreadFactory from Doug Lea (public domain). Another step could be t

RE: Modifying the response headers

2008-07-30 Thread Jerome Louvel
Hi Loic, When you get this message, you should check on this page the mapping between HTTP headers and Restlet API properties: http://wiki.restlet.org/docs_1.1/g1/43-restlet/130-restlet.html Make sure you only use the headers attribute for headers that are not supported directly by the API. Bes

Authorizing incoming requests

2008-07-30 Thread prashant
Hi All, I want to authorize each incoming request to my app based on some URl to roles mapping (created an XML for this). I am not sure how to use Guard class of restlet frame work for this purpose.I am new to restlet framework. Also, could not find any tutorials or examples on web for doing thi

RE: Important Context changes

2008-07-30 Thread Jerome Louvel
Hi Alex, 1) More internal Context refactoring I've done more context related refactoring (NRE internals), formalizing the concept of child context by renaming ApplicationContext into ChildContext. Now, your Directory instances attached to a VirtualHost should also be given a child context with

RE: Authorizing incoming requests

2008-07-30 Thread Jerome Louvel
Hi Prashant, Please have a look at this tutorial part: http://www.restlet.org/documentation/1.1/tutorial#part09 Best regards, Jerome -Message d'origine- De : news [mailto:[EMAIL PROTECTED] De la part de prashant Envoye : mercredi 30 juillet 2008 11:33 A : discuss@restlet.tigris.org Ob

Re: Authorizing incoming requests

2008-07-30 Thread prashant
Jerome Louvel noelios.com> writes: > > > Hi Prashant, > > Please have a look at this tutorial part: > http://www.restlet.org/documentation/1.1/tutorial#part09 > > Best regards, > Jerome > > -Message d'origine- > De : news [mailto:news ger.gmane.org] De la part de prashant > Envoye

RE: Modifying the response headers

2008-07-30 Thread loic.mathieu
I exactly do what it's my mail, I just add my custom header (not in the list) and then I got all the warnings! -Original Message- From: Jerome Louvel [mailto:[EMAIL PROTECTED] Sent: 30 July 2008 09:52 To: discuss@restlet.tigris.org Subject: RE: Modifying the response headers Hi Loic,

RE: Authorizing incoming requests

2008-07-30 Thread Jerome Louvel
Hi Prashant, Please find attached a Guard subclass that checks the password against an encrypted file in the same format as Apache .htpasswd files. The best source of information for subclassing Guard is the Javadocs and the Wiki: "Securing a Restlet application" http://wiki.restlet.org/docs_1

RE: Modifying the response headers

2008-07-30 Thread Jerome Louvel
Oh, I see now. Then it's probably a bug! :-) If you have time to file a bug report that would help: http://www.restlet.org/community/issues Best regards, Jerome -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : mercredi 30 juillet 2008 14:03 À : discuss@re

RE: Modifying the response headers

2008-07-30 Thread loic.mathieu
Issue opened: http://restlet.tigris.org/issues/show_bug.cgi?id=538 -Original Message- From: Jerome Louvel [mailto:[EMAIL PROTECTED] Sent: 30 July 2008 14:31 To: discuss@restlet.tigris.org Subject: RE: Modifying the response headers Oh, I see now. Then it's probably a bug! :-) If you hav

Re: SSL + Virtual Hosts and Issue #489?

2008-07-30 Thread Bruno Harbulot
Hello, Following the changes in the way Components can be configured (latest subversion revisions), configuring SSL to use an SslContextFactory is now possible this way: 1. Using the DefaultSslContextFactory: http://www.restlet.org/schemas/1.1/Component"; xmlns:xsi="http://www.w3.

Re: ExecutorService (Was: 1.1m4 release notes)

2008-07-30 Thread Tim Peierls
This looks good. A few minor details: - Could rename variable jdkExecutorService to executorService, since it's no longer ambiguous. - Instead of copying the code to DefaultThreadFactory, could have RestletThreadFactory decorate it: private static class RestletThreadFactory implem

Restlet Servlet and Security

2008-07-30 Thread mshaffer55
I am evaluating Restlet for use in my company's JEE-based products. My main concern at this point is how to make the Restlet servlet fit into our security regime. Our existing servlets are chained to a filter that is the entry point into this regime. In our environment, authentication can be expens

Re: Restlet Servlet and Security

2008-07-30 Thread Rob Heittman
There's no problem running a Restlet application behind a filter that does its own security operations. You will have a bit of drama getting to the HttpSession. There is not an equivalent session mechanism in Restlet, as server side sessions are counter to the REST pattern. I would create another

Re: Restlet Servlet and Security

2008-07-30 Thread mshaffer55
Thanks for the rapid response. We are in the very early stages of looking at this, so it would be premature to claim that there is actually any "design" to speak of. I'm just asking noob questions at this point. I am not even sure we really want/need to do session tracking for the web services clie

Re: Restlet Servlet and Security

2008-07-30 Thread Rob Heittman
Yes, that would be enough to make specific recommendations. Then you could either subclass or modify #2 to load appropriate authentication or authorization details into a place Restlet can leverage, or chain a filter 2a that does this work. If you could share a simple fake version of your existin

Re: Authorizing incoming requests

2008-07-30 Thread prashant
Jerome Louvel noelios.com> writes: > > > Hi Prashant, > > Please find attached a Guard subclass that checks the password against an > encrypted file in the same format as Apache .htpasswd files. > > The best source of information for subclassing Guard is the Javadocs and the > Wiki: > > "Se

RE: Hi, friends

2008-07-30 Thread Jerome Louvel
Hi Reiner, In Restlet 1.1 M4, you don't need to use the SpringApplication class anymore as we have added similar features on Application class directly. Just use org.restlet.Application instead. Best regards, Jerome _ De : Reiner Rodriguez Alvarez [mailto:[EMAIL PROTECTED] Envoyé :

Returning multiple representations of a resource

2008-07-30 Thread Dennis Lo (CSE Mail)
Hi, I'm using restlet version 1.0.10 (stable) and I'm basing my implementation on the firstResource tutorial at http://www.restlet.org/documentation/1.0/firstResource I have resources which have two potential representations: HTML and XML I would like to know how my client/requester can specify