Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Message.REST_MESSAGE is always null

$
0
0
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?

cheers,
F.

Viewing all articles
Browse latest Browse all 5648

Trending Articles