users@jersey.java.net

Matched content type from list of candidates?

From: Magnus Persson <magnus_at_derelik.net>
Date: Thu, 05 Mar 2009 23:46:17 +0100

I'm having some trouble understanding how @Produces with multiple media
types work. Fair enough, using @Produces({"text/xml",
"application/json"}) probably has something to do with JAXB "magic", but
what if I use @Produces({"text/plain", "application/json"})? Since they
are quite different formats I need to know which candidate was selected,
but can't for the world find anything related in the API docs. Does it
tie into producers somehow? Clarification and/or help kindly requested :)