On 9/20/2012 10:15 AM, Santiago Pericas-Geertsen wrote:
>
> On Sep 20, 2012, at 6:17 AM, Sergey Beryozkin wrote:
>
>> If MessageBodyReaders had the same capability to modify the input headers, then it would cause some minor issues I'm referring to below.
>>
>> Reader interceptors are effectively higher-level MBRs. IMHO that is another reason why they should not be able to modify the headers
>
> Off top of my head I can't think of any UC for which having writable headers in the reader context would be useful.
>
Keep it mutable, IMO. I can see wanting to change the content-type (add
a charset or something) or adding other headers that might trigger
behavior in the MBR.
Bill
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com