looking into using restlets

2007-11-05 Thread stack leet
Hello All, After reading the restlet tutorial and I'm convinced that Restlets are the way to go for a project I am working on. In essence I want to create a web service which stores and retrieves XML documents. My question is, I know how to create a client which can request a document from this

Restlet GPL version?

2007-11-05 Thread Rob Heittman
Restlet is available under GPL as one of the licensing choices. I think GPL2 was the only valid choice at the time that http://www.restlet.org/about/legal was authored, and it links to it at http://www.opensource.org/licenses/gpl-license.php. Is it the intent to keep Restlet available only un

Re: Router.attach & Patterns

2007-11-05 Thread Alex Milowski
On 11/5/07, Jerome Louvel <[EMAIL PROTECTED]> wrote: > > Hi Alex, > > As you probably know, we already have a way to specify the type of each > variable in an URI template via the org.restlet.util.Variable class and the > Template.variables and Template.defaultVariable properties. > > Could you des

RE: JSON represenation based on json-lib from http://json-lib.sourceforge.net/

2007-11-05 Thread Jerome Louvel
Hi Sean, Ok, I'm convinced to do the move for 1.1 :) I've updated the RFE with details: http://restlet.tigris.org/issues/show_bug.cgi?id=131 Best regards, Jerome > -Message d'origine- > De : news [mailto:[EMAIL PROTECTED] De la part de Sean Landis > Envoyé : lundi 5 novembre 2007 15:

RE: Client X509Certificate attribute using the AJP connector

2007-11-05 Thread Jerome Louvel
Hi Bruno, Thanks for the details. Do you have pointers to how this mechanism precisely works in Tomcat and/or Jetty? Also, if you could open an RFE and summarize our discussion that would be a good step forward. Best regards, Jerome > -Message d'origine- > De : news [mailto:[EMAIL PR

RE: Thread-safety in Guard

2007-11-05 Thread Jerome Louvel
Hi Tim, Thanks again for the feed-back, I've reopened the issue and added a comment to your blog post. Best regards, Jerome > -Message d'origine- > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la > part de Tim Peierls > Envoyé : lundi 5 novembre 2007 21:34 > À : discuss@restle

Re: Thread-safety in Guard

2007-11-05 Thread Tim Peierls
On 11/4/07, Jerome Louvel <[EMAIL PROTECTED]> wrote: > > I've fixed the remaining Guard.secrets issue following Tim advises: > - removed the setSecrets() method in trunk > - eagerly instantiate the secrets map > > I've also fixed potential issues with RouteList using an underlying > CopyOnWrite

RE: Router.attach & Patterns

2007-11-05 Thread Jerome Louvel
Hi Alex, As you probably know, we already have a way to specify the type of each variable in an URI template via the org.restlet.util.Variable class and the Template.variables and Template.defaultVariable properties. Could you describe the use case(s) that would require a full regex syntax in UR

Re: JSON represenation based on json-lib from http://json-lib.sourceforge.net/

2007-11-05 Thread Sean Landis
Jerome Louvel noelios.com> writes: > > > Hi Sean, > > There is already this constructor in the JsonRepresentation class: > public JsonRepresentation(JSONObject jsonObject) > > So you can use something like this with 1.0 already: >new JsonRepresentation(new JSONObject(myObject, [other

Re: Client X509Certificate attribute using the AJP connector

2007-11-05 Thread Bruno Harbulot
Hello Jérôme, I'm using the Jetty AJP connector directly. I haven't tried the ServerServlet yet, so I'm not sure what information it passes through. Another thing I would be interested in is to get the remote user, as authenticated by Apache Httpd. This is something servlets can get using Jett

Re: Client X509Certificate attribute using the AJP connector

2007-11-05 Thread Jerome Louvel
Hello Bruno, Are you using the ServerServlet adapter class or directly the Jetty AJP connector with Restlet ? Thanks, Jerome 2007/11/2, Bruno Harbulot <[EMAIL PROTECTED]>: > Hello, > > Using Servlets and Tomcat behind Apache Httpd/AJP (configured to require > or want a client certificate in HTTP

Re: getMediaType() returns null on put request

2007-11-05 Thread Jerome Louvel
Hi Rico, The problem seems to be with your usage of Curl which doesn't specify the media type of your file. You probably need to set the "Content-Type" header manually to "application/xml". This is the value you will retrieve via "entity.getMediaType()". The getVariants() method is only used for