RE: 2.0m3 and content negotiation

2009-06-19 Thread Jerome Louvel
- De : news [mailto:n...@ger.gmane.org] De la part de Bruno Harbulot Envoyé : jeudi 18 juin 2009 14:37 À : discuss@restlet.tigris.org Objet : Re: 2.0m3 and content negotiation Hi Jerome, I've just upgraded to revision 5104. (I've have looked in details at the changes in the code.) I'm still

RE: 2.0m3 and content negotiation

2009-06-16 Thread Jerome Louvel
@restlet.tigris.org Objet : Re: 2.0m3 and content negotiation Hello, I think the problem comes from the fact that 'ConverterService.getVariants(Class? sourceClass, Variant targetVariant)' doesn't make any use of 'targetVariant'. As a quick workaround, I'd suggest this patch: diff --git a/modules

Re: 2.0m3 and content negotiation

2009-06-12 Thread Bruno Harbulot
Hi Jerome, Is there a full list of the annotation parameters? According to these pages, they're not media-types: - http://wiki.restlet.org/developers/172-restlet/226-restlet.html - http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=1596334 I'm using revision 5060. * Case

Re: 2.0m3 and content negotiation

2009-06-12 Thread Bruno Harbulot
Hello, I've just had a look in the code. I'm using @Get(txt) on toPlainText() and @Get(xml) on toXml(). In ServerResource.getAvailableVariants(Method), when it goes through: annoVariants = cs.getVariants(annotationInfo .getJavaReturnType(), new Variant( (MediaType)

Re: 2.0m3 and content negotiation

2009-06-12 Thread Bruno Harbulot
Hello, I think the problem comes from the fact that 'ConverterService.getVariants(Class? sourceClass, Variant targetVariant)' doesn't make any use of 'targetVariant'. As a quick workaround, I'd suggest this patch: diff --git a/modules/org.restlet/src/org/restlet/service/ConverterService.java

RE: 2.0m3 and content negotiation

2009-06-11 Thread Jerome Louvel
Hi Fabian, This one has just been fixed in SVN trunk but there more issues pending. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine- De : Fabian Mandelbaum