users@jersey.java.net

Content Negociation

From: <amsmota_at_gmail.com>
Date: Wed, 21 Jan 2009 11:10:01 +0000

I searched the archives and although there are many things about conneg the
ones I saw are basically of the type

Accept: xxx/xxx
@Produces({"application/xml", "application/json"})

But my question is the opposite, in concrete

Accept: application/octet-stream, application/pdf

@Produces("text/html")
produceHtml()

@Produces("application/pdf")
producePdf()

I was expecting the producePdf being executed, but I got the html one. How
does Jersey handles situations like this?

Also, does Jersey considers the quality values when matching mime types?


Cheers.