Re: Router and URLs with extra stuff at the end

2007-03-20 Thread Thierry Boileau
Ooops, I forget : you also need to set the "equals" mode when routing to fooListFinder, otherwise this route will catch the "garbage" URLs. Best regards, Thierry Boileau Hello Stokes, The routing mechanism is based on Template objects (http://www.restlet.org/documentation/1.0/api/index.html?

RE: MediaType.APPLICATION_RDF

2007-03-20 Thread Jerome Louvel
Hi Ryan, Agreed! I've deprecated APPLICATION_RDF, then added APPLICATION_RDF_XML and TEXT_RDF_N3. Concerning Turtle, as the suggested MIME type is "application/x-turtle" then constant name would be "APPLICATION_TURTLE" but I'm unsure about adding this as a built-in media type, especially if thi

RE: Router and URLs with extra stuff at the end

2007-03-20 Thread Jerome Louvel
Hi Stokes, Depending on the type of routing it maybe desirable to require an exact match of the target URI (like in your case) or simply a match of the start of the target URI (like in the case of a Directory finder). The Router class uses the second mode (Template.START_WITH) by default when yo

Re: Router and URLs with extra stuff at the end

2007-03-20 Thread Thierry Boileau
Hello Stokes, The routing mechanism is based on Template objects (http://www.restlet.org/documentation/1.0/api/index.html?org/restlet/util/Template.html) and Variable objects. When defining a "route" with the "attach" method, a Template object is created and then associated with this "route".

Re: MediaType.APPLICATION_RDF

2007-03-20 Thread Ryan Daum
Correction, I believe that should be TEXT_RDF_N3 and TEXT_RDF_NTRIPLE On 3/20/07, Ryan Daum <[EMAIL PROTECTED]> wrote: Just a quick note; technically speaking "RDF" isn't a media type, but rather a data model. There are several serializations of RDF, the most popular being RDF/XML (let's call

MediaType.APPLICATION_RDF

2007-03-20 Thread Ryan Daum
Just a quick note; technically speaking "RDF" isn't a media type, but rather a data model. There are several serializations of RDF, the most popular being RDF/XML (let's call it APPLICATION_RDFXML?), but there are others, like N3, etc. that are quite popular. It might be a good idea, before goin

Router and URLs with extra stuff at the end

2007-03-20 Thread Stokes
If I have a router with two Restlets attached as follows: /foos ==> FooListFinder /foos/{fooId} ==> FooFinder ... then, as expected, these request route as follows: /foos --routes to--> FooListFinder /foos?somearg=true --routes to--> FooListFind

Getting the ServletContext (if you really have to) in 1.0RC5

2007-03-20 Thread Stokes
I have an existing web application that uses Spring in Tomcat, and I've added a REST API to it using Restlets with RC4. I use the Noelios ServerServlet as the entry point. But when I create my root Restlet, I need to get at business objects that are already created in a Spring (web) context. For

RE: Restlet presentation slides

2007-03-20 Thread Jerome Louvel
Hi Dave, Good idea, I've just posted a related announcement to the REST list: http://tech.groups.yahoo.com/group/rest-discuss/message/8146 Best regards, Jerome > -Message d'origine- > De : Dave Pawson [mailto:[EMAIL PROTECTED] > Envoyé : mardi 20 mars 2007 12:11 > À : discuss@restlet

Re: Restlet presentation slides

2007-03-20 Thread Dave Pawson
On 20/03/07, Jerome Louvel <[EMAIL PROTECTED]> wrote: Last week, Sean Landis made a very nice presentation about the Restlet project at the Utah Java Users Group. The slides as well as the sample code are publicly available on our Wiki and I encourage everyone to check them out and to share them

Restlet presentation slides

2007-03-20 Thread Jerome Louvel
Hi all, Last week, Sean Landis made a very nice presentation about the Restlet project at the Utah Java Users Group. The slides as well as the sample code are publicly available on our Wiki and I encourage everyone to check them out and to share them with people interested in REST and Restlet: ht