This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 058aa7857dbda0dfe4937d7b6fb0d03dfa6339d5
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Mon Mar 8 21:50:29 2021 +0100

    CAMEL-16315 - Camel-Netty: Support Hostname verification even though we are 
on Netty 4.1.x
---
 .../apache/camel/catalog/docs/netty-component.adoc |   4 +-
 .../org/apache/camel/component/netty/netty.json    |   4 +-
 .../camel-netty/src/main/docs/netty-component.adoc |   4 +-
 .../dsl/NettyComponentBuilderFactory.java          |  34 ++--
 .../endpoint/dsl/NettyEndpointBuilderFactory.java  | 198 ++++++++++-----------
 .../modules/ROOT/pages/netty-component.adoc        |   4 +-
 6 files changed, 124 insertions(+), 124 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/netty-component.adoc
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/netty-component.adoc
index 833284a..e7cd796 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/netty-component.adoc
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/netty-component.adoc
@@ -68,7 +68,6 @@ The Netty component supports 73 options, which are listed 
below.
 | Name | Description | Default | Type
 | *configuration* (common) | To use the NettyConfiguration as configuration 
when creating endpoints. |  | NettyConfiguration
 | *disconnect* (common) | Whether or not to disconnect(close) from Netty 
Channel right after use. Can be used for both consumer and producer. | false | 
boolean
-| *hostnameVerification* (common) | To enable/disable hostname verification on 
SSLEngine | false | boolean
 | *keepAlive* (common) | Setting to ensure socket is not closed due to 
inactivity | true | boolean
 | *reuseAddress* (common) | Setting to facilitate socket multiplexing | true | 
boolean
 | *reuseChannel* (common) | This option allows producers and consumers (in 
client mode) to reuse the same Netty Channel for the lifecycle of processing 
the Exchange. This is useful if you need to call a server multiple times in a 
Camel route and want to use the same network connection. When using this, the 
channel is not returned to the connection pool until the Exchange is done; or 
disconnected if the disconnect option is set to true. The reused Channel is 
stored on the Exchange as an e [...]
@@ -105,6 +104,7 @@ The Netty component supports 73 options, which are listed 
below.
 | *producerPoolMinIdle* (producer) | Sets the minimum number of instances 
allowed in the producer pool before the evictor thread (if active) spawns new 
objects. |  | int
 | *udpConnectionlessSending* (producer) | 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. | false | 
boolean
 | *useByteBuf* (producer) | If the useByteBuf is true, netty producer will 
turn the message body into ByteBuf before sending it out. | false | boolean
+| *hostnameVerification* ( security) | To enable/disable hostname verification 
on SSLEngine | false | boolean
 | *allowSerializedHeaders* (advanced) | 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. | false | boolean
 | *autowiredEnabled* (advanced) | Whether autowiring is enabled. This is used 
for automatic autowiring options (the option must be marked as autowired) by 
looking up in the registry to find if there is a single instance of matching 
type, which then gets configured on the component. This can be used for 
automatic configuring JDBC data sources, JMS connection factories, AWS Clients, 
etc. | true | boolean
 | *channelGroup* (advanced) | To use a explicit ChannelGroup. |  | ChannelGroup
@@ -171,7 +171,6 @@ with the following path and query parameters:
 |===
 | Name | Description | Default | Type
 | *disconnect* (common) | Whether or not to disconnect(close) from Netty 
Channel right after use. Can be used for both consumer and producer. | false | 
boolean
-| *hostnameVerification* (common) | To enable/disable hostname verification on 
SSLEngine | false | boolean
 | *keepAlive* (common) | Setting to ensure socket is not closed due to 
inactivity | true | boolean
 | *reuseAddress* (common) | Setting to facilitate socket multiplexing | true | 
boolean
 | *reuseChannel* (common) | This option allows producers and consumers (in 
client mode) to reuse the same Netty Channel for the lifecycle of processing 
the Exchange. This is useful if you need to call a server multiple times in a 
Camel route and want to use the same network connection. When using this, the 
channel is not returned to the connection pool until the Exchange is done; or 
disconnected if the disconnect option is set to true. The reused Channel is 
stored on the Exchange as an e [...]
@@ -208,6 +207,7 @@ with the following path and query parameters:
 | *producerPoolMinIdle* (producer) | Sets the minimum number of instances 
allowed in the producer pool before the evictor thread (if active) spawns new 
objects. |  | int
 | *udpConnectionlessSending* (producer) | 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. | false | 
boolean
 | *useByteBuf* (producer) | If the useByteBuf is true, netty producer will 
turn the message body into ByteBuf before sending it out. | false | boolean
+| *hostnameVerification* ( security) | To enable/disable hostname verification 
on SSLEngine | false | boolean
 | *allowSerializedHeaders* (advanced) | 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. | false | boolean
 | *channelGroup* (advanced) | To use a explicit ChannelGroup. |  | ChannelGroup
 | *nativeTransport* (advanced) | 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 | false | boolean
diff --git 
a/components/camel-netty/src/generated/resources/org/apache/camel/component/netty/netty.json
 
b/components/camel-netty/src/generated/resources/org/apache/camel/component/netty/netty.json
index de5f869..a87f887 100644
--- 
a/components/camel-netty/src/generated/resources/org/apache/camel/component/netty/netty.json
+++ 
b/components/camel-netty/src/generated/resources/org/apache/camel/component/netty/netty.json
@@ -24,7 +24,6 @@
   "componentProperties": {
     "configuration": { "kind": "property", "displayName": "Configuration", 
"group": "common", "label": "", "required": false, "type": "object", 
"javaType": "org.apache.camel.component.netty.NettyConfiguration", 
"deprecated": false, "autowired": false, "secret": false, "description": "To 
use the NettyConfiguration as configuration when creating endpoints." },
     "disconnect": { "kind": "property", "displayName": "Disconnect", "group": 
"common", "label": "", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "Whether or not to disconnect(close) from Netty 
Channel right after use. Can be used for both consumer and producer." },
-    "hostnameVerification": { "kind": "property", "displayName": "Hostname 
Verification", "group": "common", "label": "common", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "To enable\/disable hostname verification on 
SSLEngine" },
     "keepAlive": { "kind": "property", "displayName": "Keep Alive", "group": 
"common", "label": "", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": true, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "Setting to ensure socket is not closed due to 
inactivity" },
     "reuseAddress": { "kind": "property", "displayName": "Reuse Address", 
"group": "common", "label": "", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": true, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "Setting to facilitate socket multiplexing" },
     "reuseChannel": { "kind": "property", "displayName": "Reuse Channel", 
"group": "common", "label": "common", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "This option allows producers and consumers (in 
client mode) to reuse the same Netty Channel for the lifecy [...]
@@ -61,6 +60,7 @@
     "producerPoolMinIdle": { "kind": "property", "displayName": "Producer Pool 
Min Idle", "group": "producer (advanced)", "label": "producer,advanced", 
"required": false, "type": "integer", "javaType": "int", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "Sets the minimum number of instances allowed 
in the producer pool before the evictor thread ( [...]
     "udpConnectionlessSending": { "kind": "property", "displayName": "Udp 
Connectionless Sending", "group": "producer (advanced)", "label": 
"producer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "This option supports connection less udp 
sending which is [...]
     "useByteBuf": { "kind": "property", "displayName": "Use Byte Buf", 
"group": "producer (advanced)", "label": "producer,advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, 
"configurationClass": "org.apache.camel.component.netty.NettyConfiguration", 
"configurationField": "configuration", "description": "If the useByteBuf is 
true, netty producer will turn the message body into ByteBuf bef [...]
+    "hostnameVerification": { "kind": "property", "displayName": "Hostname 
Verification", "group": " security", "label": "common, security", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, 
"configurationClass": "org.apache.camel.component.netty.NettyConfiguration", 
"configurationField": "configuration", "description": "To enable\/disable 
hostname verification on SSLEngine" },
     "allowSerializedHeaders": { "kind": "property", "displayName": "Allow 
Serialized Headers", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, 
"configurationClass": "org.apache.camel.component.netty.NettyConfiguration", 
"configurationField": "configuration", "description": "Only used for TCP when 
transferExchange is true. When set to true, serializable o [...]
     "autowiredEnabled": { "kind": "property", "displayName": "Autowired 
Enabled", "group": "advanced", "label": "advanced", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "description": "Whether autowiring is 
enabled. This is used for automatic autowiring options (the option must be 
marked as autowired) by looking up in the registry to find if there is a single 
instance of matching type, which t [...]
     "channelGroup": { "kind": "property", "displayName": "Channel Group", 
"group": "advanced", "label": "advanced", "required": false, "type": "object", 
"javaType": "io.netty.channel.group.ChannelGroup", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "To use a explicit ChannelGroup." },
@@ -101,7 +101,6 @@
     "host": { "kind": "path", "displayName": "Host", "group": "common", 
"label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "The hostname. For the consumer the hostname is 
localhost or 0.0.0.0. For the producer the hostname is the remote host to conne 
[...]
     "port": { "kind": "path", "displayName": "Port", "group": "common", 
"label": "", "required": true, "type": "integer", "javaType": "int", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "The host port number" },
     "disconnect": { "kind": "parameter", "displayName": "Disconnect", "group": 
"common", "label": "", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "Whether or not to disconnect(close) from Netty 
Channel right after use. Can be used for both consumer and producer." },
-    "hostnameVerification": { "kind": "parameter", "displayName": "Hostname 
Verification", "group": "common", "label": "common", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "To enable\/disable hostname verification on 
SSLEngine" },
     "keepAlive": { "kind": "parameter", "displayName": "Keep Alive", "group": 
"common", "label": "", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": true, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "Setting to ensure socket is not closed due to 
inactivity" },
     "reuseAddress": { "kind": "parameter", "displayName": "Reuse Address", 
"group": "common", "label": "", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": true, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "Setting to facilitate socket multiplexing" },
     "reuseChannel": { "kind": "parameter", "displayName": "Reuse Channel", 
"group": "common", "label": "common", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "This option allows producers and consumers (in 
client mode) to reuse the same Netty Channel for the lifec [...]
@@ -138,6 +137,7 @@
     "producerPoolMinIdle": { "kind": "parameter", "displayName": "Producer 
Pool Min Idle", "group": "producer (advanced)", "label": "producer,advanced", 
"required": false, "type": "integer", "javaType": "int", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "Sets the minimum number of instances allowed 
in the producer pool before the evictor thread  [...]
     "udpConnectionlessSending": { "kind": "parameter", "displayName": "Udp 
Connectionless Sending", "group": "producer (advanced)", "label": 
"producer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "This option supports connection less udp 
sending which i [...]
     "useByteBuf": { "kind": "parameter", "displayName": "Use Byte Buf", 
"group": "producer (advanced)", "label": "producer,advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, 
"configurationClass": "org.apache.camel.component.netty.NettyConfiguration", 
"configurationField": "configuration", "description": "If the useByteBuf is 
true, netty producer will turn the message body into ByteBuf be [...]
+    "hostnameVerification": { "kind": "parameter", "displayName": "Hostname 
Verification", "group": " security", "label": "common, security", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, 
"configurationClass": "org.apache.camel.component.netty.NettyConfiguration", 
"configurationField": "configuration", "description": "To enable\/disable 
hostname verification on SSLEngine" },
     "allowSerializedHeaders": { "kind": "parameter", "displayName": "Allow 
Serialized Headers", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, 
"configurationClass": "org.apache.camel.component.netty.NettyConfiguration", 
"configurationField": "configuration", "description": "Only used for TCP when 
transferExchange is true. When set to true, serializable  [...]
     "channelGroup": { "kind": "parameter", "displayName": "Channel Group", 
"group": "advanced", "label": "advanced", "required": false, "type": "object", 
"javaType": "io.netty.channel.group.ChannelGroup", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "To use a explicit ChannelGroup." },
     "nativeTransport": { "kind": "parameter", "displayName": "Native 
Transport", "group": "advanced", "label": "advanced", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "Whether to use native transport instead of 
NIO. Native transport takes advantage of the host op [...]
diff --git a/components/camel-netty/src/main/docs/netty-component.adoc 
b/components/camel-netty/src/main/docs/netty-component.adoc
index 833284a..e7cd796 100644
--- a/components/camel-netty/src/main/docs/netty-component.adoc
+++ b/components/camel-netty/src/main/docs/netty-component.adoc
@@ -68,7 +68,6 @@ The Netty component supports 73 options, which are listed 
below.
 | Name | Description | Default | Type
 | *configuration* (common) | To use the NettyConfiguration as configuration 
when creating endpoints. |  | NettyConfiguration
 | *disconnect* (common) | Whether or not to disconnect(close) from Netty 
Channel right after use. Can be used for both consumer and producer. | false | 
boolean
-| *hostnameVerification* (common) | To enable/disable hostname verification on 
SSLEngine | false | boolean
 | *keepAlive* (common) | Setting to ensure socket is not closed due to 
inactivity | true | boolean
 | *reuseAddress* (common) | Setting to facilitate socket multiplexing | true | 
boolean
 | *reuseChannel* (common) | This option allows producers and consumers (in 
client mode) to reuse the same Netty Channel for the lifecycle of processing 
the Exchange. This is useful if you need to call a server multiple times in a 
Camel route and want to use the same network connection. When using this, the 
channel is not returned to the connection pool until the Exchange is done; or 
disconnected if the disconnect option is set to true. The reused Channel is 
stored on the Exchange as an e [...]
@@ -105,6 +104,7 @@ The Netty component supports 73 options, which are listed 
below.
 | *producerPoolMinIdle* (producer) | Sets the minimum number of instances 
allowed in the producer pool before the evictor thread (if active) spawns new 
objects. |  | int
 | *udpConnectionlessSending* (producer) | 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. | false | 
boolean
 | *useByteBuf* (producer) | If the useByteBuf is true, netty producer will 
turn the message body into ByteBuf before sending it out. | false | boolean
+| *hostnameVerification* ( security) | To enable/disable hostname verification 
on SSLEngine | false | boolean
 | *allowSerializedHeaders* (advanced) | 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. | false | boolean
 | *autowiredEnabled* (advanced) | Whether autowiring is enabled. This is used 
for automatic autowiring options (the option must be marked as autowired) by 
looking up in the registry to find if there is a single instance of matching 
type, which then gets configured on the component. This can be used for 
automatic configuring JDBC data sources, JMS connection factories, AWS Clients, 
etc. | true | boolean
 | *channelGroup* (advanced) | To use a explicit ChannelGroup. |  | ChannelGroup
@@ -171,7 +171,6 @@ with the following path and query parameters:
 |===
 | Name | Description | Default | Type
 | *disconnect* (common) | Whether or not to disconnect(close) from Netty 
Channel right after use. Can be used for both consumer and producer. | false | 
boolean
-| *hostnameVerification* (common) | To enable/disable hostname verification on 
SSLEngine | false | boolean
 | *keepAlive* (common) | Setting to ensure socket is not closed due to 
inactivity | true | boolean
 | *reuseAddress* (common) | Setting to facilitate socket multiplexing | true | 
boolean
 | *reuseChannel* (common) | This option allows producers and consumers (in 
client mode) to reuse the same Netty Channel for the lifecycle of processing 
the Exchange. This is useful if you need to call a server multiple times in a 
Camel route and want to use the same network connection. When using this, the 
channel is not returned to the connection pool until the Exchange is done; or 
disconnected if the disconnect option is set to true. The reused Channel is 
stored on the Exchange as an e [...]
@@ -208,6 +207,7 @@ with the following path and query parameters:
 | *producerPoolMinIdle* (producer) | Sets the minimum number of instances 
allowed in the producer pool before the evictor thread (if active) spawns new 
objects. |  | int
 | *udpConnectionlessSending* (producer) | 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. | false | 
boolean
 | *useByteBuf* (producer) | If the useByteBuf is true, netty producer will 
turn the message body into ByteBuf before sending it out. | false | boolean
+| *hostnameVerification* ( security) | To enable/disable hostname verification 
on SSLEngine | false | boolean
 | *allowSerializedHeaders* (advanced) | 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. | false | boolean
 | *channelGroup* (advanced) | To use a explicit ChannelGroup. |  | ChannelGroup
 | *nativeTransport* (advanced) | 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 | false | boolean
diff --git 
a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/NettyComponentBuilderFactory.java
 
b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/NettyComponentBuilderFactory.java
index 5928c55..7cf8d9d 100644
--- 
a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/NettyComponentBuilderFactory.java
+++ 
b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/NettyComponentBuilderFactory.java
@@ -82,22 +82,6 @@ public interface NettyComponentBuilderFactory {
             return this;
         }
         /**
-         * To enable/disable hostname verification on SSLEngine.
-         * 
-         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
-         * 
-         * Default: false
-         * Group: common
-         * 
-         * @param hostnameVerification the value to set
-         * @return the dsl builder
-         */
-        default NettyComponentBuilder hostnameVerification(
-                boolean hostnameVerification) {
-            doSetProperty("hostnameVerification", hostnameVerification);
-            return this;
-        }
-        /**
          * Setting to ensure socket is not closed due to inactivity.
          * 
          * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
@@ -742,6 +726,22 @@ public interface NettyComponentBuilderFactory {
             return this;
         }
         /**
+         * To enable/disable hostname verification on SSLEngine.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: false
+         * Group:  security
+         * 
+         * @param hostnameVerification the value to set
+         * @return the dsl builder
+         */
+        default NettyComponentBuilder hostnameVerification(
+                boolean hostnameVerification) {
+            doSetProperty("hostnameVerification", hostnameVerification);
+            return this;
+        }
+        /**
          * 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
@@ -1345,7 +1345,6 @@ public interface NettyComponentBuilderFactory {
             switch (name) {
             case "configuration": ((NettyComponent) 
component).setConfiguration((org.apache.camel.component.netty.NettyConfiguration)
 value); return true;
             case "disconnect": getOrCreateConfiguration((NettyComponent) 
component).setDisconnect((boolean) value); return true;
-            case "hostnameVerification": 
getOrCreateConfiguration((NettyComponent) 
component).setHostnameVerification((boolean) value); return true;
             case "keepAlive": getOrCreateConfiguration((NettyComponent) 
component).setKeepAlive((boolean) value); return true;
             case "reuseAddress": getOrCreateConfiguration((NettyComponent) 
component).setReuseAddress((boolean) value); return true;
             case "reuseChannel": getOrCreateConfiguration((NettyComponent) 
component).setReuseChannel((boolean) value); return true;
@@ -1382,6 +1381,7 @@ public interface NettyComponentBuilderFactory {
             case "producerPoolMinIdle": 
getOrCreateConfiguration((NettyComponent) 
component).setProducerPoolMinIdle((int) value); return true;
             case "udpConnectionlessSending": 
getOrCreateConfiguration((NettyComponent) 
component).setUdpConnectionlessSending((boolean) value); return true;
             case "useByteBuf": getOrCreateConfiguration((NettyComponent) 
component).setUseByteBuf((boolean) value); return true;
+            case "hostnameVerification": 
getOrCreateConfiguration((NettyComponent) 
component).setHostnameVerification((boolean) value); return true;
             case "allowSerializedHeaders": 
getOrCreateConfiguration((NettyComponent) 
component).setAllowSerializedHeaders((boolean) value); return true;
             case "autowiredEnabled": ((NettyComponent) 
component).setAutowiredEnabled((boolean) value); return true;
             case "channelGroup": getOrCreateConfiguration((NettyComponent) 
component).setChannelGroup((io.netty.channel.group.ChannelGroup) value); return 
true;
diff --git 
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/NettyEndpointBuilderFactory.java
 
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/NettyEndpointBuilderFactory.java
index e134819..6e2995e 100644
--- 
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/NettyEndpointBuilderFactory.java
+++ 
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/NettyEndpointBuilderFactory.java
@@ -79,39 +79,6 @@ public interface NettyEndpointBuilderFactory {
             return this;
         }
         /**
-         * To enable/disable hostname verification on SSLEngine.
-         * 
-         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
-         * 
-         * Default: false
-         * Group: common
-         * 
-         * @param hostnameVerification the value to set
-         * @return the dsl builder
-         */
-        default NettyEndpointConsumerBuilder hostnameVerification(
-                boolean hostnameVerification) {
-            doSetProperty("hostnameVerification", hostnameVerification);
-            return this;
-        }
-        /**
-         * To enable/disable hostname verification on SSLEngine.
-         * 
-         * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt;
-         * type.
-         * 
-         * Default: false
-         * Group: common
-         * 
-         * @param hostnameVerification the value to set
-         * @return the dsl builder
-         */
-        default NettyEndpointConsumerBuilder hostnameVerification(
-                String hostnameVerification) {
-            doSetProperty("hostnameVerification", hostnameVerification);
-            return this;
-        }
-        /**
          * Setting to ensure socket is not closed due to inactivity.
          * 
          * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
@@ -459,6 +426,39 @@ public interface NettyEndpointBuilderFactory {
             return this;
         }
         /**
+         * To enable/disable hostname verification on SSLEngine.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: false
+         * Group:  security
+         * 
+         * @param hostnameVerification the value to set
+         * @return the dsl builder
+         */
+        default NettyEndpointConsumerBuilder hostnameVerification(
+                boolean hostnameVerification) {
+            doSetProperty("hostnameVerification", hostnameVerification);
+            return this;
+        }
+        /**
+         * To enable/disable hostname verification on SSLEngine.
+         * 
+         * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt;
+         * type.
+         * 
+         * Default: false
+         * Group:  security
+         * 
+         * @param hostnameVerification the value to set
+         * @return the dsl builder
+         */
+        default NettyEndpointConsumerBuilder hostnameVerification(
+                String hostnameVerification) {
+            doSetProperty("hostnameVerification", hostnameVerification);
+            return this;
+        }
+        /**
          * The netty component installs a default codec if both, 
encoder/decoder
          * is null and textline is false. Setting allowDefaultCodec to false
          * prevents the netty component from installing a default codec as the
@@ -1979,39 +1979,6 @@ public interface NettyEndpointBuilderFactory {
             return this;
         }
         /**
-         * To enable/disable hostname verification on SSLEngine.
-         * 
-         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
-         * 
-         * Default: false
-         * Group: common
-         * 
-         * @param hostnameVerification the value to set
-         * @return the dsl builder
-         */
-        default NettyEndpointProducerBuilder hostnameVerification(
-                boolean hostnameVerification) {
-            doSetProperty("hostnameVerification", hostnameVerification);
-            return this;
-        }
-        /**
-         * To enable/disable hostname verification on SSLEngine.
-         * 
-         * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt;
-         * type.
-         * 
-         * Default: false
-         * Group: common
-         * 
-         * @param hostnameVerification the value to set
-         * @return the dsl builder
-         */
-        default NettyEndpointProducerBuilder hostnameVerification(
-                String hostnameVerification) {
-            doSetProperty("hostnameVerification", hostnameVerification);
-            return this;
-        }
-        /**
          * Setting to ensure socket is not closed due to inactivity.
          * 
          * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
@@ -2300,6 +2267,39 @@ public interface NettyEndpointBuilderFactory {
             return this;
         }
         /**
+         * To enable/disable hostname verification on SSLEngine.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: false
+         * Group:  security
+         * 
+         * @param hostnameVerification the value to set
+         * @return the dsl builder
+         */
+        default NettyEndpointProducerBuilder hostnameVerification(
+                boolean hostnameVerification) {
+            doSetProperty("hostnameVerification", hostnameVerification);
+            return this;
+        }
+        /**
+         * To enable/disable hostname verification on SSLEngine.
+         * 
+         * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt;
+         * type.
+         * 
+         * Default: false
+         * Group:  security
+         * 
+         * @param hostnameVerification the value to set
+         * @return the dsl builder
+         */
+        default NettyEndpointProducerBuilder hostnameVerification(
+                String hostnameVerification) {
+            doSetProperty("hostnameVerification", hostnameVerification);
+            return this;
+        }
+        /**
          * The netty component installs a default codec if both, 
encoder/decoder
          * is null and textline is false. Setting allowDefaultCodec to false
          * prevents the netty component from installing a default codec as the
@@ -3734,39 +3734,6 @@ public interface NettyEndpointBuilderFactory {
             return this;
         }
         /**
-         * To enable/disable hostname verification on SSLEngine.
-         * 
-         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
-         * 
-         * Default: false
-         * Group: common
-         * 
-         * @param hostnameVerification the value to set
-         * @return the dsl builder
-         */
-        default NettyEndpointBuilder hostnameVerification(
-                boolean hostnameVerification) {
-            doSetProperty("hostnameVerification", hostnameVerification);
-            return this;
-        }
-        /**
-         * To enable/disable hostname verification on SSLEngine.
-         * 
-         * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt;
-         * type.
-         * 
-         * Default: false
-         * Group: common
-         * 
-         * @param hostnameVerification the value to set
-         * @return the dsl builder
-         */
-        default NettyEndpointBuilder hostnameVerification(
-                String hostnameVerification) {
-            doSetProperty("hostnameVerification", hostnameVerification);
-            return this;
-        }
-        /**
          * Setting to ensure socket is not closed due to inactivity.
          * 
          * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
@@ -3938,6 +3905,39 @@ public interface NettyEndpointBuilderFactory {
             return this;
         }
         /**
+         * To enable/disable hostname verification on SSLEngine.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: false
+         * Group:  security
+         * 
+         * @param hostnameVerification the value to set
+         * @return the dsl builder
+         */
+        default NettyEndpointBuilder hostnameVerification(
+                boolean hostnameVerification) {
+            doSetProperty("hostnameVerification", hostnameVerification);
+            return this;
+        }
+        /**
+         * To enable/disable hostname verification on SSLEngine.
+         * 
+         * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt;
+         * type.
+         * 
+         * Default: false
+         * Group:  security
+         * 
+         * @param hostnameVerification the value to set
+         * @return the dsl builder
+         */
+        default NettyEndpointBuilder hostnameVerification(
+                String hostnameVerification) {
+            doSetProperty("hostnameVerification", hostnameVerification);
+            return this;
+        }
+        /**
          * The netty component installs a default codec if both, 
encoder/decoder
          * is null and textline is false. Setting allowDefaultCodec to false
          * prevents the netty component from installing a default codec as the
diff --git a/docs/components/modules/ROOT/pages/netty-component.adoc 
b/docs/components/modules/ROOT/pages/netty-component.adoc
index da604ac..390a457 100644
--- a/docs/components/modules/ROOT/pages/netty-component.adoc
+++ b/docs/components/modules/ROOT/pages/netty-component.adoc
@@ -70,7 +70,6 @@ The Netty component supports 73 options, which are listed 
below.
 | Name | Description | Default | Type
 | *configuration* (common) | To use the NettyConfiguration as configuration 
when creating endpoints. |  | NettyConfiguration
 | *disconnect* (common) | Whether or not to disconnect(close) from Netty 
Channel right after use. Can be used for both consumer and producer. | false | 
boolean
-| *hostnameVerification* (common) | To enable/disable hostname verification on 
SSLEngine | false | boolean
 | *keepAlive* (common) | Setting to ensure socket is not closed due to 
inactivity | true | boolean
 | *reuseAddress* (common) | Setting to facilitate socket multiplexing | true | 
boolean
 | *reuseChannel* (common) | This option allows producers and consumers (in 
client mode) to reuse the same Netty Channel for the lifecycle of processing 
the Exchange. This is useful if you need to call a server multiple times in a 
Camel route and want to use the same network connection. When using this, the 
channel is not returned to the connection pool until the Exchange is done; or 
disconnected if the disconnect option is set to true. The reused Channel is 
stored on the Exchange as an e [...]
@@ -107,6 +106,7 @@ The Netty component supports 73 options, which are listed 
below.
 | *producerPoolMinIdle* (producer) | Sets the minimum number of instances 
allowed in the producer pool before the evictor thread (if active) spawns new 
objects. |  | int
 | *udpConnectionlessSending* (producer) | 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. | false | 
boolean
 | *useByteBuf* (producer) | If the useByteBuf is true, netty producer will 
turn the message body into ByteBuf before sending it out. | false | boolean
+| *hostnameVerification* ( security) | To enable/disable hostname verification 
on SSLEngine | false | boolean
 | *allowSerializedHeaders* (advanced) | 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. | false | boolean
 | *autowiredEnabled* (advanced) | Whether autowiring is enabled. This is used 
for automatic autowiring options (the option must be marked as autowired) by 
looking up in the registry to find if there is a single instance of matching 
type, which then gets configured on the component. This can be used for 
automatic configuring JDBC data sources, JMS connection factories, AWS Clients, 
etc. | true | boolean
 | *channelGroup* (advanced) | To use a explicit ChannelGroup. |  | ChannelGroup
@@ -173,7 +173,6 @@ with the following path and query parameters:
 |===
 | Name | Description | Default | Type
 | *disconnect* (common) | Whether or not to disconnect(close) from Netty 
Channel right after use. Can be used for both consumer and producer. | false | 
boolean
-| *hostnameVerification* (common) | To enable/disable hostname verification on 
SSLEngine | false | boolean
 | *keepAlive* (common) | Setting to ensure socket is not closed due to 
inactivity | true | boolean
 | *reuseAddress* (common) | Setting to facilitate socket multiplexing | true | 
boolean
 | *reuseChannel* (common) | This option allows producers and consumers (in 
client mode) to reuse the same Netty Channel for the lifecycle of processing 
the Exchange. This is useful if you need to call a server multiple times in a 
Camel route and want to use the same network connection. When using this, the 
channel is not returned to the connection pool until the Exchange is done; or 
disconnected if the disconnect option is set to true. The reused Channel is 
stored on the Exchange as an e [...]
@@ -210,6 +209,7 @@ with the following path and query parameters:
 | *producerPoolMinIdle* (producer) | Sets the minimum number of instances 
allowed in the producer pool before the evictor thread (if active) spawns new 
objects. |  | int
 | *udpConnectionlessSending* (producer) | 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. | false | 
boolean
 | *useByteBuf* (producer) | If the useByteBuf is true, netty producer will 
turn the message body into ByteBuf before sending it out. | false | boolean
+| *hostnameVerification* ( security) | To enable/disable hostname verification 
on SSLEngine | false | boolean
 | *allowSerializedHeaders* (advanced) | 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. | false | boolean
 | *channelGroup* (advanced) | To use a explicit ChannelGroup. |  | ChannelGroup
 | *nativeTransport* (advanced) | 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 | false | boolean

Reply via email to