users@jersey.java.net

[Jersey] Response entity and Accept mediatype?

From: Mike Summers <msummers57_at_gmail.com>
Date: Mon, 23 Jul 2012 14:43:01 -0500

What's a good way to return Response entities that don't cause a marshal
error on the entity when there's no @Provider that matches the Accept
header media type?

I don't think I'll be able to get the client to change their Accept to
something like "Accept: <preferred-type>,application/xml;q=0.9" which would
solve my problem.

Is there anything smart I can do server side? This only happens in error
cases, and we have an ExceptionMapper, maybe there's something we can do
there?

Thanks.