Hi
On 10/09/13 21:09, Frizz wrote:
Hi,
I've just added an IN and an OUT interceptor to the CXF bus. That works.
My IN interceptor is for Phase.PRE_INVOKE.
In my IN interceptors handleMessage(Message msg) method I try to figure out
whether it's a REST or a SOAP message. But the REST_MESSAGE property is
always null.
System.out.println(">>>>> REST_MESSAGE: " +
msg.get(Message.REST_MESSAGE));
System.out.println(">>>>> TRANSPORT: " + msg.get(Message.TRANSPORT));
...
Same for TRANSPORT.
All the other properties have correct values.
Bug - or am I doing something wrong?
This property is set on the exchange for it to be visible in/out, so
msg.getExchange().get(Message.REST_MESSAGE) will do it...
Cheers, Sergey
cheers,
F.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com