users@jersey.java.net

[Jersey] Re: Manipulating HTTP headers in MessageBodyWriter

From: Maarten Boekhold <boekhold_at_gmx.com>
Date: Sun, 22 Feb 2015 16:40:42 +0400

Hi,

Ah, good to know. I was thinking about extending the example on
https://gist.github.com/MAOliver/3794028 to also copy the
SOAPMessage.getMimeHeaders() to the Jersey HTTP Headers in
MessageBodyWriter.

Probably need to skip Content-Length though I guess? In fact, I would
probably need to remove all existing headers before copying from
SOAPMessage?

Maarten

On 2015-02-22 16:35, Martynas Jusevičius wrote:
> Yes. For example, I am modifying ETag value for XHTML Variant based on
> content language, user principal etc.
>
> On Sun, Feb 22, 2015 at 1:20 PM, Maarten Boekhold <boekhold_at_gmx.com> wrote:
>> Hi,
>>
>> As per the subject: is this allowed/possible?
>>
>> Maarten