public interface HeadersMapFactory
org.apache.camel.impl.engine.DefaultHeadersMapFactory
Modifier and Type | Field and Description |
---|---|
static String |
FACTORY
Service factory key.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isCaseInsensitive()
Whether the created
Map are case insensitive or not. |
boolean |
isInstanceOf(Map<String,Object> map)
Whether the given
Map implementation is created by this factory? |
Map<String,Object> |
newMap()
Creates a new empty
Map |
Map<String,Object> |
newMap(Map<String,Object> map)
Creates a new
Map and copies over all the content from the existing map. |
static final String FACTORY
Map<String,Object> newMap(Map<String,Object> map)
Map
and copies over all the content from the existing map.
The copy of the content should use defensive copy, so the returned map can add/remove/change the content without
affecting the existing map.map
- existing map to copy over (must use defensive copy)boolean isInstanceOf(Map<String,Object> map)
Map
implementation is created by this factory?boolean isCaseInsensitive()
Map
are case insensitive or not.
Important: When using case sensitive (this method return false). Then 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, which rely on case insensitive headers. However case sensitive implementations
can yield faster performance. Therefore use case sensitive implementation with care.Apache Camel