camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/2] git commit: CAMEL-6772: servletlistener component - Add messageHistory option
Date Fri, 20 Sep 2013 07:09:28 GMT
Updated Branches:
  refs/heads/camel-2.12.x 0acfd4ac9 -> 824a72fcb
  refs/heads/master 1148c1206 -> fb82f66bc


CAMEL-6772: servletlistener component - Add messageHistory option


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

Branch: refs/heads/master
Commit: fb82f66bcc3974fee1dc676893ca9f829669fbc0
Parents: 1148c12
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Fri Sep 20 09:07:09 2013 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Fri Sep 20 09:07:09 2013 +0200

----------------------------------------------------------------------
 .../component/servletlistener/CamelServletContextListener.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/fb82f66b/components/camel-servletlistener/src/main/java/org/apache/camel/component/servletlistener/CamelServletContextListener.java
----------------------------------------------------------------------
diff --git a/components/camel-servletlistener/src/main/java/org/apache/camel/component/servletlistener/CamelServletContextListener.java
b/components/camel-servletlistener/src/main/java/org/apache/camel/component/servletlistener/CamelServletContextListener.java
index 1cb8954..6ffcf07 100644
--- a/components/camel-servletlistener/src/main/java/org/apache/camel/component/servletlistener/CamelServletContextListener.java
+++ b/components/camel-servletlistener/src/main/java/org/apache/camel/component/servletlistener/CamelServletContextListener.java
@@ -302,6 +302,10 @@ public abstract class CamelServletContextListener<R extends Registry>
implements
      * Initializes the {@link ServletCamelContext} by setting the supported init parameters.
      */
     private void initCamelContext(ServletCamelContext camelContext, Map<String, Object>
parameters) throws Exception {
+        String messageHistory = (String) parameters.remove("messageHistory");
+        if (messageHistory != null) {
+            camelContext.setMessageHistory(CamelContextHelper.parseBoolean(camelContext,
messageHistory));
+        }
         String streamCache = (String) parameters.remove("streamCache");
         if (streamCache != null) {
             camelContext.setStreamCaching(CamelContextHelper.parseBoolean(camelContext, streamCache));


Mime
View raw message