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

davsclaus pushed a commit to branch camel-spring-boot-3.x
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


The following commit(s) were added to refs/heads/camel-spring-boot-3.x by this 
push:
     new a3ff8d12a47 [create-pull-request] automated change (#815)
a3ff8d12a47 is described below

commit a3ff8d12a472daf645d4894bac7bdfdc861a22a4
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sun Apr 16 08:40:02 2023 +0200

    [create-pull-request] automated change (#815)
    
    Co-authored-by: orpiske <[email protected]>
---
 .../camel/springboot/catalog/components/netty-http.json   |  2 ++
 .../apache/camel/springboot/catalog/components/netty.json |  2 ++
 .../src/main/docs/netty-http.json                         |  6 ++++++
 .../http/springboot/NettyHttpComponentConfiguration.java  | 15 +++++++++++++++
 .../camel-netty-starter/src/main/docs/netty.json          |  6 ++++++
 .../netty/springboot/NettyComponentConfiguration.java     | 15 +++++++++++++++
 6 files changed, 46 insertions(+)

diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/netty-http.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/netty-http.json
index 017656a96d5..ff49db4f5c8 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/netty-http.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/netty-http.json
@@ -77,6 +77,7 @@
     "sendBufferSize": { "kind": "property", "displayName": "Send Buffer Size", 
"group": "advanced", "label": "advanced", "required": false, "type": "integer", 
"javaType": "int", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": 65536, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "The TCP\/UDP buffer sizes to be used during 
outbound communication. Size is bytes." },
     "transferExchange": { "kind": "property", "displayName": "Transfer 
Exchange", "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. You can transfer the 
exchange over the wire instead of just the body. The f [...]
     "udpByteArrayCodec": { "kind": "property", "displayName": "Udp Byte Array 
Codec", "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": "For UDP only. If enabled the using byte array 
codec instead of Java serialization protocol." },
+    "unixDomainSocketPath": { "kind": "property", "displayName": "Unix Domain 
Socket Path", "group": "advanced", "label": "advanced", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "Path to unix domain socket to use instead of 
inet socket. Host and port parameters will not be used [...]
     "workerCount": { "kind": "property", "displayName": "Worker Count", 
"group": "advanced", "label": "advanced", "required": false, "type": "integer", 
"javaType": "int", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": "org.apache.camel.component.netty.NettyConfiguration", 
"configurationField": "configuration", "description": "When netty works on nio 
mode, it uses default workerCount parameter from Netty (which is 
cpu_core_threads x 2). User can use this o [...]
     "workerGroup": { "kind": "property", "displayName": "Worker Group", 
"group": "advanced", "label": "advanced", "required": false, "type": "object", 
"javaType": "io.netty.channel.EventLoopGroup", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "To use a explicit EventLoopGroup as the boss 
thread pool. For example to share a thread pool with multip [...]
     "allowDefaultCodec": { "kind": "property", "displayName": "Allow Default 
Codec", "group": "codec", "label": "codec", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "The netty component installs a default codec 
if both, encoder\/decoder is null and textline is fal [...]
@@ -198,6 +199,7 @@
     "synchronous": { "kind": "parameter", "displayName": "Synchronous", 
"group": "advanced", "label": "advanced", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.netty.http.NettyHttpConfiguration", 
"configurationField": "configuration", "description": "Sets whether synchronous 
processing should be strictly used" },
     "transferException": { "kind": "parameter", "displayName": "Transfer 
Exception", "group": "advanced", "label": "advanced", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.netty.http.NettyHttpConfiguration", 
"configurationField": "configuration", "description": "If enabled and an 
Exchange failed processing on the consumer side, and if the caus [...]
     "transferExchange": { "kind": "parameter", "displayName": "Transfer 
Exchange", "group": "advanced", "label": "advanced", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.netty.http.NettyHttpConfiguration", 
"configurationField": "configuration", "description": "Only used for TCP. You 
can transfer the exchange over the wire instead of just the b [...]
+    "unixDomainSocketPath": { "kind": "parameter", "displayName": "Unix Domain 
Socket Path", "group": "advanced", "label": "advanced", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.netty.http.NettyHttpConfiguration", 
"configurationField": "configuration", "description": "Path to unix domain 
socket to use instead of inet socket. Host and port parameters will n [...]
     "workerCount": { "kind": "parameter", "displayName": "Worker Count", 
"group": "advanced", "label": "advanced", "required": false, "type": "integer", 
"javaType": "int", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": 
"org.apache.camel.component.netty.http.NettyHttpConfiguration", 
"configurationField": "configuration", "description": "When netty works on nio 
mode, it uses default workerCount parameter from Netty (which is 
cpu_core_threads x 2). User can  [...]
     "workerGroup": { "kind": "parameter", "displayName": "Worker Group", 
"group": "advanced", "label": "advanced", "required": false, "type": "object", 
"javaType": "io.netty.channel.EventLoopGroup", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.netty.http.NettyHttpConfiguration", 
"configurationField": "configuration", "description": "To use a explicit 
EventLoopGroup as the boss thread pool. For example to share a thread pool w 
[...]
     "decoders": { "kind": "parameter", "displayName": "Decoders", "group": 
"codec", "label": "codec", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": 
"org.apache.camel.component.netty.http.NettyHttpConfiguration", 
"configurationField": "configuration", "description": "A list of decoders to be 
used. You can use a String which have values separated by comma, and have the 
values be looked up [...]
diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/netty.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/netty.json
index 063e211a943..fe846cf6c77 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/netty.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/netty.json
@@ -73,6 +73,7 @@
     "sendBufferSize": { "kind": "property", "displayName": "Send Buffer Size", 
"group": "advanced", "label": "advanced", "required": false, "type": "integer", 
"javaType": "int", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": 65536, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "The TCP\/UDP buffer sizes to be used during 
outbound communication. Size is bytes." },
     "transferExchange": { "kind": "property", "displayName": "Transfer 
Exchange", "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. You can transfer the 
exchange over the wire instead of just the body. The f [...]
     "udpByteArrayCodec": { "kind": "property", "displayName": "Udp Byte Array 
Codec", "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": "For UDP only. If enabled the using byte array 
codec instead of Java serialization protocol." },
+    "unixDomainSocketPath": { "kind": "property", "displayName": "Unix Domain 
Socket Path", "group": "advanced", "label": "advanced", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "Path to unix domain socket to use instead of 
inet socket. Host and port parameters will not be used [...]
     "workerCount": { "kind": "property", "displayName": "Worker Count", 
"group": "advanced", "label": "advanced", "required": false, "type": "integer", 
"javaType": "int", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": "org.apache.camel.component.netty.NettyConfiguration", 
"configurationField": "configuration", "description": "When netty works on nio 
mode, it uses default workerCount parameter from Netty (which is 
cpu_core_threads x 2). User can use this o [...]
     "workerGroup": { "kind": "property", "displayName": "Worker Group", 
"group": "advanced", "label": "advanced", "required": false, "type": "object", 
"javaType": "io.netty.channel.EventLoopGroup", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "To use a explicit EventLoopGroup as the boss 
thread pool. For example to share a thread pool with multip [...]
     "allowDefaultCodec": { "kind": "property", "displayName": "Allow Default 
Codec", "group": "codec", "label": "codec", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "The netty component installs a default codec 
if both, encoder\/decoder is null and textline is fal [...]
@@ -165,6 +166,7 @@
     "synchronous": { "kind": "parameter", "displayName": "Synchronous", 
"group": "advanced", "label": "advanced", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": false, "description": "Sets whether synchronous 
processing should be strictly used" },
     "transferExchange": { "kind": "parameter", "displayName": "Transfer 
Exchange", "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. You can transfer the 
exchange over the wire instead of just the body. The  [...]
     "udpByteArrayCodec": { "kind": "parameter", "displayName": "Udp Byte Array 
Codec", "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": "For UDP only. If enabled the using byte array 
codec instead of Java serialization protocol." },
+    "unixDomainSocketPath": { "kind": "parameter", "displayName": "Unix Domain 
Socket Path", "group": "advanced", "label": "advanced", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "Path to unix domain socket to use instead of 
inet socket. Host and port parameters will not be use [...]
     "workerCount": { "kind": "parameter", "displayName": "Worker Count", 
"group": "advanced", "label": "advanced", "required": false, "type": "integer", 
"javaType": "int", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": "org.apache.camel.component.netty.NettyConfiguration", 
"configurationField": "configuration", "description": "When netty works on nio 
mode, it uses default workerCount parameter from Netty (which is 
cpu_core_threads x 2). User can use this  [...]
     "workerGroup": { "kind": "parameter", "displayName": "Worker Group", 
"group": "advanced", "label": "advanced", "required": false, "type": "object", 
"javaType": "io.netty.channel.EventLoopGroup", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "To use a explicit EventLoopGroup as the boss 
thread pool. For example to share a thread pool with multi [...]
     "allowDefaultCodec": { "kind": "parameter", "displayName": "Allow Default 
Codec", "group": "codec", "label": "codec", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "configurationClass": 
"org.apache.camel.component.netty.NettyConfiguration", "configurationField": 
"configuration", "description": "The netty component installs a default codec 
if both, encoder\/decoder is null and textline is fa [...]
diff --git 
a/components-starter/camel-netty-http-starter/src/main/docs/netty-http.json 
b/components-starter/camel-netty-http-starter/src/main/docs/netty-http.json
index 689c6e18a17..91166b39d32 100644
--- a/components-starter/camel-netty-http-starter/src/main/docs/netty-http.json
+++ b/components-starter/camel-netty-http-starter/src/main/docs/netty-http.json
@@ -420,6 +420,12 @@
       "description": "Server side certificate keystore to be used for 
encryption. Is loaded by default from classpath, but you can prefix with 
classpath:, file:, or http: to load the resource from different systems.",
       "sourceType": 
"org.apache.camel.component.netty.http.springboot.NettyHttpComponentConfiguration"
     },
+    {
+      "name": "camel.component.netty-http.unix-domain-socket-path",
+      "type": "java.lang.String",
+      "description": "Path to unix domain socket to use instead of inet 
socket. Host and port parameters will not be used, however required. It is ok 
to set dummy values for them. Must be used with nativeTransport=true and 
clientMode=false.",
+      "sourceType": 
"org.apache.camel.component.netty.http.springboot.NettyHttpComponentConfiguration"
+    },
     {
       "name": "camel.component.netty-http.use-global-ssl-context-parameters",
       "type": "java.lang.Boolean",
diff --git 
a/components-starter/camel-netty-http-starter/src/main/java/org/apache/camel/component/netty/http/springboot/NettyHttpComponentConfiguration.java
 
b/components-starter/camel-netty-http-starter/src/main/java/org/apache/camel/component/netty/http/springboot/NettyHttpComponentConfiguration.java
index 6e7eac27d24..7052434a823 100644
--- 
a/components-starter/camel-netty-http-starter/src/main/java/org/apache/camel/component/netty/http/springboot/NettyHttpComponentConfiguration.java
+++ 
b/components-starter/camel-netty-http-starter/src/main/java/org/apache/camel/component/netty/http/springboot/NettyHttpComponentConfiguration.java
@@ -350,6 +350,13 @@ public class NettyHttpComponentConfiguration
      * Camel will exclude any non-serializable objects and log it at WARN 
level.
      */
     private Boolean transferExchange = false;
+    /**
+     * Path to unix domain socket to use instead of inet socket. Host and port
+     * parameters will not be used, however required. It is ok to set dummy
+     * values for them. Must be used with nativeTransport=true and
+     * clientMode=false.
+     */
+    private String unixDomainSocketPath;
     /**
      * When netty works on nio mode, it uses default workerCount parameter from
      * Netty (which is cpu_core_threads x 2). User can use this option to
@@ -829,6 +836,14 @@ public class NettyHttpComponentConfiguration
         this.transferExchange = transferExchange;
     }
 
+    public String getUnixDomainSocketPath() {
+        return unixDomainSocketPath;
+    }
+
+    public void setUnixDomainSocketPath(String unixDomainSocketPath) {
+        this.unixDomainSocketPath = unixDomainSocketPath;
+    }
+
     public Integer getWorkerCount() {
         return workerCount;
     }
diff --git a/components-starter/camel-netty-starter/src/main/docs/netty.json 
b/components-starter/camel-netty-starter/src/main/docs/netty.json
index 4690b0f4d17..1c43d9cca0c 100644
--- a/components-starter/camel-netty-starter/src/main/docs/netty.json
+++ b/components-starter/camel-netty-starter/src/main/docs/netty.json
@@ -483,6 +483,12 @@
       "sourceType": 
"org.apache.camel.component.netty.springboot.NettyComponentConfiguration",
       "defaultValue": false
     },
+    {
+      "name": "camel.component.netty.unix-domain-socket-path",
+      "type": "java.lang.String",
+      "description": "Path to unix domain socket to use instead of inet 
socket. Host and port parameters will not be used, however required. It is ok 
to set dummy values for them. Must be used with nativeTransport=true and 
clientMode=false.",
+      "sourceType": 
"org.apache.camel.component.netty.springboot.NettyComponentConfiguration"
+    },
     {
       "name": "camel.component.netty.use-byte-buf",
       "type": "java.lang.Boolean",
diff --git 
a/components-starter/camel-netty-starter/src/main/java/org/apache/camel/component/netty/springboot/NettyComponentConfiguration.java
 
b/components-starter/camel-netty-starter/src/main/java/org/apache/camel/component/netty/springboot/NettyComponentConfiguration.java
index 4c3fa117bad..74346b6c67c 100644
--- 
a/components-starter/camel-netty-starter/src/main/java/org/apache/camel/component/netty/springboot/NettyComponentConfiguration.java
+++ 
b/components-starter/camel-netty-starter/src/main/java/org/apache/camel/component/netty/springboot/NettyComponentConfiguration.java
@@ -372,6 +372,13 @@ public class NettyComponentConfiguration
      * serialization protocol.
      */
     private Boolean udpByteArrayCodec = false;
+    /**
+     * Path to unix domain socket to use instead of inet socket. Host and port
+     * parameters will not be used, however required. It is ok to set dummy
+     * values for them. Must be used with nativeTransport=true and
+     * clientMode=false.
+     */
+    private String unixDomainSocketPath;
     /**
      * When netty works on nio mode, it uses default workerCount parameter from
      * Netty (which is cpu_core_threads x 2). User can use this option to
@@ -915,6 +922,14 @@ public class NettyComponentConfiguration
         this.udpByteArrayCodec = udpByteArrayCodec;
     }
 
+    public String getUnixDomainSocketPath() {
+        return unixDomainSocketPath;
+    }
+
+    public void setUnixDomainSocketPath(String unixDomainSocketPath) {
+        this.unixDomainSocketPath = unixDomainSocketPath;
+    }
+
     public Integer getWorkerCount() {
         return workerCount;
     }

Reply via email to