Hi Vincent,

Thanks for creating the RFE!

Regarding the template matching and the matrix parameter: from a URI
standard point of view, matrix separators could appear in any segment of the
URI, not just at the end. So, the ';' character doesn't have the same
importance as '?' or '#'.

However, it is possible to indicate to Restlet template engine that your
variable shouldn't match the ';' character. The are matching modes defined
in the o.r.u.Variable class such as TYPE_WORD (alphabetical and digital
characters plus the underscore).

You can change the default variable type on a route using the
Route#getTemplate().getDefaultVariable().setType(TYPE_WORD).

Best regards,
Jérôme Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com


-----Message d'origine-----
De : Vincent Ricard [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 30 septembre 2008 15:51
À : [email protected]
Objet : RE: [RFC] WadlResource, get a param value according to the
description

Hi Jerôme,

Sorry to answer so late, i'm a little busy :)

I created the corresponding issue:
http://restlet.tigris.org/issues/show_bug.cgi?id=604

> Actually, the template value should be "0;service=hihi" and not just
> "hihi".
> Isn't it?

Actually, i expected "hihi", i believed ';' was a separator (the matrix
separator) like '?' is the query separator. It seems I was wrong :)

What do you think if we could "enable" the matrix separator in the
template engine? (i dont know where, i dont know how). I know this
separator is not part of the standard URI grammar... that's just an idea
:)

Best regards,
-- 
Vincent Ricard

Reply via email to