Re: looking into using restlets

2007-11-06 Thread Thierry Boileau
Hello stack, you can you use either DomRepresentation [1] or SAXRepresentation [2] according to your preference with the following code (sample of POST request) : Client client = new Client(Protocol.HTTP); Response response = client.post(http://localhost:80/essai/;, your representation);

Re: [newbie] Start using 1.1 SNAPSHOT - Maven Repo ?

2007-11-06 Thread Thierry Boileau
Hello Jean-Yves, the maven repository is located at the following URL: maven.restlet.org. But, at this time, no snapshot of release 1.1 has been published in Maven since the first public release of restlet 1.1 will be delivered in a few weeks (release 1.1 M1). However a zip file can be downloaded

Re: Client X509Certificate attribute using the AJP connector

2007-11-06 Thread Bruno Harbulot
Hi Jerome, Regarding Jetty, AJP and the client certificates, I submitted a patch a couple of days ago for Jetty, as there was a small bug: http://jira.codehaus.org/browse/JETTY-457 I'm please to say Greg Wilkins (Jetty) has already incorporated the changes in Jetty 6.1.6rc1. I'll try to

Re: [newbie] Start using 1.1 SNAPSHOT - Maven Repo ?

2007-11-06 Thread Jerome Louvel
Hi all, Maybe should also publish snapshots in the Maven repository? If we do so, we should follow the Maven naming conventions for version numbers. Note: we don't internally use Maven to build Restlet code base, but we know how to publish Maven artifacts. Best regards, Jerome 2007/11/6,

Reaching target Resources that do not exist

2007-11-06 Thread Bruno Harbulot
Hello, I'd like to model resources using Restlet in a similar way as Section 12 of the tutorial (Reaching target Resources). As a simple example, I'd like to map URIs like /users/{user}/birthday to read the full name of a user from a database (or hash-table). As far as I understand the

Re: Client X509Certificate attribute using the AJP connector

2007-11-06 Thread Bruno Harbulot
Hi Jerome, I haven't tried any code yet, but I think I found what was going on by looking at some of the code. What I'm talking about is related to the first modification mentioned in http://restlet.tigris.org/issues/show_bug.cgi?id=281 (using getPeerCertificates()). When using servlets,

Re: Client X509Certificate attribute using the AJP connector

2007-11-06 Thread Bruno Harbulot
Bruno Harbulot wrote: I could try to write a patch, but since it may modify the API (or at least the interfaces), it might be better if someone more experienced with the code does it. I'm going to copy and paste all this in an RFE. Here it is:

Re: Reaching target Resources that do not exist

2007-11-06 Thread Thierry Boileau
Hi Bruno, on one hand, you define a route which binds all uris such as /users/{user}/birthday to a new instance of the BirthdayResource class. On the other hand, the resource is in charge to perform the request, that is to say return a representation (if any) in case of GET requests, delete the

Unable to cleanly undeploy restlet application from servlet container

2007-11-06 Thread Metz, Hayden
When I try to undeploy my restlet application from a running servlet container it can't remove the deployed app completely because it seems unable to delete com.noelios.restlet.jar from the exploded WAR contents. I assume there is still some resource in use within the reference implementation code

RE: Router.attach Patterns

2007-11-06 Thread Jerome Louvel
Hi Alex, Thanks for sharing all the details. 1) For the root attachment issue, you can use this approach instead: // To match only URIs that are strictly equal to / Template template = router.attach(/, rootRestlet).getTemplate(); template.setMatchingMode(Template.MODE_EQUALS); // To match all

Re: [newbie] Start using 1.1 SNAPSHOT - Maven Repo ?

2007-11-06 Thread Sean Landis
Jerome Louvel contact at noelios.com writes: Hi all, Maybe should also publish snapshots in the Maven repository? If we do so, we should follow the Maven naming conventions for version numbers. Note: we don't internally use Maven to build Restlet code base, but we know how to publish

RE: Restlet GPL version?

2007-11-06 Thread Jerome Louvel
Hi Rob, As a benefit of having the JCA process in place (http://www.restlet.org/community/contribute), we can offer Restlet under GPL v3 as well. I've updated the web site to mention this new option: http://www.restlet.org/about/legal Best regards, Jerome -Message d'origine- De :

Re: Reaching target Resources that do not exist

2007-11-06 Thread Bruno Harbulot
Hi Thierry, Thierry Boileau wrote: on one hand, you define a route which binds all uris such as /users/{user}/birthday to a new instance of the BirthdayResource class. On the other hand, the resource is in charge to perform the request, that is to say return a representation (if any) in case of

Re: HEAD not well supported?

2007-11-06 Thread Jerome Louvel
Hi all, The refactoring based on this discussion is done in SVN trunk. See this issue for few more details: http://restlet.tigris.org/issues/show_bug.cgi?id=361 I've also updated the 1.1 snapshot at: http://www.restlet.org/downloads/1.1/current.zip Best, Jerome