users@jersey.java.net

Getting Accept Header in Requests

From: Robert Naczinski <robert.naczinski_at_googlemail.com>
Date: Fri, 4 Dec 2009 16:18:07 +0100

Hello,

I can annotate resource method with '_at_Produces'-Annotation
(https://jsr311.dev.java.net/nonav/releases/1.1/javax/ws/rs/Produces.html)
In this annotation you can have one or several values.

Can I automatically get this value of HTTP Header?

With @HeaderParam can I get this value. But can I get this implicit?

Is there 'Best Practice'?

Thanks
Robert