This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 2dc3c6d16afe8bc11ec764caf0aded496582337b Author: Claus Ibsen <[email protected]> AuthorDate: Fri Nov 27 18:25:52 2026 +0100 CAMEL-23832: camel-hivemq - improve the component and option descriptions This commit rewrites the component description, the texts of 10 options (8 shared by the component and the endpoint, the topic path and the component configuration) and of the 4 headers. The CamelHiveMQTopic header was described as the topic to publish to, but only the consumer sets it and the producer reads CamelHiveMQOverrideTopic. The texts no longer call any MQTT broker a HiveMQ broker, and they say which side reads qos and retained and how port relates to ssl. Documentation only, no behavior change. The component JSON, the catalog copy, the doc page header and the DSL are regenerated. camel-hivemq is marked as done in tasks/component-descriptions.md. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- .../apache/camel/catalog/components/hivemq.json | 46 ++--- .../camel/catalog/docs/hivemq-component.adoc | 2 +- .../org/apache/camel/component/hivemq/hivemq.json | 46 ++--- .../src/main/docs/hivemq-component.adoc | 2 +- .../camel/component/hivemq/HiveMQComponent.java | 9 +- .../component/hivemq/HiveMQConfiguration.java | 57 +++--- .../camel/component/hivemq/HiveMQConstants.java | 19 +- .../camel/component/hivemq/HiveMQEndpoint.java | 10 +- .../component/ComponentsBuilderFactory.java | 3 +- .../dsl/HivemqComponentBuilderFactory.java | 42 +++-- .../builder/endpoint/EndpointHeaderBuilders.java | 3 +- .../builder/endpoint/StaticEndpointBuilders.java | 16 +- .../endpoint/dsl/HiveMQEndpointBuilderFactory.java | 191 ++++++++++++++++----- tasks/component-descriptions.md | 2 +- 14 files changed, 289 insertions(+), 159 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/hivemq.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/hivemq.json index d62ef764c02c..09cb9c724306 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/hivemq.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/hivemq.json @@ -3,7 +3,7 @@ "kind": "component", "name": "hivemq", "title": "HiveMQ", - "description": "Camel HiveMQ MQTT Client support", + "description": "Send messages to and receive messages from an MQTT broker with the HiveMQ MQTT Client.", "deprecated": false, "firstVersion": "4.23.0", "label": "messaging,iot", @@ -25,25 +25,25 @@ }, "componentProperties": { "cleanStart": { "index": 0, "kind": "property", "displayName": "Clean Start", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Whether to initiate a clean session upon connecting to the broker (called clean session in MQTT 3.1.1 a [...] - "clientId": { "index": 1, "kind": "property", "displayName": "Client Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Client identifier used when connecting to the HiveMQ broker." }, - "configuration": { "index": 2, "kind": "property", "displayName": "Configuration", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.hivemq.HiveMQConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "Component configuration." }, - "host": { "index": 3, "kind": "property", "displayName": "Host", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "localhost", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Hostname or IP address of the HiveMQ MQTT broker." }, + "clientId": { "index": 1, "kind": "property", "displayName": "Client Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The MQTT client identifier. If not set, the broker assigns one to each connection, but with MQTT 3.1.1 the broker then re [...] + "configuration": { "index": 2, "kind": "property", "displayName": "Configuration", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.hivemq.HiveMQConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "To use a shared HiveMQConfiguration with the default values of the options. Each endpoint uses a copy of it, in which the options of the endpoint replace its values." }, + "host": { "index": 3, "kind": "property", "displayName": "Host", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "localhost", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The host name or IP address of the MQTT broker." }, "mqttVersion": { "index": 4, "kind": "property", "displayName": "Mqtt Version", "group": "common", "label": "", "required": false, "type": "enum", "javaType": "com.hivemq.client.mqtt.MqttVersion", "enum": [ "MQTT_3_1_1", "MQTT_5_0" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "MQTT_5_0", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The MQTT protocol version to use [...] - "port": { "index": 5, "kind": "property", "displayName": "Port", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 1883, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Port number of the HiveMQ MQTT broker." }, - "qos": { "index": 6, "kind": "property", "displayName": "Qos", "group": "common", "label": "", "required": false, "type": "enum", "javaType": "com.hivemq.client.mqtt.datatypes.MqttQos", "enum": [ "AT_MOST_ONCE", "AT_LEAST_ONCE", "EXACTLY_ONCE" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "AT_LEAST_ONCE", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Default Quality [...] - "retained": { "index": 7, "kind": "property", "displayName": "Retained", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Whether published messages should be retained by the MQTT broker." }, + "port": { "index": 5, "kind": "property", "displayName": "Port", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 1883, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The TCP port of the MQTT broker. The port does not change when ssl is true: set it to the TLS port of the broker, usuall [...] + "qos": { "index": 6, "kind": "property", "displayName": "Qos", "group": "common", "label": "", "required": false, "type": "enum", "javaType": "com.hivemq.client.mqtt.datatypes.MqttQos", "enum": [ "AT_MOST_ONCE", "AT_LEAST_ONCE", "EXACTLY_ONCE" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "AT_LEAST_ONCE", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The Quality of S [...] + "retained": { "index": 7, "kind": "property", "displayName": "Retained", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Whether the producer publishes messages with the retain flag, so that the broker keeps the last message of [...] "bridgeErrorHandler": { "index": 8, "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the like [...] "lazyStartProducer": { "index": 9, "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 [...] "autowiredEnabled": { "index": 10, "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 [...] - "password": { "index": 11, "kind": "property", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Password for authentication with the HiveMQ broker." }, - "ssl": { "index": 12, "kind": "property", "displayName": "Ssl", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:ssl", "insecureValue": "false", "defaultValue": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Whether to enable SSL\/TLS encryption for the broker [...] - "username": { "index": 13, "kind": "property", "displayName": "Username", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Username for authentication with the HiveMQ broker." } + "password": { "index": 11, "kind": "property", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The password for MQTT simple authentication with the broker. It is sent only when username [...] + "ssl": { "index": 12, "kind": "property", "displayName": "Ssl", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:ssl", "insecureValue": "false", "defaultValue": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Whether to connect to the broker with TLS. The clien [...] + "username": { "index": 13, "kind": "property", "displayName": "Username", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The user name for MQTT simple authentication with the broker." } }, "headers": { - "CamelHiveMQTopic": { "index": 0, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The topic to publish\/subscribe to.", "constantName": "org.apache.camel.component.hivemq.HiveMQConstants#MQTT_TOPIC" }, - "CamelHiveMQQos": { "index": 1, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "com.hivemq.client.mqtt.datatypes.MqttQos", "enum": [ "AT_MOST_ONCE", "AT_LEAST_ONCE", "EXACTLY_ONCE" ], "deprecated": false, "autowired": false, "secret": false, "description": "The QoS level of the message.", "constantName": "org.apache.camel.component.hivemq.HiveMQConstants#MQTT_QOS" }, - "CamelHiveMQRetained": { "index": 2, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether the message should be retained.", "constantName": "org.apache.camel.component.hivemq.HiveMQConstants#MQTT_RETAINED" }, - "CamelHiveMQOverrideTopic": { "index": 3, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Header to dynamically override the target topic for publishing.", "constantName": "org.apache.camel.component.hivemq.HiveMQConstants#OVERRIDE_TOPIC" } + "CamelHiveMQTopic": { "index": 0, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The topic of the received message, set by the consumer. With a wildcard subscription it is the actual topic name. The producer does not read this header: use CamelHiveMQOverrideTopic to publish to another topic.", "constantName": "org.apache.camel.component.hivemq.HiveM [...] + "CamelHiveMQQos": { "index": 1, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "com.hivemq.client.mqtt.datatypes.MqttQos", "enum": [ "AT_MOST_ONCE", "AT_LEAST_ONCE", "EXACTLY_ONCE" ], "deprecated": false, "autowired": false, "secret": false, "description": "The QoS level of the message. The consumer sets the QoS that the message was delivered with, and the producer publishes with this value instead of the qos option.", "constantNam [...] + "CamelHiveMQRetained": { "index": 2, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether the retain flag of the message is set. The consumer sets it, true for a retained message that the broker sends for a new subscription, and the producer publishes with this value instead of the retained option.", "constantName": "org.apache.camel.component.hi [...] + "CamelHiveMQOverrideTopic": { "index": 3, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The topic that the producer publishes to instead of the topic of the endpoint. toD sets it to the topic of its URI and removes it after the send, but keeps a header that is already set, which then replaces the topic of the toD URI.", "constantName": "org.apache. [...] }, "bodyTypes": { "consumerOut": { "carriers": [ "bytes" ], "javaType": "byte[]", "description": "The payload of the MQTT message, an empty byte array for an empty payload. The topic is in the CamelHiveMQTopic header" }, @@ -51,20 +51,20 @@ "producerOut": { "carriers": [ "unchanged" ] } }, "properties": { - "topic": { "index": 0, "kind": "path", "displayName": "Topic", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The MQTT topic name or pattern to subscribe to or publish on." }, + "topic": { "index": 0, "kind": "path", "displayName": "Topic", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The MQTT topic. The consumer subscribes to it as a topic filter, which can contain the wildcards + and #. The producer publishes to it as a topic name without wildcards, and the CamelHiveMQOverrideTopic header replaces it." }, "cleanStart": { "index": 1, "kind": "parameter", "displayName": "Clean Start", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Whether to initiate a clean session upon connecting to the broker (called clean session in MQTT 3.1.1 [...] - "clientId": { "index": 2, "kind": "parameter", "displayName": "Client Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Client identifier used when connecting to the HiveMQ broker." }, - "host": { "index": 3, "kind": "parameter", "displayName": "Host", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "localhost", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Hostname or IP address of the HiveMQ MQTT broker." }, + "clientId": { "index": 2, "kind": "parameter", "displayName": "Client Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The MQTT client identifier. If not set, the broker assigns one to each connection, but with MQTT 3.1.1 the broker then r [...] + "host": { "index": 3, "kind": "parameter", "displayName": "Host", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "localhost", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The host name or IP address of the MQTT broker." }, "mqttVersion": { "index": 4, "kind": "parameter", "displayName": "Mqtt Version", "group": "common", "label": "", "required": false, "type": "enum", "javaType": "com.hivemq.client.mqtt.MqttVersion", "enum": [ "MQTT_3_1_1", "MQTT_5_0" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "MQTT_5_0", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The MQTT protocol version to use [...] - "port": { "index": 5, "kind": "parameter", "displayName": "Port", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 1883, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Port number of the HiveMQ MQTT broker." }, - "qos": { "index": 6, "kind": "parameter", "displayName": "Qos", "group": "common", "label": "", "required": false, "type": "enum", "javaType": "com.hivemq.client.mqtt.datatypes.MqttQos", "enum": [ "AT_MOST_ONCE", "AT_LEAST_ONCE", "EXACTLY_ONCE" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "AT_LEAST_ONCE", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Default Quality [...] - "retained": { "index": 7, "kind": "parameter", "displayName": "Retained", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Whether published messages should be retained by the MQTT broker." }, + "port": { "index": 5, "kind": "parameter", "displayName": "Port", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 1883, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The TCP port of the MQTT broker. The port does not change when ssl is true: set it to the TLS port of the broker, usual [...] + "qos": { "index": 6, "kind": "parameter", "displayName": "Qos", "group": "common", "label": "", "required": false, "type": "enum", "javaType": "com.hivemq.client.mqtt.datatypes.MqttQos", "enum": [ "AT_MOST_ONCE", "AT_LEAST_ONCE", "EXACTLY_ONCE" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "AT_LEAST_ONCE", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The Quality of [...] + "retained": { "index": 7, "kind": "parameter", "displayName": "Retained", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Whether the producer publishes messages with the retain flag, so that the broker keeps the last message of [...] "bridgeErrorHandler": { "index": 8, "kind": "parameter", "displayName": "Bridge Error Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming [...] "exceptionHandler": { "index": 9, "kind": "parameter", "displayName": "Exception Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", "deprecated": false, "autowired": false, "secret": false, "description": "To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By def [...] "exchangePattern": { "index": 10, "kind": "parameter", "displayName": "Exchange Pattern", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "enum", "javaType": "org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ], "deprecated": false, "autowired": false, "secret": false, "description": "Sets the exchange pattern when the consumer creates an exchange." }, "lazyStartProducer": { "index": 11, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "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 produ [...] - "password": { "index": 12, "kind": "parameter", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Password for authentication with the HiveMQ broker." }, - "ssl": { "index": 13, "kind": "parameter", "displayName": "Ssl", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:ssl", "insecureValue": "false", "defaultValue": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Whether to enable SSL\/TLS encryption for the broke [...] - "username": { "index": 14, "kind": "parameter", "displayName": "Username", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Username for authentication with the HiveMQ broker." } + "password": { "index": 12, "kind": "parameter", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The password for MQTT simple authentication with the broker. It is sent only when usernam [...] + "ssl": { "index": 13, "kind": "parameter", "displayName": "Ssl", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:ssl", "insecureValue": "false", "defaultValue": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Whether to connect to the broker with TLS. The clie [...] + "username": { "index": 14, "kind": "parameter", "displayName": "Username", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The user name for MQTT simple authentication with the broker." } } } diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/hivemq-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/hivemq-component.adoc index 76f5624ad4aa..d821982e522e 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/hivemq-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/hivemq-component.adoc @@ -2,7 +2,7 @@ :doctitle: HiveMQ :shortname: hivemq :artifactid: camel-hivemq -:description: Camel HiveMQ MQTT Client support +:description: Send messages to and receive messages from an MQTT broker with the HiveMQ MQTT Client. :since: 4.23 :supportlevel: Preview :tabs-sync-option: diff --git a/components/camel-hivemq/src/generated/resources/META-INF/org/apache/camel/component/hivemq/hivemq.json b/components/camel-hivemq/src/generated/resources/META-INF/org/apache/camel/component/hivemq/hivemq.json index d62ef764c02c..09cb9c724306 100644 --- a/components/camel-hivemq/src/generated/resources/META-INF/org/apache/camel/component/hivemq/hivemq.json +++ b/components/camel-hivemq/src/generated/resources/META-INF/org/apache/camel/component/hivemq/hivemq.json @@ -3,7 +3,7 @@ "kind": "component", "name": "hivemq", "title": "HiveMQ", - "description": "Camel HiveMQ MQTT Client support", + "description": "Send messages to and receive messages from an MQTT broker with the HiveMQ MQTT Client.", "deprecated": false, "firstVersion": "4.23.0", "label": "messaging,iot", @@ -25,25 +25,25 @@ }, "componentProperties": { "cleanStart": { "index": 0, "kind": "property", "displayName": "Clean Start", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Whether to initiate a clean session upon connecting to the broker (called clean session in MQTT 3.1.1 a [...] - "clientId": { "index": 1, "kind": "property", "displayName": "Client Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Client identifier used when connecting to the HiveMQ broker." }, - "configuration": { "index": 2, "kind": "property", "displayName": "Configuration", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.hivemq.HiveMQConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "Component configuration." }, - "host": { "index": 3, "kind": "property", "displayName": "Host", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "localhost", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Hostname or IP address of the HiveMQ MQTT broker." }, + "clientId": { "index": 1, "kind": "property", "displayName": "Client Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The MQTT client identifier. If not set, the broker assigns one to each connection, but with MQTT 3.1.1 the broker then re [...] + "configuration": { "index": 2, "kind": "property", "displayName": "Configuration", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.hivemq.HiveMQConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "To use a shared HiveMQConfiguration with the default values of the options. Each endpoint uses a copy of it, in which the options of the endpoint replace its values." }, + "host": { "index": 3, "kind": "property", "displayName": "Host", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "localhost", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The host name or IP address of the MQTT broker." }, "mqttVersion": { "index": 4, "kind": "property", "displayName": "Mqtt Version", "group": "common", "label": "", "required": false, "type": "enum", "javaType": "com.hivemq.client.mqtt.MqttVersion", "enum": [ "MQTT_3_1_1", "MQTT_5_0" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "MQTT_5_0", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The MQTT protocol version to use [...] - "port": { "index": 5, "kind": "property", "displayName": "Port", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 1883, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Port number of the HiveMQ MQTT broker." }, - "qos": { "index": 6, "kind": "property", "displayName": "Qos", "group": "common", "label": "", "required": false, "type": "enum", "javaType": "com.hivemq.client.mqtt.datatypes.MqttQos", "enum": [ "AT_MOST_ONCE", "AT_LEAST_ONCE", "EXACTLY_ONCE" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "AT_LEAST_ONCE", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Default Quality [...] - "retained": { "index": 7, "kind": "property", "displayName": "Retained", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Whether published messages should be retained by the MQTT broker." }, + "port": { "index": 5, "kind": "property", "displayName": "Port", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 1883, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The TCP port of the MQTT broker. The port does not change when ssl is true: set it to the TLS port of the broker, usuall [...] + "qos": { "index": 6, "kind": "property", "displayName": "Qos", "group": "common", "label": "", "required": false, "type": "enum", "javaType": "com.hivemq.client.mqtt.datatypes.MqttQos", "enum": [ "AT_MOST_ONCE", "AT_LEAST_ONCE", "EXACTLY_ONCE" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "AT_LEAST_ONCE", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The Quality of S [...] + "retained": { "index": 7, "kind": "property", "displayName": "Retained", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Whether the producer publishes messages with the retain flag, so that the broker keeps the last message of [...] "bridgeErrorHandler": { "index": 8, "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the like [...] "lazyStartProducer": { "index": 9, "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 [...] "autowiredEnabled": { "index": 10, "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 [...] - "password": { "index": 11, "kind": "property", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Password for authentication with the HiveMQ broker." }, - "ssl": { "index": 12, "kind": "property", "displayName": "Ssl", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:ssl", "insecureValue": "false", "defaultValue": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Whether to enable SSL\/TLS encryption for the broker [...] - "username": { "index": 13, "kind": "property", "displayName": "Username", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Username for authentication with the HiveMQ broker." } + "password": { "index": 11, "kind": "property", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The password for MQTT simple authentication with the broker. It is sent only when username [...] + "ssl": { "index": 12, "kind": "property", "displayName": "Ssl", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:ssl", "insecureValue": "false", "defaultValue": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Whether to connect to the broker with TLS. The clien [...] + "username": { "index": 13, "kind": "property", "displayName": "Username", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The user name for MQTT simple authentication with the broker." } }, "headers": { - "CamelHiveMQTopic": { "index": 0, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The topic to publish\/subscribe to.", "constantName": "org.apache.camel.component.hivemq.HiveMQConstants#MQTT_TOPIC" }, - "CamelHiveMQQos": { "index": 1, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "com.hivemq.client.mqtt.datatypes.MqttQos", "enum": [ "AT_MOST_ONCE", "AT_LEAST_ONCE", "EXACTLY_ONCE" ], "deprecated": false, "autowired": false, "secret": false, "description": "The QoS level of the message.", "constantName": "org.apache.camel.component.hivemq.HiveMQConstants#MQTT_QOS" }, - "CamelHiveMQRetained": { "index": 2, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether the message should be retained.", "constantName": "org.apache.camel.component.hivemq.HiveMQConstants#MQTT_RETAINED" }, - "CamelHiveMQOverrideTopic": { "index": 3, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Header to dynamically override the target topic for publishing.", "constantName": "org.apache.camel.component.hivemq.HiveMQConstants#OVERRIDE_TOPIC" } + "CamelHiveMQTopic": { "index": 0, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The topic of the received message, set by the consumer. With a wildcard subscription it is the actual topic name. The producer does not read this header: use CamelHiveMQOverrideTopic to publish to another topic.", "constantName": "org.apache.camel.component.hivemq.HiveM [...] + "CamelHiveMQQos": { "index": 1, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "com.hivemq.client.mqtt.datatypes.MqttQos", "enum": [ "AT_MOST_ONCE", "AT_LEAST_ONCE", "EXACTLY_ONCE" ], "deprecated": false, "autowired": false, "secret": false, "description": "The QoS level of the message. The consumer sets the QoS that the message was delivered with, and the producer publishes with this value instead of the qos option.", "constantNam [...] + "CamelHiveMQRetained": { "index": 2, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether the retain flag of the message is set. The consumer sets it, true for a retained message that the broker sends for a new subscription, and the producer publishes with this value instead of the retained option.", "constantName": "org.apache.camel.component.hi [...] + "CamelHiveMQOverrideTopic": { "index": 3, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The topic that the producer publishes to instead of the topic of the endpoint. toD sets it to the topic of its URI and removes it after the send, but keeps a header that is already set, which then replaces the topic of the toD URI.", "constantName": "org.apache. [...] }, "bodyTypes": { "consumerOut": { "carriers": [ "bytes" ], "javaType": "byte[]", "description": "The payload of the MQTT message, an empty byte array for an empty payload. The topic is in the CamelHiveMQTopic header" }, @@ -51,20 +51,20 @@ "producerOut": { "carriers": [ "unchanged" ] } }, "properties": { - "topic": { "index": 0, "kind": "path", "displayName": "Topic", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The MQTT topic name or pattern to subscribe to or publish on." }, + "topic": { "index": 0, "kind": "path", "displayName": "Topic", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The MQTT topic. The consumer subscribes to it as a topic filter, which can contain the wildcards + and #. The producer publishes to it as a topic name without wildcards, and the CamelHiveMQOverrideTopic header replaces it." }, "cleanStart": { "index": 1, "kind": "parameter", "displayName": "Clean Start", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Whether to initiate a clean session upon connecting to the broker (called clean session in MQTT 3.1.1 [...] - "clientId": { "index": 2, "kind": "parameter", "displayName": "Client Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Client identifier used when connecting to the HiveMQ broker." }, - "host": { "index": 3, "kind": "parameter", "displayName": "Host", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "localhost", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Hostname or IP address of the HiveMQ MQTT broker." }, + "clientId": { "index": 2, "kind": "parameter", "displayName": "Client Id", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The MQTT client identifier. If not set, the broker assigns one to each connection, but with MQTT 3.1.1 the broker then r [...] + "host": { "index": 3, "kind": "parameter", "displayName": "Host", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "localhost", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The host name or IP address of the MQTT broker." }, "mqttVersion": { "index": 4, "kind": "parameter", "displayName": "Mqtt Version", "group": "common", "label": "", "required": false, "type": "enum", "javaType": "com.hivemq.client.mqtt.MqttVersion", "enum": [ "MQTT_3_1_1", "MQTT_5_0" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "MQTT_5_0", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The MQTT protocol version to use [...] - "port": { "index": 5, "kind": "parameter", "displayName": "Port", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 1883, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Port number of the HiveMQ MQTT broker." }, - "qos": { "index": 6, "kind": "parameter", "displayName": "Qos", "group": "common", "label": "", "required": false, "type": "enum", "javaType": "com.hivemq.client.mqtt.datatypes.MqttQos", "enum": [ "AT_MOST_ONCE", "AT_LEAST_ONCE", "EXACTLY_ONCE" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "AT_LEAST_ONCE", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Default Quality [...] - "retained": { "index": 7, "kind": "parameter", "displayName": "Retained", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Whether published messages should be retained by the MQTT broker." }, + "port": { "index": 5, "kind": "parameter", "displayName": "Port", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 1883, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The TCP port of the MQTT broker. The port does not change when ssl is true: set it to the TLS port of the broker, usual [...] + "qos": { "index": 6, "kind": "parameter", "displayName": "Qos", "group": "common", "label": "", "required": false, "type": "enum", "javaType": "com.hivemq.client.mqtt.datatypes.MqttQos", "enum": [ "AT_MOST_ONCE", "AT_LEAST_ONCE", "EXACTLY_ONCE" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "AT_LEAST_ONCE", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The Quality of [...] + "retained": { "index": 7, "kind": "parameter", "displayName": "Retained", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Whether the producer publishes messages with the retain flag, so that the broker keeps the last message of [...] "bridgeErrorHandler": { "index": 8, "kind": "parameter", "displayName": "Bridge Error Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming [...] "exceptionHandler": { "index": 9, "kind": "parameter", "displayName": "Exception Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", "deprecated": false, "autowired": false, "secret": false, "description": "To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By def [...] "exchangePattern": { "index": 10, "kind": "parameter", "displayName": "Exchange Pattern", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "enum", "javaType": "org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ], "deprecated": false, "autowired": false, "secret": false, "description": "Sets the exchange pattern when the consumer creates an exchange." }, "lazyStartProducer": { "index": 11, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "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 produ [...] - "password": { "index": 12, "kind": "parameter", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Password for authentication with the HiveMQ broker." }, - "ssl": { "index": 13, "kind": "parameter", "displayName": "Ssl", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:ssl", "insecureValue": "false", "defaultValue": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Whether to enable SSL\/TLS encryption for the broke [...] - "username": { "index": 14, "kind": "parameter", "displayName": "Username", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Username for authentication with the HiveMQ broker." } + "password": { "index": 12, "kind": "parameter", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The password for MQTT simple authentication with the broker. It is sent only when usernam [...] + "ssl": { "index": 13, "kind": "parameter", "displayName": "Ssl", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:ssl", "insecureValue": "false", "defaultValue": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "Whether to connect to the broker with TLS. The clie [...] + "username": { "index": 14, "kind": "parameter", "displayName": "Username", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.hivemq.HiveMQConfiguration", "configurationField": "configuration", "description": "The user name for MQTT simple authentication with the broker." } } } diff --git a/components/camel-hivemq/src/main/docs/hivemq-component.adoc b/components/camel-hivemq/src/main/docs/hivemq-component.adoc index 76f5624ad4aa..d821982e522e 100644 --- a/components/camel-hivemq/src/main/docs/hivemq-component.adoc +++ b/components/camel-hivemq/src/main/docs/hivemq-component.adoc @@ -2,7 +2,7 @@ :doctitle: HiveMQ :shortname: hivemq :artifactid: camel-hivemq -:description: Camel HiveMQ MQTT Client support +:description: Send messages to and receive messages from an MQTT broker with the HiveMQ MQTT Client. :since: 4.23 :supportlevel: Preview :tabs-sync-option: diff --git a/components/camel-hivemq/src/main/java/org/apache/camel/component/hivemq/HiveMQComponent.java b/components/camel-hivemq/src/main/java/org/apache/camel/component/hivemq/HiveMQComponent.java index e61be6b83109..28bec199ead4 100644 --- a/components/camel-hivemq/src/main/java/org/apache/camel/component/hivemq/HiveMQComponent.java +++ b/components/camel-hivemq/src/main/java/org/apache/camel/component/hivemq/HiveMQComponent.java @@ -26,10 +26,8 @@ import org.apache.camel.support.DefaultComponent; @Component("hivemq") public class HiveMQComponent extends DefaultComponent { - /** - * Component configuration. - */ - @Metadata + @Metadata(description = "To use a shared HiveMQConfiguration with the default values of the options. Each endpoint" + + " uses a copy of it, in which the options of the endpoint replace its values.") private HiveMQConfiguration configuration = new HiveMQConfiguration(); public HiveMQComponent() { @@ -47,9 +45,6 @@ public class HiveMQComponent extends DefaultComponent { return configuration; } - /** - * To use a shared HiveMQConfiguration. - */ public void setConfiguration(HiveMQConfiguration configuration) { this.configuration = configuration; } diff --git a/components/camel-hivemq/src/main/java/org/apache/camel/component/hivemq/HiveMQConfiguration.java b/components/camel-hivemq/src/main/java/org/apache/camel/component/hivemq/HiveMQConfiguration.java index dd25225ed6f7..1ae9a0e01faf 100644 --- a/components/camel-hivemq/src/main/java/org/apache/camel/component/hivemq/HiveMQConfiguration.java +++ b/components/camel-hivemq/src/main/java/org/apache/camel/component/hivemq/HiveMQConfiguration.java @@ -26,10 +26,8 @@ import org.apache.camel.spi.UriParams; @UriParams public class HiveMQConfiguration implements Cloneable { - /** - * Hostname or IP address of the HiveMQ MQTT broker. - */ - @UriParam(defaultValue = HiveMQConstants.DEFAULT_HOST) + @UriParam(defaultValue = HiveMQConstants.DEFAULT_HOST, + description = "The host name or IP address of the MQTT broker.") private String host = HiveMQConstants.DEFAULT_HOST; /** @@ -38,28 +36,27 @@ public class HiveMQConfiguration implements Cloneable { @UriParam(defaultValue = "MQTT_5_0") private MqttVersion mqttVersion = MqttVersion.MQTT_5_0; - /** - * Port number of the HiveMQ MQTT broker. - */ - @UriParam(defaultValue = "1883") + @UriParam(defaultValue = "1883", + description = "The TCP port of the MQTT broker. The port does not change when ssl is true: set it to the TLS" + + " port of the broker, usually 8883.") private int port = HiveMQConstants.DEFAULT_PORT; - /** - * Client identifier used when connecting to the HiveMQ broker. - */ - @UriParam + @UriParam(description = "The MQTT client identifier. If not set, the broker assigns one to each connection, but with" + + " MQTT 3.1.1 the broker then rejects a connection with cleanStart false. Each consumer and each" + + " producer opens its own connection, and the broker disconnects a client when another one" + + " connects with the same identifier, so a set identifier must be unique per endpoint.") private String clientId; - /** - * Default Quality of Service (QoS) level to use for messages. - */ - @UriParam(defaultValue = "AT_LEAST_ONCE") + @UriParam(defaultValue = "AT_LEAST_ONCE", + description = "The Quality of Service (QoS) level that the producer publishes with, and the maximum QoS of the" + + " subscription of the consumer. The CamelHiveMQQos header replaces it for the producer. The" + + " consumer acknowledges a QoS 1 or 2 message when it receives it, before the route processes it.") private MqttQos qos = MqttQos.AT_LEAST_ONCE; - /** - * Whether published messages should be retained by the MQTT broker. - */ - @UriParam(defaultValue = "false") + @UriParam(defaultValue = "false", + description = "Whether the producer publishes messages with the retain flag, so that the broker keeps the last" + + " message of the topic and sends it to new subscribers. The CamelHiveMQRetained header replaces" + + " it.") private boolean retained; /** @@ -71,24 +68,20 @@ public class HiveMQConfiguration implements Cloneable { @UriParam(defaultValue = "true") private boolean cleanStart = true; - /** - * Username for authentication with the HiveMQ broker. - */ - @UriParam(label = "security") + @UriParam(label = "security", description = "The user name for MQTT simple authentication with the broker.") @Metadata(label = "security") private String username; - /** - * Password for authentication with the HiveMQ broker. - */ - @UriParam(label = "security", secret = true) + @UriParam(label = "security", secret = true, + description = "The password for MQTT simple authentication with the broker. It is sent only when username is" + + " set.") @Metadata(label = "security", secret = true) private String password; - /** - * Whether to enable SSL/TLS encryption for the broker connection. - */ - @UriParam(defaultValue = "false", label = "security", security = "insecure:ssl", insecureValue = "false") + @UriParam(defaultValue = "false", label = "security", security = "insecure:ssl", insecureValue = "false", + description = "Whether to connect to the broker with TLS. The client uses the default trust store of the JVM" + + " and no client certificate. The port option does not change: set it to the TLS port of the" + + " broker, usually 8883.") private boolean ssl; public String getHost() { diff --git a/components/camel-hivemq/src/main/java/org/apache/camel/component/hivemq/HiveMQConstants.java b/components/camel-hivemq/src/main/java/org/apache/camel/component/hivemq/HiveMQConstants.java index f950fbd3957e..6d16f87eb384 100644 --- a/components/camel-hivemq/src/main/java/org/apache/camel/component/hivemq/HiveMQConstants.java +++ b/components/camel-hivemq/src/main/java/org/apache/camel/component/hivemq/HiveMQConstants.java @@ -20,16 +20,27 @@ import org.apache.camel.spi.Metadata; public final class HiveMQConstants { - @Metadata(description = "The topic to publish/subscribe to.", javaType = "String") + @Metadata(description = "The topic of the received message, set by the consumer. With a wildcard subscription it is" + + " the actual topic name. The producer does not read this header: use CamelHiveMQOverrideTopic" + + " to publish to another topic.", + javaType = "String") public static final String MQTT_TOPIC = "CamelHiveMQTopic"; - @Metadata(description = "The QoS level of the message.", javaType = "com.hivemq.client.mqtt.datatypes.MqttQos") + @Metadata(description = "The QoS level of the message. The consumer sets the QoS that the message was delivered with," + + " and the producer publishes with this value instead of the qos option.", + javaType = "com.hivemq.client.mqtt.datatypes.MqttQos") public static final String MQTT_QOS = "CamelHiveMQQos"; - @Metadata(description = "Whether the message should be retained.", javaType = "Boolean") + @Metadata(description = "Whether the retain flag of the message is set. The consumer sets it, true for a retained" + + " message that the broker sends for a new subscription, and the producer publishes with this" + + " value instead of the retained option.", + javaType = "Boolean") public static final String MQTT_RETAINED = "CamelHiveMQRetained"; - @Metadata(description = "Header to dynamically override the target topic for publishing.", javaType = "String") + @Metadata(description = "The topic that the producer publishes to instead of the topic of the endpoint. toD sets it to" + + " the topic of its URI and removes it after the send, but keeps a header that is already set," + + " which then replaces the topic of the toD URI.", + javaType = "String") public static final String OVERRIDE_TOPIC = "CamelHiveMQOverrideTopic"; public static final String DEFAULT_HOST = "localhost"; diff --git a/components/camel-hivemq/src/main/java/org/apache/camel/component/hivemq/HiveMQEndpoint.java b/components/camel-hivemq/src/main/java/org/apache/camel/component/hivemq/HiveMQEndpoint.java index cb1c7250b7bf..afcba7cf782a 100644 --- a/components/camel-hivemq/src/main/java/org/apache/camel/component/hivemq/HiveMQEndpoint.java +++ b/components/camel-hivemq/src/main/java/org/apache/camel/component/hivemq/HiveMQEndpoint.java @@ -35,6 +35,9 @@ import org.apache.camel.spi.UriParam; import org.apache.camel.spi.UriPath; import org.apache.camel.support.DefaultEndpoint; +/** + * Send messages to and receive messages from an MQTT broker with the HiveMQ MQTT Client. + */ @UriEndpoint(firstVersion = "4.23.0", scheme = "hivemq", title = "HiveMQ", syntax = "hivemq:topic", category = { Category.MESSAGING, Category.IOT }, headersClass = HiveMQConstants.class) @BodyTypes(consumerOut = @BodyType(value = Carrier.BYTES, javaType = "byte[]", @@ -47,10 +50,9 @@ import org.apache.camel.support.DefaultEndpoint; producerOut = @BodyType(Carrier.UNCHANGED)) public class HiveMQEndpoint extends DefaultEndpoint implements EndpointServiceLocation { - /** - * The MQTT topic name or pattern to subscribe to or publish on. - */ - @UriPath + @UriPath(description = "The MQTT topic. The consumer subscribes to it as a topic filter, which can contain the" + + " wildcards + and #. The producer publishes to it as a topic name without wildcards, and the" + + " CamelHiveMQOverrideTopic header replaces it.") @Metadata(required = true) private String topic; diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java index 93a1802bd658..615592180880 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java @@ -2451,7 +2451,8 @@ public interface ComponentsBuilderFactory { } /** * HiveMQ (camel-hivemq) - * Camel HiveMQ MQTT Client support + * Send messages to and receive messages from an MQTT broker with the HiveMQ + * MQTT Client. * * Category: messaging,iot * Since: 4.23 diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/HivemqComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/HivemqComponentBuilderFactory.java index ccc251e311eb..73a6adea2837 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/HivemqComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/HivemqComponentBuilderFactory.java @@ -24,7 +24,8 @@ import org.apache.camel.builder.component.ComponentBuilder; import org.apache.camel.component.hivemq.HiveMQComponent; /** - * Camel HiveMQ MQTT Client support + * Send messages to and receive messages from an MQTT broker with the HiveMQ + * MQTT Client. * * Generated by camel build tools - do NOT edit this file! */ @@ -33,7 +34,8 @@ public interface HivemqComponentBuilderFactory { /** * HiveMQ (camel-hivemq) - * Camel HiveMQ MQTT Client support + * Send messages to and receive messages from an MQTT broker with the HiveMQ + * MQTT Client. * * Category: messaging,iot * Since: 4.23 @@ -74,7 +76,12 @@ public interface HivemqComponentBuilderFactory { } /** - * Client identifier used when connecting to the HiveMQ broker. + * The MQTT client identifier. If not set, the broker assigns one to + * each connection, but with MQTT 3.1.1 the broker then rejects a + * connection with cleanStart false. Each consumer and each producer + * opens its own connection, and the broker disconnects a client when + * another one connects with the same identifier, so a set identifier + * must be unique per endpoint. * * The option is a: <code>java.lang.String</code> type. * @@ -89,7 +96,9 @@ public interface HivemqComponentBuilderFactory { } /** - * Component configuration. + * To use a shared HiveMQConfiguration with the default values of the + * options. Each endpoint uses a copy of it, in which the options of the + * endpoint replace its values. * * The option is a: * <code>org.apache.camel.component.hivemq.HiveMQConfiguration</code> type. @@ -106,7 +115,7 @@ public interface HivemqComponentBuilderFactory { /** - * Hostname or IP address of the HiveMQ MQTT broker. + * The host name or IP address of the MQTT broker. * * The option is a: <code>java.lang.String</code> type. * @@ -141,7 +150,8 @@ public interface HivemqComponentBuilderFactory { /** - * Port number of the HiveMQ MQTT broker. + * The TCP port of the MQTT broker. The port does not change when ssl is + * true: set it to the TLS port of the broker, usually 8883. * * The option is a: <code>int</code> type. * @@ -158,7 +168,11 @@ public interface HivemqComponentBuilderFactory { /** - * Default Quality of Service (QoS) level to use for messages. + * The Quality of Service (QoS) level that the producer publishes with, + * and the maximum QoS of the subscription of the consumer. The + * CamelHiveMQQos header replaces it for the producer. The consumer + * acknowledges a QoS 1 or 2 message when it receives it, before the + * route processes it. * * The option is a: * <code>com.hivemq.client.mqtt.datatypes.MqttQos</code> @@ -177,7 +191,9 @@ public interface HivemqComponentBuilderFactory { /** - * Whether published messages should be retained by the MQTT broker. + * Whether the producer publishes messages with the retain flag, so that + * the broker keeps the last message of the topic and sends it to new + * subscribers. The CamelHiveMQRetained header replaces it. * * The option is a: <code>boolean</code> type. * @@ -268,7 +284,8 @@ public interface HivemqComponentBuilderFactory { } /** - * Password for authentication with the HiveMQ broker. + * The password for MQTT simple authentication with the broker. It is + * sent only when username is set. * * The option is a: <code>java.lang.String</code> type. * @@ -284,7 +301,10 @@ public interface HivemqComponentBuilderFactory { /** - * Whether to enable SSL/TLS encryption for the broker connection. + * Whether to connect to the broker with TLS. The client uses the + * default trust store of the JVM and no client certificate. The port + * option does not change: set it to the TLS port of the broker, usually + * 8883. * * The option is a: <code>boolean</code> type. * @@ -300,7 +320,7 @@ public interface HivemqComponentBuilderFactory { } /** - * Username for authentication with the HiveMQ broker. + * The user name for MQTT simple authentication with the broker. * * The option is a: <code>java.lang.String</code> type. * diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java index c2e5e45fa9ea..1b92e19a3a5e 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java @@ -1988,7 +1988,8 @@ public class EndpointHeaderBuilders { } /** * HiveMQ (camel-hivemq) - * Camel HiveMQ MQTT Client support + * Send messages to and receive messages from an MQTT broker with the HiveMQ + * MQTT Client. * * Category: messaging,iot * Since: 4.23 diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java index e71de456dc62..a8efc74ad2a3 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java @@ -8268,7 +8268,8 @@ public class StaticEndpointBuilders { } /** * HiveMQ (camel-hivemq) - * Camel HiveMQ MQTT Client support + * Send messages to and receive messages from an MQTT broker with the HiveMQ + * MQTT Client. * * Category: messaging,iot * Since: 4.23 @@ -8277,7 +8278,10 @@ public class StaticEndpointBuilders { * Syntax: <code>hivemq:topic</code> * * Path parameter: topic (required) - * The MQTT topic name or pattern to subscribe to or publish on. + * The MQTT topic. The consumer subscribes to it as a topic filter, which + * can contain the wildcards + and #. The producer publishes to it as a + * topic name without wildcards, and the CamelHiveMQOverrideTopic header + * replaces it. * * @param path topic * @return the dsl builder @@ -8287,7 +8291,8 @@ public class StaticEndpointBuilders { } /** * HiveMQ (camel-hivemq) - * Camel HiveMQ MQTT Client support + * Send messages to and receive messages from an MQTT broker with the HiveMQ + * MQTT Client. * * Category: messaging,iot * Since: 4.23 @@ -8296,7 +8301,10 @@ public class StaticEndpointBuilders { * Syntax: <code>hivemq:topic</code> * * Path parameter: topic (required) - * The MQTT topic name or pattern to subscribe to or publish on. + * The MQTT topic. The consumer subscribes to it as a topic filter, which + * can contain the wildcards + and #. The producer publishes to it as a + * topic name without wildcards, and the CamelHiveMQOverrideTopic header + * replaces it. * * @param componentName to use a custom component name for the endpoint * instead of the default name diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/HiveMQEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/HiveMQEndpointBuilderFactory.java index d490142e8b9d..8a90d49a680b 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/HiveMQEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/HiveMQEndpointBuilderFactory.java @@ -27,7 +27,8 @@ import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; /** - * Camel HiveMQ MQTT Client support + * Send messages to and receive messages from an MQTT broker with the HiveMQ + * MQTT Client. * * Generated by camel build tools - do NOT edit this file! */ @@ -86,7 +87,12 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Client identifier used when connecting to the HiveMQ broker. + * The MQTT client identifier. If not set, the broker assigns one to + * each connection, but with MQTT 3.1.1 the broker then rejects a + * connection with cleanStart false. Each consumer and each producer + * opens its own connection, and the broker disconnects a client when + * another one connects with the same identifier, so a set identifier + * must be unique per endpoint. * * The option is a: <code>java.lang.String</code> type. * @@ -100,7 +106,7 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Hostname or IP address of the HiveMQ MQTT broker. + * The host name or IP address of the MQTT broker. * * The option is a: <code>java.lang.String</code> type. * @@ -147,7 +153,8 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Port number of the HiveMQ MQTT broker. + * The TCP port of the MQTT broker. The port does not change when ssl is + * true: set it to the TLS port of the broker, usually 8883. * * The option is a: <code>int</code> type. * @@ -162,7 +169,8 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Port number of the HiveMQ MQTT broker. + * The TCP port of the MQTT broker. The port does not change when ssl is + * true: set it to the TLS port of the broker, usually 8883. * * The option will be converted to a <code>int</code> type. * @@ -177,7 +185,11 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Default Quality of Service (QoS) level to use for messages. + * The Quality of Service (QoS) level that the producer publishes with, + * and the maximum QoS of the subscription of the consumer. The + * CamelHiveMQQos header replaces it for the producer. The consumer + * acknowledges a QoS 1 or 2 message when it receives it, before the + * route processes it. * * The option is a: * <code>com.hivemq.client.mqtt.datatypes.MqttQos</code> type. @@ -193,7 +205,11 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Default Quality of Service (QoS) level to use for messages. + * The Quality of Service (QoS) level that the producer publishes with, + * and the maximum QoS of the subscription of the consumer. The + * CamelHiveMQQos header replaces it for the producer. The consumer + * acknowledges a QoS 1 or 2 message when it receives it, before the + * route processes it. * * The option will be converted to a * <code>com.hivemq.client.mqtt.datatypes.MqttQos</code> type. @@ -209,7 +225,9 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Whether published messages should be retained by the MQTT broker. + * Whether the producer publishes messages with the retain flag, so that + * the broker keeps the last message of the topic and sends it to new + * subscribers. The CamelHiveMQRetained header replaces it. * * The option is a: <code>boolean</code> type. * @@ -224,7 +242,9 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Whether published messages should be retained by the MQTT broker. + * Whether the producer publishes messages with the retain flag, so that + * the broker keeps the last message of the topic and sends it to new + * subscribers. The CamelHiveMQRetained header replaces it. * * The option will be converted to a <code>boolean</code> type. * @@ -239,7 +259,8 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Password for authentication with the HiveMQ broker. + * The password for MQTT simple authentication with the broker. It is + * sent only when username is set. * * The option is a: <code>java.lang.String</code> type. * @@ -253,7 +274,10 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Whether to enable SSL/TLS encryption for the broker connection. + * Whether to connect to the broker with TLS. The client uses the + * default trust store of the JVM and no client certificate. The port + * option does not change: set it to the TLS port of the broker, usually + * 8883. * * The option is a: <code>boolean</code> type. * @@ -268,7 +292,10 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Whether to enable SSL/TLS encryption for the broker connection. + * Whether to connect to the broker with TLS. The client uses the + * default trust store of the JVM and no client certificate. The port + * option does not change: set it to the TLS port of the broker, usually + * 8883. * * The option will be converted to a <code>boolean</code> type. * @@ -283,7 +310,7 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Username for authentication with the HiveMQ broker. + * The user name for MQTT simple authentication with the broker. * * The option is a: <code>java.lang.String</code> type. * @@ -479,7 +506,12 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Client identifier used when connecting to the HiveMQ broker. + * The MQTT client identifier. If not set, the broker assigns one to + * each connection, but with MQTT 3.1.1 the broker then rejects a + * connection with cleanStart false. Each consumer and each producer + * opens its own connection, and the broker disconnects a client when + * another one connects with the same identifier, so a set identifier + * must be unique per endpoint. * * The option is a: <code>java.lang.String</code> type. * @@ -493,7 +525,7 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Hostname or IP address of the HiveMQ MQTT broker. + * The host name or IP address of the MQTT broker. * * The option is a: <code>java.lang.String</code> type. * @@ -540,7 +572,8 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Port number of the HiveMQ MQTT broker. + * The TCP port of the MQTT broker. The port does not change when ssl is + * true: set it to the TLS port of the broker, usually 8883. * * The option is a: <code>int</code> type. * @@ -555,7 +588,8 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Port number of the HiveMQ MQTT broker. + * The TCP port of the MQTT broker. The port does not change when ssl is + * true: set it to the TLS port of the broker, usually 8883. * * The option will be converted to a <code>int</code> type. * @@ -570,7 +604,11 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Default Quality of Service (QoS) level to use for messages. + * The Quality of Service (QoS) level that the producer publishes with, + * and the maximum QoS of the subscription of the consumer. The + * CamelHiveMQQos header replaces it for the producer. The consumer + * acknowledges a QoS 1 or 2 message when it receives it, before the + * route processes it. * * The option is a: * <code>com.hivemq.client.mqtt.datatypes.MqttQos</code> type. @@ -586,7 +624,11 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Default Quality of Service (QoS) level to use for messages. + * The Quality of Service (QoS) level that the producer publishes with, + * and the maximum QoS of the subscription of the consumer. The + * CamelHiveMQQos header replaces it for the producer. The consumer + * acknowledges a QoS 1 or 2 message when it receives it, before the + * route processes it. * * The option will be converted to a * <code>com.hivemq.client.mqtt.datatypes.MqttQos</code> type. @@ -602,7 +644,9 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Whether published messages should be retained by the MQTT broker. + * Whether the producer publishes messages with the retain flag, so that + * the broker keeps the last message of the topic and sends it to new + * subscribers. The CamelHiveMQRetained header replaces it. * * The option is a: <code>boolean</code> type. * @@ -617,7 +661,9 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Whether published messages should be retained by the MQTT broker. + * Whether the producer publishes messages with the retain flag, so that + * the broker keeps the last message of the topic and sends it to new + * subscribers. The CamelHiveMQRetained header replaces it. * * The option will be converted to a <code>boolean</code> type. * @@ -632,7 +678,8 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Password for authentication with the HiveMQ broker. + * The password for MQTT simple authentication with the broker. It is + * sent only when username is set. * * The option is a: <code>java.lang.String</code> type. * @@ -646,7 +693,10 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Whether to enable SSL/TLS encryption for the broker connection. + * Whether to connect to the broker with TLS. The client uses the + * default trust store of the JVM and no client certificate. The port + * option does not change: set it to the TLS port of the broker, usually + * 8883. * * The option is a: <code>boolean</code> type. * @@ -661,7 +711,10 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Whether to enable SSL/TLS encryption for the broker connection. + * Whether to connect to the broker with TLS. The client uses the + * default trust store of the JVM and no client certificate. The port + * option does not change: set it to the TLS port of the broker, usually + * 8883. * * The option will be converted to a <code>boolean</code> type. * @@ -676,7 +729,7 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Username for authentication with the HiveMQ broker. + * The user name for MQTT simple authentication with the broker. * * The option is a: <code>java.lang.String</code> type. * @@ -801,7 +854,12 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Client identifier used when connecting to the HiveMQ broker. + * The MQTT client identifier. If not set, the broker assigns one to + * each connection, but with MQTT 3.1.1 the broker then rejects a + * connection with cleanStart false. Each consumer and each producer + * opens its own connection, and the broker disconnects a client when + * another one connects with the same identifier, so a set identifier + * must be unique per endpoint. * * The option is a: <code>java.lang.String</code> type. * @@ -815,7 +873,7 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Hostname or IP address of the HiveMQ MQTT broker. + * The host name or IP address of the MQTT broker. * * The option is a: <code>java.lang.String</code> type. * @@ -862,7 +920,8 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Port number of the HiveMQ MQTT broker. + * The TCP port of the MQTT broker. The port does not change when ssl is + * true: set it to the TLS port of the broker, usually 8883. * * The option is a: <code>int</code> type. * @@ -877,7 +936,8 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Port number of the HiveMQ MQTT broker. + * The TCP port of the MQTT broker. The port does not change when ssl is + * true: set it to the TLS port of the broker, usually 8883. * * The option will be converted to a <code>int</code> type. * @@ -892,7 +952,11 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Default Quality of Service (QoS) level to use for messages. + * The Quality of Service (QoS) level that the producer publishes with, + * and the maximum QoS of the subscription of the consumer. The + * CamelHiveMQQos header replaces it for the producer. The consumer + * acknowledges a QoS 1 or 2 message when it receives it, before the + * route processes it. * * The option is a: * <code>com.hivemq.client.mqtt.datatypes.MqttQos</code> type. @@ -908,7 +972,11 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Default Quality of Service (QoS) level to use for messages. + * The Quality of Service (QoS) level that the producer publishes with, + * and the maximum QoS of the subscription of the consumer. The + * CamelHiveMQQos header replaces it for the producer. The consumer + * acknowledges a QoS 1 or 2 message when it receives it, before the + * route processes it. * * The option will be converted to a * <code>com.hivemq.client.mqtt.datatypes.MqttQos</code> type. @@ -924,7 +992,9 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Whether published messages should be retained by the MQTT broker. + * Whether the producer publishes messages with the retain flag, so that + * the broker keeps the last message of the topic and sends it to new + * subscribers. The CamelHiveMQRetained header replaces it. * * The option is a: <code>boolean</code> type. * @@ -939,7 +1009,9 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Whether published messages should be retained by the MQTT broker. + * Whether the producer publishes messages with the retain flag, so that + * the broker keeps the last message of the topic and sends it to new + * subscribers. The CamelHiveMQRetained header replaces it. * * The option will be converted to a <code>boolean</code> type. * @@ -954,7 +1026,8 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Password for authentication with the HiveMQ broker. + * The password for MQTT simple authentication with the broker. It is + * sent only when username is set. * * The option is a: <code>java.lang.String</code> type. * @@ -968,7 +1041,10 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Whether to enable SSL/TLS encryption for the broker connection. + * Whether to connect to the broker with TLS. The client uses the + * default trust store of the JVM and no client certificate. The port + * option does not change: set it to the TLS port of the broker, usually + * 8883. * * The option is a: <code>boolean</code> type. * @@ -983,7 +1059,10 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Whether to enable SSL/TLS encryption for the broker connection. + * Whether to connect to the broker with TLS. The client uses the + * default trust store of the JVM and no client certificate. The port + * option does not change: set it to the TLS port of the broker, usually + * 8883. * * The option will be converted to a <code>boolean</code> type. * @@ -998,7 +1077,7 @@ public interface HiveMQEndpointBuilderFactory { return this; } /** - * Username for authentication with the HiveMQ broker. + * The user name for MQTT simple authentication with the broker. * * The option is a: <code>java.lang.String</code> type. * @@ -1029,7 +1108,8 @@ public interface HiveMQEndpointBuilderFactory { public interface HiveMQBuilders { /** * HiveMQ (camel-hivemq) - * Camel HiveMQ MQTT Client support + * Send messages to and receive messages from an MQTT broker with the + * HiveMQ MQTT Client. * * Category: messaging,iot * Since: 4.23 @@ -1042,7 +1122,8 @@ public interface HiveMQEndpointBuilderFactory { } /** * HiveMQ (camel-hivemq) - * Camel HiveMQ MQTT Client support + * Send messages to and receive messages from an MQTT broker with the + * HiveMQ MQTT Client. * * Category: messaging,iot * Since: 4.23 @@ -1051,7 +1132,10 @@ public interface HiveMQEndpointBuilderFactory { * Syntax: <code>hivemq:topic</code> * * Path parameter: topic (required) - * The MQTT topic name or pattern to subscribe to or publish on. + * The MQTT topic. The consumer subscribes to it as a topic filter, + * which can contain the wildcards + and #. The producer publishes to it + * as a topic name without wildcards, and the CamelHiveMQOverrideTopic + * header replaces it. * * @param path topic * @return the dsl builder @@ -1061,7 +1145,8 @@ public interface HiveMQEndpointBuilderFactory { } /** * HiveMQ (camel-hivemq) - * Camel HiveMQ MQTT Client support + * Send messages to and receive messages from an MQTT broker with the + * HiveMQ MQTT Client. * * Category: messaging,iot * Since: 4.23 @@ -1070,7 +1155,10 @@ public interface HiveMQEndpointBuilderFactory { * Syntax: <code>hivemq:topic</code> * * Path parameter: topic (required) - * The MQTT topic name or pattern to subscribe to or publish on. + * The MQTT topic. The consumer subscribes to it as a topic filter, + * which can contain the wildcards + and #. The producer publishes to it + * as a topic name without wildcards, and the CamelHiveMQOverrideTopic + * header replaces it. * * @param componentName to use a custom component name for the endpoint * instead of the default name @@ -1093,7 +1181,10 @@ public interface HiveMQEndpointBuilderFactory { public static final HiveMQHeaderNameBuilder INSTANCE = new HiveMQHeaderNameBuilder(); /** - * The topic to publish/subscribe to. + * The topic of the received message, set by the consumer. With a + * wildcard subscription it is the actual topic name. The producer does + * not read this header: use CamelHiveMQOverrideTopic to publish to + * another topic. * * The option is a: {@code String} type. * @@ -1105,7 +1196,9 @@ public interface HiveMQEndpointBuilderFactory { return "CamelHiveMQTopic"; } /** - * The QoS level of the message. + * The QoS level of the message. The consumer sets the QoS that the + * message was delivered with, and the producer publishes with this + * value instead of the qos option. * * The option is a: {@code com.hivemq.client.mqtt.datatypes.MqttQos} * type. @@ -1118,7 +1211,10 @@ public interface HiveMQEndpointBuilderFactory { return "CamelHiveMQQos"; } /** - * Whether the message should be retained. + * Whether the retain flag of the message is set. The consumer sets it, + * true for a retained message that the broker sends for a new + * subscription, and the producer publishes with this value instead of + * the retained option. * * The option is a: {@code Boolean} type. * @@ -1130,7 +1226,10 @@ public interface HiveMQEndpointBuilderFactory { return "CamelHiveMQRetained"; } /** - * Header to dynamically override the target topic for publishing. + * The topic that the producer publishes to instead of the topic of the + * endpoint. toD sets it to the topic of its URI and removes it after + * the send, but keeps a header that is already set, which then replaces + * the topic of the toD URI. * * The option is a: {@code String} type. * diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md index c3512b4c98a1..b0a7a295d088 100644 --- a/tasks/component-descriptions.md +++ b/tasks/component-descriptions.md @@ -202,7 +202,7 @@ or removes its row. | camel-hashicorp-vault | hashicorp-vault | | | camel-hazelcast | hazelcast-instance, hazelcast-list, hazelcast-map, hazelcast-multimap, hazelcast-pncounter, hazelcast-queue, hazelcast-replicatedmap, hazelcast-ringbuffer, hazelcast-seda, hazelcast-set, hazelcast-topic | | | camel-hibernate | hibernate | yes | -| camel-hivemq | hivemq | | +| camel-hivemq | hivemq | yes | | camel-http | http, https | | | camel-huaweicloud-dms | hwcloud-dms | | | camel-huaweicloud-frs | hwcloud-frs | |
