Class HashMapHeadersMapFactory

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

public class HashMapHeadersMapFactory extends Object implements org.apache.camel.spi.HeadersMapFactory
HashMap HeadersMapFactory which uses a plain HashMap. Important: The map is case sensitive which means headers such as content-type and Content-Type are two different keys which can be a problem for some protocols such as HTTP based. Therefore use this implementation with care.
  • Constructor Details

    • HashMapHeadersMapFactory

      public HashMapHeadersMapFactory()
  • 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