Class CamelHeaderMapper

java.lang.Object
org.springframework.integration.camel.support.CamelHeaderMapper
All Implemented Interfaces:
HeaderMapper<org.apache.camel.Message>

public class CamelHeaderMapper extends Object implements 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 Details

    • CamelHeaderMapper

      public CamelHeaderMapper()
  • Method Details

    • setInboundHeaderNames

      public void setInboundHeaderNames(String... inboundHeaderNames)
      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

      public void setOutboundHeaderNames(String... outboundHeaderNames)
      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

      public void fromHeaders(MessageHeaders headers, org.apache.camel.Message target)
      Specified by:
      fromHeaders in interface HeaderMapper<org.apache.camel.Message>
    • toHeaders

      public Map<String,Object> toHeaders(org.apache.camel.Message source)
      Specified by:
      toHeaders in interface HeaderMapper<org.apache.camel.Message>