users@jersey.java.net

problem with accept header

From: Jean Aurambault <aurambaj_at_yahoo-inc.com>
Date: Fri, 06 Jun 2008 13:18:41 +0200

Hi,

I try to use the 0.8 version.
Do you have noticed any problem with Accept header? In my case, it
sounds like Accept header stays at application/xml even if you send
another type defined in the resource (eg. application/json).

@Context
private HttpHeaders httpHeaders;

I use httpHeaders.getAcceptableMediaTypes().get(0) to get the first
Acceptable type.
Do I miss something?

Jean.