users@jersey.java.net

[Jersey] Re: content-length

From: Tatu Saloranta <tsaloranta_at_gmail.com>
Date: Mon, 7 May 2012 16:24:02 -0700

On Mon, May 7, 2012 at 3:19 PM, <mbrown_at_hayneedle.com> wrote:
> What is the generally accepted method for setting the content-length
> when using Jersey and JAXB?
>
> Seems like this should be simple but so far it has not been.

I thought it was handled automatically, iff MessageBodyWriter is able
to provide length estimate.
If not, you can build Response, add header manually, along with entity
to return, status code.

-+ Tatu +-