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
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
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
: 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
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
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
; 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
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
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
9 matches
Mail list logo