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

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

commit feaabd4382f49453c9778998c448a54e646bd396
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Mon Mar 22 06:47:49 2021 +0100

    Regen
---
 .../springboot/catalog/components/spring-rabbitmq.json     |  1 +
 .../src/main/docs/spring-rabbitmq-starter.adoc             |  3 ++-
 .../springboot/SpringRabbitMQComponentConfiguration.java   | 14 ++++++++++++++
 docs/modules/ROOT/pages/spring-rabbitmq-starter.adoc       |  3 ++-
 4 files changed, 19 insertions(+), 2 deletions(-)

diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/spring-rabbitmq.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/spring-rabbitmq.json
index 9d91193..a202471 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/spring-rabbitmq.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/spring-rabbitmq.json
@@ -43,6 +43,7 @@
     "prefetchCount": { "kind": "property", "displayName": "Prefetch Count", 
"group": "consumer (advanced)", "label": "consumer,advanced", "required": 
false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": 250, "description": "Tell the broker 
how many messages to send to each consumer in a single request. Often this can 
be set quite high to improve throughput." },
     "retry": { "kind": "property", "displayName": "Retry", "group": "consumer 
(advanced)", "label": "consumer,advanced", "required": false, "type": "object", 
"javaType": "org.springframework.retry.interceptor.RetryOperationsInterceptor", 
"deprecated": false, "autowired": false, "secret": false, "description": 
"Custom retry configuration to use. If this is configured then the other 
settings such as maximumRetryAttempts for retry are not in use." },
     "shutdownTimeout": { "kind": "property", "displayName": "Shutdown 
Timeout", "group": "consumer (advanced)", "label": "consumer,advanced", 
"required": false, "type": "duration", "javaType": "long", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": "5000", "description": 
"The time to wait for workers in milliseconds after the container is stopped. 
If any workers are active when the shutdown signal comes they will be allowed 
to finish processing as long as they c [...]
+    "allowNullBody": { "kind": "property", "displayName": "Allow Null Body", 
"group": "producer", "label": "producer", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": false, "description": "Whether to allow sending messages 
with no body. If this option is false and the message body is null, then an 
MessageConversionException is thrown." },
     "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start 
Producer", "group": "producer", "label": "producer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Whether the producer 
should be started lazy (on the first message). By starting lazy you can use 
this to allow CamelContext and routes to startup in situations where a producer 
may otherwise fail during star [...]
     "replyTimeout": { "kind": "property", "displayName": "Reply Timeout", 
"group": "producer", "label": "producer", "required": false, "type": 
"duration", "javaType": "long", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": "5000", "description": "Specify the timeout in 
milliseconds to be used when waiting for a reply message when doing 
request\/reply messaging. The default value is 5 seconds. A negative value 
indicates an indefinite timeout." },
     "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 [...]
diff --git 
a/components-starter/camel-spring-rabbitmq-starter/src/main/docs/spring-rabbitmq-starter.adoc
 
b/components-starter/camel-spring-rabbitmq-starter/src/main/docs/spring-rabbitmq-starter.adoc
index 223e1ae..0354c4e 100644
--- 
a/components-starter/camel-spring-rabbitmq-starter/src/main/docs/spring-rabbitmq-starter.adoc
+++ 
b/components-starter/camel-spring-rabbitmq-starter/src/main/docs/spring-rabbitmq-starter.adoc
@@ -17,13 +17,14 @@ When using spring-rabbitmq with Spring Boot make sure to 
use the following Maven
 ----
 
 
-The component supports 29 options, which are listed below.
+The component supports 30 options, which are listed below.
 
 
 
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
+| *camel.component.spring-rabbitmq.allow-null-body* | Whether to allow sending 
messages with no body. If this option is false and the message body is null, 
then an MessageConversionException is thrown. | false | Boolean
 | *camel.component.spring-rabbitmq.amqp-admin* | Optional AMQP Admin service 
to use for auto declaring elements (queues, exchanges, bindings). The option is 
a org.springframework.amqp.core.AmqpAdmin type. |  | AmqpAdmin
 | *camel.component.spring-rabbitmq.auto-declare* | Specifies whether the 
consumer should auto declare binding between exchange, queue and routing key 
when starting. Enabling this can be good for development to make it easy to 
standup exchanges, queues and bindings on the broker. | false | Boolean
 | *camel.component.spring-rabbitmq.auto-startup* | Specifies whether the 
consumer container should auto-startup. | true | Boolean
diff --git 
a/components-starter/camel-spring-rabbitmq-starter/src/main/java/org/apache/camel/component/springrabbit/springboot/SpringRabbitMQComponentConfiguration.java
 
b/components-starter/camel-spring-rabbitmq-starter/src/main/java/org/apache/camel/component/springrabbit/springboot/SpringRabbitMQComponentConfiguration.java
index 39bdc27..f915df2 100644
--- 
a/components-starter/camel-spring-rabbitmq-starter/src/main/java/org/apache/camel/component/springrabbit/springboot/SpringRabbitMQComponentConfiguration.java
+++ 
b/components-starter/camel-spring-rabbitmq-starter/src/main/java/org/apache/camel/component/springrabbit/springboot/SpringRabbitMQComponentConfiguration.java
@@ -160,6 +160,12 @@ public class SpringRabbitMQComponentConfiguration
      */
     private Long shutdownTimeout = 5000L;
     /**
+     * Whether to allow sending messages with no body. If this option is false
+     * and the message body is null, then an MessageConversionException is
+     * thrown.
+     */
+    private Boolean allowNullBody = false;
+    /**
      * Whether the producer should be started lazy (on the first message). By
      * starting lazy you can use this to allow CamelContext and routes to
      * startup in situations where a producer may otherwise fail during 
starting
@@ -380,6 +386,14 @@ public class SpringRabbitMQComponentConfiguration
         this.shutdownTimeout = shutdownTimeout;
     }
 
+    public Boolean getAllowNullBody() {
+        return allowNullBody;
+    }
+
+    public void setAllowNullBody(Boolean allowNullBody) {
+        this.allowNullBody = allowNullBody;
+    }
+
     public Boolean getLazyStartProducer() {
         return lazyStartProducer;
     }
diff --git a/docs/modules/ROOT/pages/spring-rabbitmq-starter.adoc 
b/docs/modules/ROOT/pages/spring-rabbitmq-starter.adoc
index 223e1ae..0354c4e 100644
--- a/docs/modules/ROOT/pages/spring-rabbitmq-starter.adoc
+++ b/docs/modules/ROOT/pages/spring-rabbitmq-starter.adoc
@@ -17,13 +17,14 @@ When using spring-rabbitmq with Spring Boot make sure to 
use the following Maven
 ----
 
 
-The component supports 29 options, which are listed below.
+The component supports 30 options, which are listed below.
 
 
 
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
+| *camel.component.spring-rabbitmq.allow-null-body* | Whether to allow sending 
messages with no body. If this option is false and the message body is null, 
then an MessageConversionException is thrown. | false | Boolean
 | *camel.component.spring-rabbitmq.amqp-admin* | Optional AMQP Admin service 
to use for auto declaring elements (queues, exchanges, bindings). The option is 
a org.springframework.amqp.core.AmqpAdmin type. |  | AmqpAdmin
 | *camel.component.spring-rabbitmq.auto-declare* | Specifies whether the 
consumer should auto declare binding between exchange, queue and routing key 
when starting. Enabling this can be good for development to make it easy to 
standup exchanges, queues and bindings on the broker. | false | Boolean
 | *camel.component.spring-rabbitmq.auto-startup* | Specifies whether the 
consumer container should auto-startup. | true | Boolean

Reply via email to