Hi
On 10/09/13 23:07, Frizz wrote:
Just tried it for SOAP messages.
msg.getExchange().get(Message.REST_MESSAGE) is null for SOAP messages.
But according to the documentation it should be false:
"Boolean property which can be used to check that the current request
is part of the SOAP (JAX-WS) or non-SOAP/REST (JAX-RS) execution context."
What's the correct way to figure out if my message is JAX-WS or JAX-RS?
Using Boolean.valueOf(null) will return Boolean.FALSE as far as I recall,
Cheers, Sergey
On Tue, Sep 10, 2013 at 10:17 PM, Sergey Beryozkin <[email protected]>wrote:
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
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com