Thanks Thierry for your prompt reply.

The issue still persists in release 2.0.3; without the @Get("xml|gwt") 
annotation, the target Variant is always null resulting in the GwtConverter and 
XStreamConverter score() methods both returning 0.5. Because GwtConverter comes 
first in my build, it is always selected over the XStreamConverter.

Now it seems that it is *after* the converter is selected that the Accept 
header is processed (for the "preferredVariant"?). So in this case, the 
GwtConverter is asked to provide either "application/xml" or 
"application/x-java-serialized-object+gwt", for which it will always provide 
the latter representation.

I'm not highly experienced with Restlet so please forgive me if my 
understanding isn't entirely correct.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2681769

Reply via email to