Re: Restlet-GWT basic authentication possibility...

2008-09-11 Thread Rasmus Agerholm
Sounds good. /Rasmus On Wed, Sep 10, 2008 at 8:26 PM, Rob Heittman [EMAIL PROTECTED]wrote: Sounds perfectly reasonable. I think Jerome's still on vacation -- I'll try my hand at implementing it. On Wed, Sep 10, 2008 at 1:26 PM, Rasmus Agerholm [EMAIL PROTECTED]wrote: Would it be

Re: ObjectRepresentation and String encoding

2008-09-11 Thread Thierry Boileau
Hi Hannes, I had a look at the issue and I don't see what's wrong. I was able to send a serialized object from a client using UTF-8 to a server using ISO-8859-1 without encoding issues. Could you send us a reproductible test case, and send us also the trace of the following code on both client

[Fwd: Re: Socket closing]

2008-09-11 Thread Thierry Boileau
Mail sent on the 08/18 and apparently lost. -- Best regards, Thierry Boileau -- Restlet ~ Core developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com ---BeginMessage--- Hi Kevin, I've updated the issue 514. best regards, Thierry Boileau Can

[Fwd: Re: Virtual hosts - no domain only ip address]

2008-09-11 Thread Thierry Boileau
Mail sent on the 08/20 and apparently lost. Best regards, Thierry Boileau -- Restlet ~ Core developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com ---BeginMessage--- Hi Christy, this message appears when a resource (i.e. an instance of a subclass

[Fwd: Re: RC1: connector with no protocols]

2008-09-11 Thread Thierry Boileau
Mail sent on the 08/21 and apparently lost. Best regards, Thierry Boileau -- Restlet ~ Core developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com ---BeginMessage--- Hello Paolo, to my mind, this message is not the sign of a problem. I get it

[Fwd: Re: Error Handling]

2008-09-11 Thread Thierry Boileau
Mail sent on the 08/21 and apparently lost. Best regards, Thierry Boileau -- Restlet ~ Core developer ~ http://www.restlet.org http://www.restlet.org/ Noelios Technologies ~ Co-founder ~ http://www.noelios.com http://www.noelios.com/ ---BeginMessage--- Hi Michael, If you are talking about the

[Fwd: Re: Maven groupIDs]

2008-09-11 Thread Thierry Boileau
Mail sent on the 08/21 and apparently lost. Best regards, Thierry Boileau -- Restlet ~ Core developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com ---BeginMessage--- Hi Bruno, is the org.jssutils package hosted in our Maven repos the same than

[Fwd: Re: [RFE] LogFilter.afterHandle]

2008-09-11 Thread Thierry Boileau
Mail sent on the 08/21 and apparently lost. Best regards, Thierry Boileau -- Restlet ~ Core developer ~ http://www.restlet.org http://www.restlet.org/ Noelios Technologies ~ Co-founder ~ http://www.noelios.com http://www.noelios.com/ ---BeginMessage--- Hi Vincent, Thanks for your remark. I've

[Fwd: Re: Wadl components]

2008-09-11 Thread Thierry Boileau
Mail sent on the 08/21 and apparently lost. Best regards, Thierry Boileau -- Restlet ~ Core developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com ---BeginMessage--- Hi Bora and Vincent. Bora, does Vincent's answer fit your needs? Do you need

[Fwd: Re: Maven Restlet 1.1-M5]

2008-09-11 Thread Thierry Boileau
Mail sent on the 08/21 and apparently lost. Best regards, Thierry Boileau -- Restlet ~ Core developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com ---BeginMessage--- Hi James and Sanjay, just in order to complete James answer which is completely

Re: PUT method without body entity

2008-09-11 Thread Thierry Boileau
Mail sent on the 08/22 and apparently lost. -- Hello Vincent, this question comes back now and then (see [1] and [2]). The current conclusion is that, as some other implementations, it has been decided to forbid empty entities for PUT requests inside Restlet according to a strict interpretation

Re: WADL howto?

2008-09-11 Thread Thierry Boileau
Mail sent on the 08/22 and apparently lost. --- Hello John, 1) I tried deriving my Application from WadlApplication, called setAutoDescribed(true), and tested. I can get the WADL, but not using my /v1/* URI. If I use the /v1/* URI, I get a 404; I have to use just the /v1/ URI, I get a

Re: URI templates and URI pattern matching in restlet

2008-09-11 Thread Thierry Boileau
Mail sent on the 08/22 and apparently lost. --- Hello, I'm afraid the Template class does not allow you to set the variables as you need. I think it is simpler to define yor own templae class based on a reg exp anduse it when you define the routes: router.getRoutes().add( new

Re: How to prevent access to nested directories?

2008-09-11 Thread Thierry Boileau
Mail sent on the 08/22 and apparently lost. --- Hi Carlos, That's a good remark since you point a bug. That's a very good remark because I just wonder if this feature has already been implemented... I'll fix it asap. Best regards, Thierry Boileau -- Restlet ~ Core developer ~

Re: org.restlet.ext.jaxrs-1.1 pom

2008-09-11 Thread Thierry Boileau
Mail sent on the 08/22 and apparently lost. --- Hello Jim, thanks a lot for reporting this issue. I've fixed it in the maven directory. Best regards, Thierry Boileau -- Restlet ~ Core developer ~ http://www.restlet.org http://www.restlet.org/ Noelios Technologies ~ Co-founder ~

Re: velocity representation

2008-09-11 Thread Thierry Boileau
Mail sent on the 08/25 and apparently lost. --- Hi Zsolt, there is a sample resource in the following class: org.restlet.example.book.restlet.ch10.VelocityResource. As far as I can see in the code, I don't think it caches the template. best regards, Thierry Boileau Hello I have a question

Re: Question

2008-09-11 Thread Thierry Boileau
Mail sent on the 08/26 and apparently lost. --- Hello Sanjay, sorry for the delay. This issue has been solved by the RC1 = http://restlet.tigris.org/issues/show_bug.cgi?id=555 best regards, Thierry Boileau Hi, This question might have been asked and answered. If so, please excuse. I have

Re: cutpaste error in ServerServlet

2008-09-11 Thread Thierry Boileau
Mail sent on the 08/26 and apparently lost. --- Hello Paolo, thanks for the report, I've updated the svn repository. What kind of difficulties are you experiencing? Could you send us a sample test application or give more details about the way you define your application's routes, web.xml, etc?

Re: Handler has no getMatrixAsForm method

2008-09-11 Thread Thierry Boileau
Mail sent on the 08/26 and apparently lost. --- Hello Vincent, is I don't know an acceptable answer? :) Thanks for your suggestion, I've added a getMatrix method. Best regards, Thierry Boileau -- Restlet ~ Core developer ~ http://www.restlet.org http://www.restlet.org/ Noelios Technologies ~

Re: Using the entity in a Filter

2008-09-11 Thread Thierry Boileau
Mail sent on the 08/28 and apparently lost. --- Hello Jim, you can have a look at this issue: http://restlet.tigris.org/issues/show_bug.cgi?id=149 The idea was to support the content-md5 standard header and to allow users to manually check the digest value of a representation. Here is the

Re: 'Warning' header

2008-09-11 Thread Thierry Boileau
Mail sent on the 08/31 and apparently lost. --- Hello Erik, it only means that you can use it. But, in a future release, manually adding this header will be forbidden. In this case, you will have to use the API instead. Here is the current mapping between HTTP header and Restlet API:

Re: 1.1m5 Javadocs zips we can download?

2008-09-11 Thread Thierry Boileau
Mail sent on the 09/01 and apparently lost. --- Hello Kris, the javadocs is located into any distribution files. You can get them fom http://www.restlet.org/downloads/. 1.1 RC1 is the current version of the 1.1 branch. However, you can still get the 1.1m5 distribution files by following the

Re: Restlet 1.1-RC1 in OSGi

2008-09-11 Thread Thierry Boileau
Mail sent on the 09/02 and apparently lost. --- Hi Michael, as I'm not aware of the integration effort with OSGi I'm not able to give you a quick answer. Jérôme can answer you after his return from vacations on the 11th of september. Best regards, Thierry Boileau -- Restlet ~ Core developer

Re: GWT + Restlet examples?

2008-09-11 Thread Thierry Boileau
Mail sent on the 09/10 and apparently lost. --- Hello Duong, what kind of problem are you experiencing with the creation of directories? best regards, Thierry Boileau I don't mean to throw a wet blanket on the GWT discussion, but my (limited) impression of GWT was that it was trying to

Re: How to hook end of POST

2008-09-11 Thread Thierry Boileau
Mail sent on the 09/10 and apparently lost. --- Hello Kenji, I'm a little surprised by the fact that the Filter#afterHandle method does not work as expected. What kind of filter are you suspecting to fail? Anyway, I send you a sample code containing 3 classes: an application, a resource and

Re: Restlet-1.1rc1, Spring2.5, Component and Application creation problem.

2008-09-11 Thread Thierry Boileau
Mail sent on the 09/10 and apparently lost. --- Hi Colin, I think this has already been mentionned and fixed. Could you try with the latest snapshot (http://www.restlet.org/downloads/snapshot.zip)? Best regards, Thierry Boileau -- Restlet ~ Core developer ~ http://www.restlet.org Noelios

Re: [WADL] NPE in WadlResource.describe(Variant)

2008-09-11 Thread Thierry Boileau
Mail sent on the 09/01 and apparently lost. --- Hello Vincent, thanks a lot for your help! I've fixed the NPE and updated the svn repository. However, I will discuss this point with Jérôme. best regards, Thierry Boileau Hi, I can get a NPE when i perform a HTTP OPTIONS request with a bad

Re: GWT + Restlet examples?

2008-09-11 Thread Duong BaTien
On Thu, 2008-09-11 at 12:04 +0200, Thierry Boileau wrote: Mail sent on the 09/10 and apparently lost. --- Hello Duong, what kind of problem are you experiencing with the creation of directories? best regards, Thierry Boileau Wow, thank you Thierry. (1) I will find time to try

Re: GWT + Restlet examples?

2008-09-11 Thread Mark Petrovic
Fantastic, Thierry. Thanks much. Dumb question: how, or should, one integrate the notion of allow post/allow put, etc, in the TestServer code? Mark On Sep 11, 2008, at 3:03 AM, Thierry Boileau wrote: Mail sent on the 09/02 and apparently lost. --- Hello Mark, it may be too late, but I

Re: GWT + Restlet examples?

2008-09-11 Thread Thierry Boileau
Hi Mark, the TestServer is a very simple server-side application using only a Restlet. In this case, if you want to handle only, let's say, GET requests, you have to test it by yourself and generate correctly the response in the handle(request, Response) method. I suggest you develop the

Re: GWT + Restlet examples?

2008-09-11 Thread Rob Heittman
In a real application, it is usually better to write high-level Resources than Restlets, though wiring in a Restlet as in the Foo.zip example is often the briefest way to return an HTTP response. Have a look at this tutorial, if you haven't already:

Re: GWT + Restlet examples?

2008-09-11 Thread Thierry Boileau
Hi Duong, 1) No, the sample code is not based on GWT-RPC API. The server side is based on Restlet and I simply answer to requests (in this case AJAX requests) with a simple line of plain text (it could be XML) 2) Let me think about it! :) Best regards, Thierry Boileau -- Restlet ~ Core

Re: ObjectRepresentation and String encoding

2008-09-11 Thread Hannes Ebner
Hi Thierry, Thierry Boileau wrote: Could you send us a reproductible test case, and send us also the trace of the following code on both client and server side? I will try to reproduce it with a small test case and get back to you. Best regards, Hannes

Re: GWT + Restlet examples?

2008-09-11 Thread Rob Heittman
Thanks for this, Thierry! I have changed some names, made some more objects (a Component, Application, and Resource ...) and wrapped it up into an Eclipse project with Ant build script, hosted mode launcher, and a working server side, added tomcat's web.xml, embedded the Restlet jars, and made

INFO in NRE SecurityUtils

2008-09-11 Thread Avi Flax
I'm using 1.0, so this may already be fixed in 1.1, but a quick search of the list didn't turn up anything, so I thought I'd ask. I'm using Basic HTTP Auth, and I've implemented a subclass of Guard, wherein I've overridden doHandle(). I know that's not the recommended approach, but I don't think

Restlet + Dojo?

2008-09-11 Thread Justin Stanczak
Anyone using this combo? Any tips? Just wanted to give a shout out. I'm looking into using this combo, seems like a good fit. I would just use JSON services with Restlet resources.

Re: GWT + Restlet examples?

2008-09-11 Thread Mark Petrovic
Thank you. In fact, that example made it to hardcopy and accompanied me to lunch twice this week. Good stuff. Mark On Sep 11, 2008, at 10:06 AM, Rob Heittman wrote: In a real application, it is usually better to write high-level Resources than Restlets, though wiring in a Restlet as in

Re: How to hook end of POST

2008-09-11 Thread Kenji Tayama
Hi Thierry, Thank you for the sample codes. I modifed the codes so they can show this problem. You can see that Filter#afterHandle is called before WriterRepresentation#write in the console. Regards, Kenji Tayama 2008/9/11 Thierry Boileau [EMAIL PROTECTED]: Mail sent on the 09/10 and