users@jersey.java.net

[Jersey] Re: Decorating response entities

From: Stephane Bailliez <sbailliez_at_gmail.com>
Date: Mon, 1 Aug 2011 21:42:57 -0400

On Mon, Aug 1, 2011 at 8:50 PM, ljnelson <ljnelson_at_gmail.com> wrote:

> On Mon, Aug 1, 2011 at 8:09 PM, sbailliez [via Jersey] <[hidden email]<http://user/SendEmail.jtp?type=node&node=6643252&i=0>
> > 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.
>
>

Very nice write up Laird, thanks for the reference.
I may have an advantage for now, is that I'm not dealing with jaxb in this
project :-/