camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Tam" <email.w...@gmail.com>
Subject Re: [PROPOSAL] ProtocolMessage
Date Tue, 24 Jun 2008 15:28:40 GMT
>
> 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);
 ...
}

Mime
View raw message