Class CamelHeaderMapper
java.lang.Object
org.springframework.integration.camel.support.CamelHeaderMapper
- All Implemented Interfaces:
HeaderMapper<org.apache.camel.Message>
A
HeaderMapper
for mapping headers from Spring Integration message
to Apache Camel message and back.- Since:
- 6.0
- Author:
- Artem Bilan
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fromHeaders
(MessageHeaders headers, org.apache.camel.Message target) void
setInboundHeaderNames
(String... inboundHeaderNames) Provide a list of patterns to map Apache Camel message headers into Spring Integration message.void
setOutboundHeaderNames
(String... outboundHeaderNames) Provide a list of patterns to map Spring Integration message headers into an Apache Camel message.toHeaders
(org.apache.camel.Message source)
-
Constructor Details
-
CamelHeaderMapper
public CamelHeaderMapper()
-
-
Method Details
-
setInboundHeaderNames
Provide a list of patterns to map Apache Camel message headers into Spring Integration message. By default, it maps all.- Parameters:
inboundHeaderNames
- the Apache Camel message headers patterns to map.
-
setOutboundHeaderNames
Provide a list of patterns to map Spring Integration message headers into an Apache Camel message. By default, it maps all.- Parameters:
outboundHeaderNames
- the header patterns to map.
-
fromHeaders
- Specified by:
fromHeaders
in interfaceHeaderMapper<org.apache.camel.Message>
-
toHeaders
- Specified by:
toHeaders
in interfaceHeaderMapper<org.apache.camel.Message>
-