RE: Date and time in access log format

2007-06-16 Thread Jerome Louvel
Hi Jim, This isn't supported yet, which is unfortunate when you need a custom log format. The default format is hard-coded in Java, that's why I forgot to add it to the Template class. I've entered a RFE for 1.1: http://restlet.tigris.org/issues/show_bug.cgi?id=320 Best regards, Jerome

RE: Conditional GETs?

2007-06-16 Thread Jerome Louvel
Hi all, This RFE is now fixed in SVN trunk and will be testable in the upcoming 1.1 snapshot. Great optimization, thanks Stian for the idea. Best regards, Jerome -Message d'origine- De : Jerome Louvel [mailto:[EMAIL PROTECTED] Envoyé : mardi 12 juin 2007 08:55 À :

Re: Servlet Connector and passing per-request attributes

2007-06-16 Thread Jerome Louvel
Hi Leigh, I've implemented the suggested change on the ServletConverter class only. The code is checked in SVN trunk. However, I'm relunctant to extend this to the ServletServlet itself because the target Restlet Application would loose its portability to a standalone Restlet container.

RE: Best way to serve CSS and Javascript from a WAR?

2007-06-16 Thread Jerome Louvel
Hi Dustin, The WAR client is automatically installed when you use the ServerServlet adapter. In Restlet 1.1, this will work with the standalone mode too, so Application portability will be intact. So, you can already simplify your code like this: public Representation

RE: Generating URIs for resources

2007-06-16 Thread Jerome Louvel
Hi Stian and Adam, This is indeed a very interesting topic. In the past, a similar mapping from Resource to URIs was already suggested, reusing the same declarations used by the Router. Like you I agree that this is a common need but I'm not really sure yet how to support this in the API, and

RE: Programatically creating multipart requests

2007-06-16 Thread Jerome Louvel
Hi Joshua, Unfortunately, we don't support client multipart posts yet. You will have to manually use the Apache HTTP client for now. I've updated the existing RFE with this specific request: http://restlet.tigris.org/issues/show_bug.cgi?id=71 Best regards, Jerome -Message d'origine-

RE: Preventing Greedy URL Matching

2007-06-16 Thread Jerome Louvel
Hi Adam, This is indeed a frequently asked question, but it didn't have a FAQ entry yet :) So I just had to write it: http://www.restlet.org/documentation/1.0/faq#24 Best regards, Jerome -Message d'origine- De : Adam Taft [mailto:[EMAIL PROTECTED] Envoyé : samedi 16 juin 2007

Re: Preventing Greedy URL Matching

2007-06-16 Thread Adam Taft
Hi Jerome, Cheers. Thanks for the FAQ entry. For whatever reason, I couldn't see the (now obvious) solution. From the FAQ: Note that after doing this, your Router won't accept URI with query strings going to this Resource. Big bummer. Maybe this could be a RFE. Ie. strict matching