You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2013/09/20 09:09:28 UTC

[1/2] git commit: CAMEL-6772: servletlistener component - Add messageHistory option

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 <da...@apache.org>
Authored: Fri Sep 20 09:07:09 2013 +0200
Committer: Claus Ibsen <da...@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));


[2/2] git commit: CAMEL-6772: servletlistener component - Add messageHistory option

Posted by da...@apache.org.
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/824a72fc
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/824a72fc
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/824a72fc

Branch: refs/heads/camel-2.12.x
Commit: 824a72fcb1153b5cca5e0d1bfa95649cec0c9bcc
Parents: 0acfd4a
Author: Claus Ibsen <da...@apache.org>
Authored: Fri Sep 20 09:07:09 2013 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Fri Sep 20 09:07:26 2013 +0200

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


http://git-wip-us.apache.org/repos/asf/camel/blob/824a72fc/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));