users@jersey.java.net

[Jersey] Conneg with Accept parameters

From: Tim Williams <williamstw_at_gmail.com>
Date: Tue, 5 Apr 2011 08:27:38 -0400

Does Jersey (or JAX-RS) support content negotiation based on Accept
params[1]? Something similar to the qs support...

@GET
@Produces("application/myformat+xml; foo=bar")
public Object getBarProfile() {
 ...
}

@GET
@Produces("application/myformat+xml; foo=baz")
public Object getBazProfile() {
 ...
}

Or any pointers to how one might extend it to get this behavior?

Thanks,
--tim

[1] - http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1