Class DefaultHeadersMapFactory

java.lang.Object
org.apache.camel.impl.engine.DefaultHeadersMapFactory
All Implemented Interfaces:
org.apache.camel.spi.HeadersMapFactory

public class DefaultHeadersMapFactory extends Object implements org.apache.camel.spi.HeadersMapFactory
Default HeadersMapFactory which uses the CaseInsensitiveMap. This implementation uses a CaseInsensitiveMap storing the headers. This allows us to be able to lookup headers using case insensitive keys, making it easier for end users as they do not have to be worried about using exact keys. See more details at CaseInsensitiveMap.
  • Constructor Details

    • DefaultHeadersMapFactory

      public DefaultHeadersMapFactory()
  • Method Details

    • newMap

      public Map<String,Object> newMap()
      Specified by:
      newMap in interface org.apache.camel.spi.HeadersMapFactory
    • newMap

      public Map<String,Object> newMap(Map<String,Object> map)
      Specified by:
      newMap in interface org.apache.camel.spi.HeadersMapFactory
    • isInstanceOf

      public boolean isInstanceOf(Map<String,Object> map)
      Specified by:
      isInstanceOf in interface org.apache.camel.spi.HeadersMapFactory
    • isCaseInsensitive

      public boolean isCaseInsensitive()
      Specified by:
      isCaseInsensitive in interface org.apache.camel.spi.HeadersMapFactory