>
> I just checked that CXF also puts the protocol header as a Object with the
> key Message.PROTOCOL_HEADERS in the CXF message[1]. If you want to get the
> protocol headers of the CXF message, you can retrieve it from CxfMessage's
> getHeader with the Message.PROTOCOL_HEADERS.
Yes, I aware of that but I want to avoid special-casing CxfMessage in
my client code. I.e. can't do something this. I can't even import
cxf module in that module.
if (message instanceof CxfMessage) {
Map<String, List<String>> headers =
message.getHeaders(Message.PROTOCOL_HEADERS);
...
}