Repository: camel
Updated Branches:
  refs/heads/master 9edce5353 -> beb451ca7


Component docs and starter


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

Branch: refs/heads/master
Commit: beb451ca77c76c79ce017398c782c85007417124
Parents: 9edce53
Author: Andrea Cosentino <[email protected]>
Authored: Thu Sep 29 08:31:10 2016 +0200
Committer: Andrea Cosentino <[email protected]>
Committed: Thu Sep 29 08:31:10 2016 +0200

----------------------------------------------------------------------
 .../springboot/NettyComponentConfiguration.java      | 15 +++++++++++++++
 .../camel-netty4/src/main/docs/netty4-component.adoc |  3 ++-
 2 files changed, 17 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/beb451ca/components-starter/camel-netty4-starter/src/main/java/org/apache/camel/component/netty4/springboot/NettyComponentConfiguration.java
----------------------------------------------------------------------
diff --git 
a/components-starter/camel-netty4-starter/src/main/java/org/apache/camel/component/netty4/springboot/NettyComponentConfiguration.java
 
b/components-starter/camel-netty4-starter/src/main/java/org/apache/camel/component/netty4/springboot/NettyComponentConfiguration.java
index bdfacc9..62f460e 100644
--- 
a/components-starter/camel-netty4-starter/src/main/java/org/apache/camel/component/netty4/springboot/NettyComponentConfiguration.java
+++ 
b/components-starter/camel-netty4-starter/src/main/java/org/apache/camel/component/netty4/springboot/NettyComponentConfiguration.java
@@ -169,6 +169,13 @@ public class NettyComponentConfiguration {
          */
         private Boolean transferExchange;
         /**
+         * Only used for TCP when transferExchange is true. When set to true,
+         * serializable objects in headers and properties will be added to the
+         * exchange. Otherwise Camel will exclude any non-serializable objects
+         * and log it at WARN level.
+         */
+        private Boolean allowSerializedHeaders;
+        /**
          * If sync is enabled then this option dictates NettyConsumer if it
          * should disconnect where there is no reply to send back.
          */
@@ -590,6 +597,14 @@ public class NettyComponentConfiguration {
             this.transferExchange = transferExchange;
         }
 
+        public Boolean getAllowSerializedHeaders() {
+            return allowSerializedHeaders;
+        }
+
+        public void setAllowSerializedHeaders(Boolean allowSerializedHeaders) {
+            this.allowSerializedHeaders = allowSerializedHeaders;
+        }
+
         public Boolean getDisconnectOnNoReply() {
             return disconnectOnNoReply;
         }

http://git-wip-us.apache.org/repos/asf/camel/blob/beb451ca/components/camel-netty4/src/main/docs/netty4-component.adoc
----------------------------------------------------------------------
diff --git a/components/camel-netty4/src/main/docs/netty4-component.adoc 
b/components/camel-netty4/src/main/docs/netty4-component.adoc
index fed269d..fba30af 100644
--- a/components/camel-netty4/src/main/docs/netty4-component.adoc
+++ b/components/camel-netty4/src/main/docs/netty4-component.adoc
@@ -85,7 +85,7 @@ The Netty4 component supports 3 options which are listed 
below.
 
 
 // endpoint options: START
-The Netty4 component supports 73 endpoint options which are listed below:
+The Netty4 component supports 74 endpoint options which are listed below:
 
 {% raw %}
 [width="100%",cols="2,1,1m,1m,5",options="header"]
@@ -131,6 +131,7 @@ The Netty4 component supports 73 endpoint options which are 
listed below:
 | producerPoolMinIdle | producer (advanced) |  | int | Sets the minimum number 
of instances allowed in the producer pool before the evictor thread (if active) 
spawns new objects.
 | udpConnectionlessSending | producer (advanced) | false | boolean | This 
option supports connection less udp sending which is a real fire and forget. A 
connected udp send receive the PortUnreachableException if no one is listen on 
the receiving port.
 | useByteBuf | producer (advanced) | false | boolean | If the useByteBuf is 
true netty producer will turn the message body into ByteBuf before sending it 
out.
+| allowSerializedHeaders | advanced | false | boolean | Only used for TCP when 
transferExchange is true. When set to true serializable objects in headers and 
properties will be added to the exchange. Otherwise Camel will exclude any 
non-serializable objects and log it at WARN level.
 | bootstrapConfiguration | advanced |  | NettyServerBootstrapConfiguration | 
To use a custom configured NettyServerBootstrapConfiguration for configuring 
this endpoint.
 | channelGroup | advanced |  | ChannelGroup | To use a explicit ChannelGroup.
 | nativeTransport | advanced | false | boolean | Whether to use native 
transport instead of NIO. Native transport takes advantage of the host 
operating system and is only supported on some platforms. You need to add the 
netty JAR for the host operating system you are using. See more details at: 
http://netty.io/wiki/native-transports.html

Reply via email to