users@jersey.java.net

Re: [Jersey] Getting Accept Header in Requests

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 04 Dec 2009 16:26:36 +0100

On Dec 4, 2009, at 4:18 PM, Robert Naczinski wrote:

> 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?
>

I do not understand what you mean. Can you provide a concrete example
of what to want to do?

Paul.

> Is there 'Best Practice'?
>
> Thanks
> Robert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>