Package org.apache.camel.impl.engine
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
HashMapHeadersMapFactory
which uses a plainHashMap
. 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 Summary
Constructors Constructor Description HashMapHeadersMapFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isCaseInsensitive()
boolean
isInstanceOf(Map<String,Object> map)
Map<String,Object>
newMap()
Map<String,Object>
newMap(Map<String,Object> map)
-
-
-
Method Detail
-
newMap
public Map<String,Object> newMap()
- Specified by:
newMap
in interfaceorg.apache.camel.spi.HeadersMapFactory
-
newMap
public Map<String,Object> newMap(Map<String,Object> map)
- Specified by:
newMap
in interfaceorg.apache.camel.spi.HeadersMapFactory
-
isInstanceOf
public boolean isInstanceOf(Map<String,Object> map)
- Specified by:
isInstanceOf
in interfaceorg.apache.camel.spi.HeadersMapFactory
-
isCaseInsensitive
public boolean isCaseInsensitive()
- Specified by:
isCaseInsensitive
in interfaceorg.apache.camel.spi.HeadersMapFactory
-
-