users@jersey.java.net

Media type selection whith ambigous preference by client?

From: Jan Algermissen <algermissen1971_at_mac.com>
Date: Tue, 11 May 2010 07:53:37 +0200

Since this came up on SO([1]) I am wondering on what basis Jersey chooses the medi atype to serve when the client's preferences are ambigous.

Example:

- Resource class can serve text/html and image/gif
- Accept header is text/html,image/gif

Which media type would Jersey choose to send and why?

Thanks,
Jan

[1] <http://stackoverflow.com/questions/1397920/interpreting-accept-headers-as-intended-in-ie-and-we


-----------------------------------
 Jan Algermissen, Consultant
 NORD Software Consulting

 Mail: algermissen_at_acm.org
 Blog: http://www.nordsc.com/blog/
 Work: http://www.nordsc.com/
-----------------------------------