RE: URI templates and URI pattern matching in restlet

2008-09-17 Thread Jerome Louvel
PROTECTED] Envoyé : jeudi 11 septembre 2008 11:55 À : discuss@restlet.tigris.org Objet : Re: URI templates and URI pattern matching in restlet 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

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: URI templates and URI pattern matching in restlet

2008-08-20 Thread einundswanzig
Jerome Louvel jerome.louvel at noelios.com writes: Hi Prashant, Just have a look at the Javadocs, there is a match(String) method that you can use. You might need to adjust the matching mode and the default variable to fit your matching needs. Best regards, Jerome Louvel -- Restlet ~

Re: URI templates and URI pattern matching in restlet

2008-08-13 Thread prashant
Thierry Boileau thierry.boileau at noelios.com writes: Hello prashantDoes restlet API provides some mechanism to exaclty match the URI template to corresponding REST URI? What do you mean? If you want to define routes based on URI template, you can have a look at this

Re: URI templates and URI pattern matching in restlet

2008-08-13 Thread Vincent Ricard
Hi Prashant I can extract request path from request object there but how will I match that REST URI with URI template(which I have hardcoded in my Restlet class) in my restlet. I'm not sure to understand your need, but the Template.match() method is not enough? Regards, -- Vincent

Re: URI templates and URI pattern matching in restlet

2008-08-13 Thread prashant
Vincent Ricard magic at magicninja.org writes: Hi Prashant I can extract request path from request object there but how will I match that REST URI with URI template(which I have hardcoded in my Restlet class) in my restlet. I'm not sure to understand your need, but the

RE: URI templates and URI pattern matching in restlet

2008-08-13 Thread Jerome Louvel
Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine- De : news [mailto:[EMAIL PROTECTED] De la part de prashant Envoye : mercredi 13 aout 2008 16:04 A : discuss@restlet.tigris.org Objet : Re: URI templates and URI pattern matching in restlet Vincent Ricard magic