Hi Vincent, I was referring to several parameters with the same name but with different styles (and not types!). Sorry for the confusion...
Does it make more sense now? 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é : lundi 22 septembre 2008 16:10 À : [email protected] Objet : RE: [RFC] WadlResource, get a param value according to the description Hi Jérome > However, in this case, how do you deal with the fact that you could have > several parameters with the same name but different type? Since i didn't need, i didn't think about this :-) Do you mean we can have something like this in a WADL? <request> <param name="foo" type="xs:string" style="query"/> <param name="foo" type="xs:int" style="query"/> </request> Is it not a bit weird? BTW, when i looked to add a simple support of "header", i added this little method to alway work with a Form: protected Form getHeader() { Form form = null; Series<Parameter> headers = (Series<Parameter>) getRequest().getAttributes().get(HttpConstants.ATTRIBUTE_HEADERS); if (headers != null) { form = new Form(headers); } return form; } Then i wondered, why could i not do this with a Template result? IMHO, it will make the life easier (only mine? ;-) if the different sources of data (such as described in the WADL: template, query, etc) could be seen as a Form (or an other common interface). Cheers, -- Vincent Ricard

