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
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
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 ~
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
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
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
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
7 matches
Mail list logo