camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [3/5] camel git commit: CAMEL-10988: Add camel-headersmap with a faster case insenstive map implementation users can use by adding to classpath.
Date Tue, 30 May 2017 16:38:25 GMT
CAMEL-10988: Add camel-headersmap with a faster case insenstive map implementation users can
use by adding to classpath.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/e81258c6
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e81258c6
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e81258c6

Branch: refs/heads/master
Commit: e81258c63a5e5d73ed0d9d46d1b9513d2ea5d589
Parents: 1ac9579
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Tue May 30 17:52:42 2017 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Tue May 30 17:52:42 2017 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/camel/impl/DefaultCamelContext.java | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/e81258c6/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java b/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
index 78cfc7e..b2d7146 100644
--- a/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
+++ b/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
@@ -3312,11 +3312,13 @@ public class DefaultCamelContext extends ServiceSupport implements
ModelCamelCon
             log.debug("AllowUseOriginalMessage enabled because UseOriginalMessage is in use");
         }
 
-        // use resolver to find the headers map factory to be used
-        headersMapFactory = new HeadersMapFactoryResolver().resolve(this);
+        // use resolver to find the headers map factory to be used, if we are using the default
+        if (headersMapFactory instanceof DefaultHeadersMapFactory) {
+            headersMapFactory = new HeadersMapFactoryResolver().resolve(this);
+        }
 
         log.debug("Using HeadersMapFactory: {}", headersMapFactory);
-        if (!getHeadersMapFactory().isCaseInsensitive()) {
+        if (!headersMapFactory.isCaseInsensitive()) {
             log.info("HeadersMapFactory: {} is case-sensitive which can cause problems for
protocols such as HTTP based, which rely on case-insensitive headers.", getHeadersMapFactory());
         }
 


Mime
View raw message