Re: 2.0m3 and content negotiation

2009-06-20 Thread Bruno Harbulot
Hi Jerome, Sorry, I might have been using the wrong jars by mistake. It seems to work now indeed. Thanks! (This being said, I think this gave me the opportunity to find another unrelated bug :-) : I'm going to send an e-mail to the dev list about that.) Best wishes, Bruno. Jerome Louvel wrot

RE: 2.0m3 and content negotiation

2009-06-19 Thread Jerome Louvel
d'origine- 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

Re: 2.0m3 and content negotiation

2009-06-18 Thread Bruno Harbulot
Hi Jerome, I've just upgraded to revision 5104. (I've have looked in details at the changes in the code.) I'm still not clear what should work with annotations. The simple test-case I'm using tries to do content-type negotiation between text/plain and application/xml. public class TestResour

RE: 2.0m3 and content negotiation

2009-06-16 Thread Jerome Louvel
 : discuss@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 su

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-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) me

Re: 2.0m3 and content negotiation

2009-06-12 Thread Bruno Harbulot
; 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 [mailto:fmandelb...@gmail.com] > Envoyé : jeudi 11 juin 2009 17:05 &g

RE: 2.0m3 and content negotiation

2009-06-11 Thread Jerome Louvel
lbaum [mailto:fmandelb...@gmail.com] Envoyé : jeudi 11 juin 2009 17:05 À : discuss@restlet.tigris.org Objet : 2.0m3 and content negotiation Hello, what's the status of the content negotiation "bug" in 2.0m3? is this fixed in current snapshot? I'm still getting application/octet-s

2.0m3 and content negotiation

2009-06-11 Thread Fabian Mandelbaum
Hello, what's the status of the content negotiation "bug" in 2.0m3? is this fixed in current snapshot? I'm still getting application/octet-stream for all media types other than xml with code like this: @Get public Representation represent() throws ResourceException { // Build and return repres