Hi Vincent,
Thanks for updating your sample code. It looks better! Would you mind
creating a RFE in the issue tracker describing the enhancement, and
attaching your code to it? We will definitely consider it for inclusion in
Restlet 1.2.
Regarding your multiple "service" parameters, everything seems normal to me.
If you want to disambiguate a little, your could just change the URI
template to "/service/{serviceId}" for example and the matrix name to "name"
instead of "service".
Actually, the template value should be "0;service=hihi" and not just "hihi".
Isn't it?
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 23 septembre 2008 11:06
À : [email protected]
Objet : RE: [RFC] WadlResource, get a param value according to the
description
Hi Jérôme,
> Does it make more sense now?
Yes :)
I added the support of multi-value & multi-style parameters (see the
attached Services.java).
If you load the attached webapp, then try
http://localhost:8080/my-webapp/restlet/service/0;service=hihi?service=foo
You get this:
0;service=hihi hihi foo
Knowing the route is "/service/{service}", this means the "hihi" value is
returned via the matrix form, _but_ the template value also contains it.
Is it normal?
Regards,
--
Vincent Ricard