On Mon, Aug 1, 2011 at 8:09 PM, sbailliez [via Jersey] <
ml-node+6643141-1941223186-158506_at_n2.nabble.com> wrote:
> mmm indeed. I was initially discarding this option it since I found it
> would be a bit too cumbersome to specify it constantly but looks like it
> could be the best approach. I tried the one I mentioned, and quickly bumped
> into the issue that it would be decorating absolutely everything, which in
> practice is not really the case. I would need to be able to know the media
> type before the response is created and likely do some other gymnastics.
>
If you wanted to stay within the JAX-RS API, you can do it if you squint at
http://weblogs.java.net/blog/ljnelson/archive/2010/04/28/pushing-jersey-limitand
hold your nose.
Best,
Laird
--
View this message in context: http://jersey.576304.n2.nabble.com/Decorating-response-entities-tp6636828p6643252.html
Sent from the Jersey mailing list archive at Nabble.com.