users@jersey.java.net

[Jersey] ApacheConnector does not process request headers that were set in a WriterInterceptor

From: Rafael Winterhalter <Rafael.Winterhalter_at_kantega.no>
Date: Wed, 6 Nov 2013 14:18:50 +0100

I am experiencing problems when configuring my a JAX-RS client with Jersey Client and the ApacheConnector. It seems to ignore all request headers that I define in a WriterInterceptor. I can tell that the WriterInceptor is called when I set a break point within WriterInterceptor#aroundWriteTo(WriterInterceptorContext). Contrary to that, I can observe that the modification of an InputStream is preserved.

I posted a runnable code example on stack overflow:

http://stackoverflow.com/questions/19812967/apacheconnector-does-not-process-request-headers-that-were-set-in-a-writerinterc

Thanks for help!