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 1b716e6b8ba075fba6a6085f8277b083d1f86ab9 Author: Claus Ibsen <[email protected]> AuthorDate: Fri Nov 27 19:52:27 2026 +0100 CAMEL-23832: camel-avro-rpc - improve the component and option descriptions Rewrites the component description, 11 option texts (10 endpoint options, 6 of them shared with the component, plus the component configuration option) and the CamelAvroMessageName header. Corrects uriAuthority (it is the host and port of the URI, not a username and password) and the header (the consumer sets it, it does not read it), and documents that protocolLocation is not used. Documentation only, no behavior change. The component JSON, the catalog copy, the doc page header and the DSL are regenerated. camel-avro-rpc 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]> --- .../org/apache/camel/catalog/components/avro.json | 38 ++-- .../apache/camel/catalog/docs/avro-component.adoc | 2 +- .../org/apache/camel/component/avro/avro.json | 38 ++-- .../src/main/docs/avro-component.adoc | 2 +- .../apache/camel/component/avro/AvroComponent.java | 7 +- .../camel/component/avro/AvroConfiguration.java | 69 +++---- .../apache/camel/component/avro/AvroConstants.java | 3 +- .../apache/camel/component/avro/AvroEndpoint.java | 2 +- .../component/ComponentsBuilderFactory.java | 2 +- .../component/dsl/AvroComponentBuilderFactory.java | 43 ++-- .../builder/endpoint/EndpointHeaderBuilders.java | 2 +- .../builder/endpoint/StaticEndpointBuilders.java | 34 +++- .../endpoint/dsl/AvroEndpointBuilderFactory.java | 216 +++++++++++++++------ tasks/component-descriptions.md | 2 +- 14 files changed, 285 insertions(+), 175 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/avro.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/avro.json index fca6d93f8a56..4130965ceb82 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/avro.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/avro.json @@ -3,7 +3,7 @@ "kind": "component", "name": "avro", "title": "Avro RPC", - "description": "Produce or consume Apache Avro RPC services.", + "description": "Call and expose Apache Avro RPC services over HTTP or Netty.", "deprecated": false, "firstVersion": "2.10.0", "label": "rpc", @@ -24,20 +24,20 @@ "remote": true }, "componentProperties": { - "protocol": { "index": 0, "kind": "property", "displayName": "Protocol", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.avro.Protocol", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol to use" }, - "protocolClassName": { "index": 1, "kind": "property", "displayName": "Protocol Class Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol to use defined by the FQN class name" }, - "protocolLocation": { "index": 2, "kind": "property", "displayName": "Protocol Location", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol location" }, - "reflectionProtocol": { "index": 3, "kind": "property", "displayName": "Reflection Protocol", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If the protocol object provided is reflection protocol. Should be used only with protocol [...] - "singleParameter": { "index": 4, "kind": "property", "displayName": "Single Parameter", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If true, consumer parameter won't be wrapped into an array. Will fail if protocol specifies more [...] - "uriAuthority": { "index": 5, "kind": "property", "displayName": "Uri Authority", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Authority to use (username and password)" }, + "protocol": { "index": 0, "kind": "property", "displayName": "Protocol", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.avro.Protocol", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The Avro protocol (org.apache.avro.Protocol) that defines the messages, such as the PROTOCOL field of a class generate [...] + "protocolClassName": { "index": 1, "kind": "property", "displayName": "Protocol Class Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The fully qualified name of the class that defines the protocol. For a class generated by the Avro compile [...] + "protocolLocation": { "index": 2, "kind": "property", "displayName": "Protocol Location", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Not used: the component does not read this option. Use protocol or protocolClassName instead." }, + "reflectionProtocol": { "index": 3, "kind": "property", "displayName": "Reflection Protocol", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Whether the protocol is a reflect protocol, built by Avro reflection from a Java interface [...] + "singleParameter": { "index": 4, "kind": "property", "displayName": "Single Parameter", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Whether the consumer sets the message body to the one parameter of the called message, instead o [...] + "uriAuthority": { "index": 5, "kind": "property", "displayName": "Uri Authority", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The authority (host and port) of the endpoint URI, which the component sets from the URI. Consumers with the same aut [...] "bridgeErrorHandler": { "index": 6, "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": 7, "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": 8, "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 t [...] - "configuration": { "index": 9, "kind": "property", "displayName": "Configuration", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.avro.AvroConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "To use a shared AvroConfiguration to configure options once" }, + "configuration": { "index": 9, "kind": "property", "displayName": "Configuration", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.avro.AvroConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "A shared configuration that every endpoint copies as its starting point. The options of the endpoint URI override its values." }, "serializablePackages": { "index": 10, "kind": "property", "displayName": "Serializable Packages", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:serialization", "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Comma-separated list of additional packages that con [...] }, "headers": { - "CamelAvroMessageName": { "index": 0, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the message to send. In consumer overrides message name from URI (if any)", "constantName": "org.apache.camel.component.avro.AvroConstants#AVRO_MESSAGE_NAME" } + "CamelAvroMessageName": { "index": 0, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the protocol message to call. The producer reads it, and it takes precedence over the messageName of the endpoint. The consumer sets it to the name of the called message.", "constantName": "org.apache.camel.component.avro.AvroConstants#AVRO_MESSAGE_NAME" } }, "bodyTypes": { "consumerOut": { "carriers": [ "list" ], "javaType": "java.lang.Object[]", "byOption": [ { "option": "singleParameter", "value": "true", "carriers": [ "unknown" ] } ], "description": "An Object array of the parameters of the called message, in the order of the protocol, with the message name in the CamelAvroMessageName header. With singleParameter the one parameter itself, such as a record" }, @@ -46,16 +46,16 @@ "producerOut": { "carriers": [ "unknown" ], "description": "The response of the message, of its type in the protocol, such as the record class; no body for a message with a null response" } }, "properties": { - "transport": { "index": 0, "kind": "path", "displayName": "Transport", "group": "common", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.avro.AvroTransport", "enum": [ "http", "netty" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Transport to use, can be either http or netty" }, - "port": { "index": 1, "kind": "path", "displayName": "Port", "group": "common", "label": "", "required": true, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Port number to use" }, - "host": { "index": 2, "kind": "path", "displayName": "Host", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Hostname to use" }, - "messageName": { "index": 3, "kind": "path", "displayName": "Message Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The name of the message to send." }, - "protocol": { "index": 4, "kind": "parameter", "displayName": "Protocol", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.avro.Protocol", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol to use" }, - "protocolClassName": { "index": 5, "kind": "parameter", "displayName": "Protocol Class Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol to use defined by the FQN class name" }, - "protocolLocation": { "index": 6, "kind": "parameter", "displayName": "Protocol Location", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol location" }, - "reflectionProtocol": { "index": 7, "kind": "parameter", "displayName": "Reflection Protocol", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If the protocol object provided is reflection protocol. Should be used only with protocol [...] - "singleParameter": { "index": 8, "kind": "parameter", "displayName": "Single Parameter", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If true, consumer parameter won't be wrapped into an array. Will fail if protocol specifies mor [...] - "uriAuthority": { "index": 9, "kind": "parameter", "displayName": "Uri Authority", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Authority to use (username and password)" }, + "transport": { "index": 0, "kind": "path", "displayName": "Transport", "group": "common", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.avro.AvroTransport", "enum": [ "http", "netty" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The transport: http or netty. With http, the consumer runs an Avro HTTP s [...] + "port": { "index": 1, "kind": "path", "displayName": "Port", "group": "common", "label": "", "required": true, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The port number. The consumer listens on it, and the producer connects to it." }, + "host": { "index": 2, "kind": "path", "displayName": "Host", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The host name or IP address. The consumer binds its server to it, and the producer connects to it." }, + "messageName": { "index": 3, "kind": "path", "displayName": "Message Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The name of the protocol message to call or serve. The producer calls it unless the CamelAvroMessageName header is set. A c [...] + "protocol": { "index": 4, "kind": "parameter", "displayName": "Protocol", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.avro.Protocol", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The Avro protocol (org.apache.avro.Protocol) that defines the messages, such as the PROTOCOL field of a class generat [...] + "protocolClassName": { "index": 5, "kind": "parameter", "displayName": "Protocol Class Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The fully qualified name of the class that defines the protocol. For a class generated by the Avro compil [...] + "protocolLocation": { "index": 6, "kind": "parameter", "displayName": "Protocol Location", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Not used: the component does not read this option. Use protocol or protocolClassName instead." }, + "reflectionProtocol": { "index": 7, "kind": "parameter", "displayName": "Reflection Protocol", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Whether the protocol is a reflect protocol, built by Avro reflection from a Java interfac [...] + "singleParameter": { "index": 8, "kind": "parameter", "displayName": "Single Parameter", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Whether the consumer sets the message body to the one parameter of the called message, instead [...] + "uriAuthority": { "index": 9, "kind": "parameter", "displayName": "Uri Authority", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The authority (host and port) of the endpoint URI, which the component sets from the URI. Consumers with the same au [...] "bridgeErrorHandler": { "index": 10, "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": 11, "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 de [...] "exchangePattern": { "index": 12, "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." }, diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/avro-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/avro-component.adoc index 373ff320112a..572d94a7ef69 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/avro-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/avro-component.adoc @@ -2,7 +2,7 @@ :doctitle: Avro RPC :shortname: avro :artifactid: camel-avro-rpc -:description: Produce or consume Apache Avro RPC services. +:description: Call and expose Apache Avro RPC services over HTTP or Netty. :since: 2.10 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-avro-rpc/camel-avro-rpc-component/src/generated/resources/META-INF/org/apache/camel/component/avro/avro.json b/components/camel-avro-rpc/camel-avro-rpc-component/src/generated/resources/META-INF/org/apache/camel/component/avro/avro.json index fca6d93f8a56..4130965ceb82 100644 --- a/components/camel-avro-rpc/camel-avro-rpc-component/src/generated/resources/META-INF/org/apache/camel/component/avro/avro.json +++ b/components/camel-avro-rpc/camel-avro-rpc-component/src/generated/resources/META-INF/org/apache/camel/component/avro/avro.json @@ -3,7 +3,7 @@ "kind": "component", "name": "avro", "title": "Avro RPC", - "description": "Produce or consume Apache Avro RPC services.", + "description": "Call and expose Apache Avro RPC services over HTTP or Netty.", "deprecated": false, "firstVersion": "2.10.0", "label": "rpc", @@ -24,20 +24,20 @@ "remote": true }, "componentProperties": { - "protocol": { "index": 0, "kind": "property", "displayName": "Protocol", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.avro.Protocol", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol to use" }, - "protocolClassName": { "index": 1, "kind": "property", "displayName": "Protocol Class Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol to use defined by the FQN class name" }, - "protocolLocation": { "index": 2, "kind": "property", "displayName": "Protocol Location", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol location" }, - "reflectionProtocol": { "index": 3, "kind": "property", "displayName": "Reflection Protocol", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If the protocol object provided is reflection protocol. Should be used only with protocol [...] - "singleParameter": { "index": 4, "kind": "property", "displayName": "Single Parameter", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If true, consumer parameter won't be wrapped into an array. Will fail if protocol specifies more [...] - "uriAuthority": { "index": 5, "kind": "property", "displayName": "Uri Authority", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Authority to use (username and password)" }, + "protocol": { "index": 0, "kind": "property", "displayName": "Protocol", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.avro.Protocol", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The Avro protocol (org.apache.avro.Protocol) that defines the messages, such as the PROTOCOL field of a class generate [...] + "protocolClassName": { "index": 1, "kind": "property", "displayName": "Protocol Class Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The fully qualified name of the class that defines the protocol. For a class generated by the Avro compile [...] + "protocolLocation": { "index": 2, "kind": "property", "displayName": "Protocol Location", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Not used: the component does not read this option. Use protocol or protocolClassName instead." }, + "reflectionProtocol": { "index": 3, "kind": "property", "displayName": "Reflection Protocol", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Whether the protocol is a reflect protocol, built by Avro reflection from a Java interface [...] + "singleParameter": { "index": 4, "kind": "property", "displayName": "Single Parameter", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Whether the consumer sets the message body to the one parameter of the called message, instead o [...] + "uriAuthority": { "index": 5, "kind": "property", "displayName": "Uri Authority", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The authority (host and port) of the endpoint URI, which the component sets from the URI. Consumers with the same aut [...] "bridgeErrorHandler": { "index": 6, "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": 7, "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": 8, "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 t [...] - "configuration": { "index": 9, "kind": "property", "displayName": "Configuration", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.avro.AvroConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "To use a shared AvroConfiguration to configure options once" }, + "configuration": { "index": 9, "kind": "property", "displayName": "Configuration", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.avro.AvroConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "A shared configuration that every endpoint copies as its starting point. The options of the endpoint URI override its values." }, "serializablePackages": { "index": 10, "kind": "property", "displayName": "Serializable Packages", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:serialization", "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Comma-separated list of additional packages that con [...] }, "headers": { - "CamelAvroMessageName": { "index": 0, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the message to send. In consumer overrides message name from URI (if any)", "constantName": "org.apache.camel.component.avro.AvroConstants#AVRO_MESSAGE_NAME" } + "CamelAvroMessageName": { "index": 0, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the protocol message to call. The producer reads it, and it takes precedence over the messageName of the endpoint. The consumer sets it to the name of the called message.", "constantName": "org.apache.camel.component.avro.AvroConstants#AVRO_MESSAGE_NAME" } }, "bodyTypes": { "consumerOut": { "carriers": [ "list" ], "javaType": "java.lang.Object[]", "byOption": [ { "option": "singleParameter", "value": "true", "carriers": [ "unknown" ] } ], "description": "An Object array of the parameters of the called message, in the order of the protocol, with the message name in the CamelAvroMessageName header. With singleParameter the one parameter itself, such as a record" }, @@ -46,16 +46,16 @@ "producerOut": { "carriers": [ "unknown" ], "description": "The response of the message, of its type in the protocol, such as the record class; no body for a message with a null response" } }, "properties": { - "transport": { "index": 0, "kind": "path", "displayName": "Transport", "group": "common", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.avro.AvroTransport", "enum": [ "http", "netty" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Transport to use, can be either http or netty" }, - "port": { "index": 1, "kind": "path", "displayName": "Port", "group": "common", "label": "", "required": true, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Port number to use" }, - "host": { "index": 2, "kind": "path", "displayName": "Host", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Hostname to use" }, - "messageName": { "index": 3, "kind": "path", "displayName": "Message Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The name of the message to send." }, - "protocol": { "index": 4, "kind": "parameter", "displayName": "Protocol", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.avro.Protocol", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol to use" }, - "protocolClassName": { "index": 5, "kind": "parameter", "displayName": "Protocol Class Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol to use defined by the FQN class name" }, - "protocolLocation": { "index": 6, "kind": "parameter", "displayName": "Protocol Location", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Avro protocol location" }, - "reflectionProtocol": { "index": 7, "kind": "parameter", "displayName": "Reflection Protocol", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If the protocol object provided is reflection protocol. Should be used only with protocol [...] - "singleParameter": { "index": 8, "kind": "parameter", "displayName": "Single Parameter", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "If true, consumer parameter won't be wrapped into an array. Will fail if protocol specifies mor [...] - "uriAuthority": { "index": 9, "kind": "parameter", "displayName": "Uri Authority", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Authority to use (username and password)" }, + "transport": { "index": 0, "kind": "path", "displayName": "Transport", "group": "common", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.avro.AvroTransport", "enum": [ "http", "netty" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The transport: http or netty. With http, the consumer runs an Avro HTTP s [...] + "port": { "index": 1, "kind": "path", "displayName": "Port", "group": "common", "label": "", "required": true, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The port number. The consumer listens on it, and the producer connects to it." }, + "host": { "index": 2, "kind": "path", "displayName": "Host", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The host name or IP address. The consumer binds its server to it, and the producer connects to it." }, + "messageName": { "index": 3, "kind": "path", "displayName": "Message Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The name of the protocol message to call or serve. The producer calls it unless the CamelAvroMessageName header is set. A c [...] + "protocol": { "index": 4, "kind": "parameter", "displayName": "Protocol", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.avro.Protocol", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The Avro protocol (org.apache.avro.Protocol) that defines the messages, such as the PROTOCOL field of a class generat [...] + "protocolClassName": { "index": 5, "kind": "parameter", "displayName": "Protocol Class Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The fully qualified name of the class that defines the protocol. For a class generated by the Avro compil [...] + "protocolLocation": { "index": 6, "kind": "parameter", "displayName": "Protocol Location", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Not used: the component does not read this option. Use protocol or protocolClassName instead." }, + "reflectionProtocol": { "index": 7, "kind": "parameter", "displayName": "Reflection Protocol", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Whether the protocol is a reflect protocol, built by Avro reflection from a Java interfac [...] + "singleParameter": { "index": 8, "kind": "parameter", "displayName": "Single Parameter", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "Whether the consumer sets the message body to the one parameter of the called message, instead [...] + "uriAuthority": { "index": 9, "kind": "parameter", "displayName": "Uri Authority", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.avro.AvroConfiguration", "configurationField": "configuration", "description": "The authority (host and port) of the endpoint URI, which the component sets from the URI. Consumers with the same au [...] "bridgeErrorHandler": { "index": 10, "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": 11, "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 de [...] "exchangePattern": { "index": 12, "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." }, diff --git a/components/camel-avro-rpc/camel-avro-rpc-component/src/main/docs/avro-component.adoc b/components/camel-avro-rpc/camel-avro-rpc-component/src/main/docs/avro-component.adoc index 373ff320112a..572d94a7ef69 100644 --- a/components/camel-avro-rpc/camel-avro-rpc-component/src/main/docs/avro-component.adoc +++ b/components/camel-avro-rpc/camel-avro-rpc-component/src/main/docs/avro-component.adoc @@ -2,7 +2,7 @@ :doctitle: Avro RPC :shortname: avro :artifactid: camel-avro-rpc -:description: Produce or consume Apache Avro RPC services. +:description: Call and expose Apache Avro RPC services over HTTP or Netty. :since: 2.10 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroComponent.java b/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroComponent.java index 16fc7f7230be..b606d4c370d3 100644 --- a/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroComponent.java +++ b/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroComponent.java @@ -34,7 +34,9 @@ public class AvroComponent extends DefaultComponent { private final ConcurrentMap<String, AvroListener> listenerRegistry = new ConcurrentHashMap<>(); - @Metadata(label = "advanced") + @Metadata(label = "advanced", + description = "A shared configuration that every endpoint copies as its starting point. The options of the" + + " endpoint URI override its values.") private AvroConfiguration configuration; public AvroComponent() { @@ -118,9 +120,6 @@ public class AvroComponent extends DefaultComponent { return configuration; } - /** - * To use a shared {@link AvroConfiguration} to configure options once - */ public void setConfiguration(AvroConfiguration configuration) { this.configuration = configuration; } diff --git a/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroConfiguration.java b/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroConfiguration.java index 655b707357da..910d7661afda 100644 --- a/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroConfiguration.java +++ b/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroConfiguration.java @@ -31,28 +31,42 @@ import static org.apache.camel.component.avro.AvroConstants.AVRO_MESSAGE_NAME_SE @UriParams public class AvroConfiguration implements Cloneable { - @UriPath + @UriPath(description = "The transport: http or netty. With http, the consumer runs an Avro HTTP server on Jetty and the" + + " producer sends HTTP POST requests; with netty, both use the Avro Netty server and transceiver.") @Metadata(required = true) private AvroTransport transport; - @UriPath + @UriPath(description = "The host name or IP address. The consumer binds its server to it, and the producer connects to it.") @Metadata(required = true) private String host; - @UriPath + @UriPath(description = "The port number. The consumer listens on it, and the producer connects to it.") @Metadata(required = true) private int port; - @UriPath + @UriPath(description = "The name of the protocol message to call or serve. The producer calls it unless the" + + " CamelAvroMessageName header is set. A consumer with a message name serves only that message; a" + + " consumer without one serves every message that no other consumer on the same host and port serves.") private String messageName; - @UriParam + @UriParam(description = "Not used: the component does not read this option. Use protocol or protocolClassName instead.") private String protocolLocation; - @UriParam + @UriParam(description = "The Avro protocol (org.apache.avro.Protocol) that defines the messages, such as the PROTOCOL field" + + " of a class generated by the Avro compiler. Set this option or protocolClassName: the endpoint" + + " fails to start without a protocol.") private Protocol protocol; - @UriParam + @UriParam(description = "The fully qualified name of the class that defines the protocol. For a class generated by the Avro" + + " compiler, its static PROTOCOL field is used; for any other class or interface, Avro reflection" + + " builds the protocol and reflectionProtocol is turned on. Ignored when protocol is set.") private String protocolClassName; - @UriParam + @UriParam(description = "The authority (host and port) of the endpoint URI, which the component sets from the URI." + + " Consumers with the same authority share one Avro server, created with the protocol of the first" + + " consumer that starts. A value set on the component is replaced by the authority of the endpoint URI.") private String uriAuthority; - @UriParam + @UriParam(description = "Whether the protocol is a reflect protocol, built by Avro reflection from a Java interface, rather" + + " than one from classes generated by the Avro compiler. When true, the consumer and producer use the" + + " Avro reflect responder and requestor. Set it together with protocol: with protocolClassName it is" + + " turned on for a class without a PROTOCOL field.") private boolean reflectionProtocol; - @UriParam + @UriParam(description = "Whether the consumer sets the message body to the one parameter of the called message, instead of" + + " an Object array of all parameters. The endpoint fails to start if the message, or any message of" + + " the protocol when messageName is not set, does not have exactly one parameter.") private boolean singleParameter; @UriParam(label = "security", security = "insecure:serialization") private String serializablePackages; @@ -88,9 +102,6 @@ public class AvroConfiguration implements Cloneable { return host; } - /** - * Hostname to use - */ public void setHost(String host) { this.host = host; } @@ -99,9 +110,6 @@ public class AvroConfiguration implements Cloneable { return port; } - /** - * Port number to use - */ public void setPort(int port) { this.port = port; } @@ -110,9 +118,6 @@ public class AvroConfiguration implements Cloneable { return protocol; } - /** - * Avro protocol to use - */ public void setProtocol(Protocol protocol) { this.protocol = protocol; } @@ -121,16 +126,10 @@ public class AvroConfiguration implements Cloneable { return transport; } - /** - * Transport to use, can be either http or netty - */ public void setTransport(String transport) { this.transport = AvroTransport.valueOf(transport); } - /** - * Transport to use, can be either http or netty - */ public void setTransport(AvroTransport transport) { this.transport = transport; } @@ -139,9 +138,6 @@ public class AvroConfiguration implements Cloneable { return protocolLocation; } - /** - * Avro protocol location - */ public void setProtocolLocation(String protocolLocation) { this.protocolLocation = protocolLocation; } @@ -150,9 +146,6 @@ public class AvroConfiguration implements Cloneable { return protocolClassName; } - /** - * Avro protocol to use defined by the FQN class name - */ public void setProtocolClassName(String protocolClassName) { this.protocolClassName = protocolClassName; } @@ -161,9 +154,6 @@ public class AvroConfiguration implements Cloneable { return messageName; } - /** - * The name of the message to send. - */ public void setMessageName(String messageName) { this.messageName = messageName; } @@ -172,9 +162,6 @@ public class AvroConfiguration implements Cloneable { return uriAuthority; } - /** - * Authority to use (username and password) - */ public void setUriAuthority(String uriAuthority) { this.uriAuthority = uriAuthority; } @@ -183,10 +170,6 @@ public class AvroConfiguration implements Cloneable { return reflectionProtocol; } - /** - * If the protocol object provided is reflection protocol. Should be used only with protocol parameter because for - * protocolClassName protocol type will be auto-detected - */ public void setReflectionProtocol(boolean isReflectionProtocol) { this.reflectionProtocol = isReflectionProtocol; } @@ -195,10 +178,6 @@ public class AvroConfiguration implements Cloneable { return singleParameter; } - /** - * If true, consumer parameter won't be wrapped into an array. Will fail if protocol specifies more than one - * parameter for the message - */ public void setSingleParameter(boolean singleParameter) { this.singleParameter = singleParameter; } diff --git a/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroConstants.java b/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroConstants.java index c16282ac74ea..242afb6acbd1 100644 --- a/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroConstants.java +++ b/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroConstants.java @@ -24,7 +24,8 @@ public final class AvroConstants { public static final String AVRO_HTTP_TRANSPORT = "http"; public static final String AVRO_MESSAGE_NAME_SEPARATOR = "/"; - @Metadata(description = "The name of the message to send. In consumer overrides message name from URI (if any)", + @Metadata(description = "The name of the protocol message to call. The producer reads it, and it takes precedence over the" + + " messageName of the endpoint. The consumer sets it to the name of the called message.", javaType = "String") public static final String AVRO_MESSAGE_NAME = "CamelAvroMessageName"; diff --git a/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroEndpoint.java b/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroEndpoint.java index 2dd1c4aefe54..8d9128bf2c2d 100644 --- a/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroEndpoint.java +++ b/components/camel-avro-rpc/camel-avro-rpc-component/src/main/java/org/apache/camel/component/avro/AvroEndpoint.java @@ -36,7 +36,7 @@ import org.apache.camel.spi.UriParam; import org.apache.camel.support.DefaultEndpoint; /** - * Produce or consume Apache Avro RPC services. + * Call and expose Apache Avro RPC services over HTTP or Netty. */ @UriEndpoint(firstVersion = "2.10.0", scheme = "avro", title = "Avro RPC", syntax = "avro:transport:host:port/messageName", category = { Category.RPC }, headersClass = AvroConstants.class) 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 f67c498c522d..8e425572b7e8 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 @@ -331,7 +331,7 @@ public interface ComponentsBuilderFactory { } /** * Avro RPC (camel-avro-rpc) - * Produce or consume Apache Avro RPC services. + * Call and expose Apache Avro RPC services over HTTP or Netty. * * Category: rpc * Since: 2.10 diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AvroComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AvroComponentBuilderFactory.java index 391427b3ebdc..663e0e301e01 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AvroComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AvroComponentBuilderFactory.java @@ -24,7 +24,7 @@ import org.apache.camel.builder.component.ComponentBuilder; import org.apache.camel.component.avro.AvroComponent; /** - * Produce or consume Apache Avro RPC services. + * Call and expose Apache Avro RPC services over HTTP or Netty. * * Generated by camel build tools - do NOT edit this file! */ @@ -33,7 +33,7 @@ public interface AvroComponentBuilderFactory { /** * Avro RPC (camel-avro-rpc) - * Produce or consume Apache Avro RPC services. + * Call and expose Apache Avro RPC services over HTTP or Netty. * * Category: rpc * Since: 2.10 @@ -51,7 +51,10 @@ public interface AvroComponentBuilderFactory { interface AvroComponentBuilder extends ComponentBuilder<AvroComponent> { /** - * Avro protocol to use. + * The Avro protocol (org.apache.avro.Protocol) that defines the + * messages, such as the PROTOCOL field of a class generated by the Avro + * compiler. Set this option or protocolClassName: the endpoint fails to + * start without a protocol. * * The option is a: <code>org.apache.avro.Protocol</code> * type. @@ -67,7 +70,11 @@ public interface AvroComponentBuilderFactory { } /** - * Avro protocol to use defined by the FQN class name. + * The fully qualified name of the class that defines the protocol. For + * a class generated by the Avro compiler, its static PROTOCOL field is + * used; for any other class or interface, Avro reflection builds the + * protocol and reflectionProtocol is turned on. Ignored when protocol + * is set. * * The option is a: <code>java.lang.String</code> type. * @@ -82,7 +89,8 @@ public interface AvroComponentBuilderFactory { } /** - * Avro protocol location. + * Not used: the component does not read this option. Use protocol or + * protocolClassName instead. * * The option is a: <code>java.lang.String</code> type. * @@ -98,9 +106,12 @@ public interface AvroComponentBuilderFactory { /** - * If the protocol object provided is reflection protocol. Should be - * used only with protocol parameter because for protocolClassName - * protocol type will be auto-detected. + * Whether the protocol is a reflect protocol, built by Avro reflection + * from a Java interface, rather than one from classes generated by the + * Avro compiler. When true, the consumer and producer use the Avro + * reflect responder and requestor. Set it together with protocol: with + * protocolClassName it is turned on for a class without a PROTOCOL + * field. * * The option is a: <code>boolean</code> type. * @@ -117,8 +128,11 @@ public interface AvroComponentBuilderFactory { /** - * If true, consumer parameter won't be wrapped into an array. Will fail - * if protocol specifies more than one parameter for the message. + * Whether the consumer sets the message body to the one parameter of + * the called message, instead of an Object array of all parameters. The + * endpoint fails to start if the message, or any message of the + * protocol when messageName is not set, does not have exactly one + * parameter. * * The option is a: <code>boolean</code> type. * @@ -134,7 +148,11 @@ public interface AvroComponentBuilderFactory { } /** - * Authority to use (username and password). + * The authority (host and port) of the endpoint URI, which the + * component sets from the URI. Consumers with the same authority share + * one Avro server, created with the protocol of the first consumer that + * starts. A value set on the component is replaced by the authority of + * the endpoint URI. * * The option is a: <code>java.lang.String</code> type. * @@ -224,7 +242,8 @@ public interface AvroComponentBuilderFactory { } /** - * To use a shared AvroConfiguration to configure options once. + * A shared configuration that every endpoint copies as its starting + * point. The options of the endpoint URI override its values. * * The option is a: * <code>org.apache.camel.component.avro.AvroConfiguration</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 d2d70b515978..9126a75b8f27 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 @@ -297,7 +297,7 @@ public class EndpointHeaderBuilders { } /** * Avro RPC (camel-avro-rpc) - * Produce or consume Apache Avro RPC services. + * Call and expose Apache Avro RPC services over HTTP or Netty. * * Category: rpc * Since: 2.10 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 eb5635126823..65c05e0d59af 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 @@ -1036,7 +1036,7 @@ public class StaticEndpointBuilders { } /** * Avro RPC (camel-avro-rpc) - * Produce or consume Apache Avro RPC services. + * Call and expose Apache Avro RPC services over HTTP or Netty. * * Category: rpc * Since: 2.10 @@ -1045,17 +1045,24 @@ public class StaticEndpointBuilders { * Syntax: <code>avro:transport:host:port/messageName</code> * * Path parameter: transport (required) - * Transport to use, can be either http or netty + * The transport: http or netty. With http, the consumer runs an Avro HTTP + * server on Jetty and the producer sends HTTP POST requests; with netty, + * both use the Avro Netty server and transceiver. * There are 2 enums and the value can be one of: http, netty * * Path parameter: port (required) - * Port number to use + * The port number. The consumer listens on it, and the producer connects to + * it. * * Path parameter: host (required) - * Hostname to use + * The host name or IP address. The consumer binds its server to it, and the + * producer connects to it. * * Path parameter: messageName - * The name of the message to send. + * The name of the protocol message to call or serve. The producer calls it + * unless the CamelAvroMessageName header is set. A consumer with a message + * name serves only that message; a consumer without one serves every + * message that no other consumer on the same host and port serves. * * @param path transport:host:port/messageName * @return the dsl builder @@ -1065,7 +1072,7 @@ public class StaticEndpointBuilders { } /** * Avro RPC (camel-avro-rpc) - * Produce or consume Apache Avro RPC services. + * Call and expose Apache Avro RPC services over HTTP or Netty. * * Category: rpc * Since: 2.10 @@ -1074,17 +1081,24 @@ public class StaticEndpointBuilders { * Syntax: <code>avro:transport:host:port/messageName</code> * * Path parameter: transport (required) - * Transport to use, can be either http or netty + * The transport: http or netty. With http, the consumer runs an Avro HTTP + * server on Jetty and the producer sends HTTP POST requests; with netty, + * both use the Avro Netty server and transceiver. * There are 2 enums and the value can be one of: http, netty * * Path parameter: port (required) - * Port number to use + * The port number. The consumer listens on it, and the producer connects to + * it. * * Path parameter: host (required) - * Hostname to use + * The host name or IP address. The consumer binds its server to it, and the + * producer connects to it. * * Path parameter: messageName - * The name of the message to send. + * The name of the protocol message to call or serve. The producer calls it + * unless the CamelAvroMessageName header is set. A consumer with a message + * name serves only that message; a consumer without one serves every + * message that no other consumer on the same host and port serves. * * @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/AvroEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AvroEndpointBuilderFactory.java index c7dd309d61a9..24f55f4e2425 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AvroEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AvroEndpointBuilderFactory.java @@ -27,7 +27,7 @@ import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; /** - * Produce or consume Apache Avro RPC services. + * Call and expose Apache Avro RPC services over HTTP or Netty. * * Generated by camel build tools - do NOT edit this file! */ @@ -44,7 +44,10 @@ public interface AvroEndpointBuilderFactory { return (AdvancedAvroEndpointConsumerBuilder) this; } /** - * Avro protocol to use. + * The Avro protocol (org.apache.avro.Protocol) that defines the + * messages, such as the PROTOCOL field of a class generated by the Avro + * compiler. Set this option or protocolClassName: the endpoint fails to + * start without a protocol. * * The option is a: <code>org.apache.avro.Protocol</code> type. * @@ -58,7 +61,10 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * Avro protocol to use. + * The Avro protocol (org.apache.avro.Protocol) that defines the + * messages, such as the PROTOCOL field of a class generated by the Avro + * compiler. Set this option or protocolClassName: the endpoint fails to + * start without a protocol. * * The option will be converted to a * <code>org.apache.avro.Protocol</code> type. @@ -73,7 +79,11 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * Avro protocol to use defined by the FQN class name. + * The fully qualified name of the class that defines the protocol. For + * a class generated by the Avro compiler, its static PROTOCOL field is + * used; for any other class or interface, Avro reflection builds the + * protocol and reflectionProtocol is turned on. Ignored when protocol + * is set. * * The option is a: <code>java.lang.String</code> type. * @@ -87,7 +97,8 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * Avro protocol location. + * Not used: the component does not read this option. Use protocol or + * protocolClassName instead. * * The option is a: <code>java.lang.String</code> type. * @@ -101,9 +112,12 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * If the protocol object provided is reflection protocol. Should be - * used only with protocol parameter because for protocolClassName - * protocol type will be auto-detected. + * Whether the protocol is a reflect protocol, built by Avro reflection + * from a Java interface, rather than one from classes generated by the + * Avro compiler. When true, the consumer and producer use the Avro + * reflect responder and requestor. Set it together with protocol: with + * protocolClassName it is turned on for a class without a PROTOCOL + * field. * * The option is a: <code>boolean</code> type. * @@ -118,9 +132,12 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * If the protocol object provided is reflection protocol. Should be - * used only with protocol parameter because for protocolClassName - * protocol type will be auto-detected. + * Whether the protocol is a reflect protocol, built by Avro reflection + * from a Java interface, rather than one from classes generated by the + * Avro compiler. When true, the consumer and producer use the Avro + * reflect responder and requestor. Set it together with protocol: with + * protocolClassName it is turned on for a class without a PROTOCOL + * field. * * The option will be converted to a <code>boolean</code> type. * @@ -135,8 +152,11 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * If true, consumer parameter won't be wrapped into an array. Will fail - * if protocol specifies more than one parameter for the message. + * Whether the consumer sets the message body to the one parameter of + * the called message, instead of an Object array of all parameters. The + * endpoint fails to start if the message, or any message of the + * protocol when messageName is not set, does not have exactly one + * parameter. * * The option is a: <code>boolean</code> type. * @@ -151,8 +171,11 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * If true, consumer parameter won't be wrapped into an array. Will fail - * if protocol specifies more than one parameter for the message. + * Whether the consumer sets the message body to the one parameter of + * the called message, instead of an Object array of all parameters. The + * endpoint fails to start if the message, or any message of the + * protocol when messageName is not set, does not have exactly one + * parameter. * * The option will be converted to a <code>boolean</code> type. * @@ -167,7 +190,11 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * Authority to use (username and password). + * The authority (host and port) of the endpoint URI, which the + * component sets from the URI. Consumers with the same authority share + * one Avro server, created with the protocol of the first consumer that + * starts. A value set on the component is replaced by the authority of + * the endpoint URI. * * The option is a: <code>java.lang.String</code> type. * @@ -339,7 +366,10 @@ public interface AvroEndpointBuilderFactory { } /** - * Avro protocol to use. + * The Avro protocol (org.apache.avro.Protocol) that defines the + * messages, such as the PROTOCOL field of a class generated by the Avro + * compiler. Set this option or protocolClassName: the endpoint fails to + * start without a protocol. * * The option is a: <code>org.apache.avro.Protocol</code> type. * @@ -353,7 +383,10 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * Avro protocol to use. + * The Avro protocol (org.apache.avro.Protocol) that defines the + * messages, such as the PROTOCOL field of a class generated by the Avro + * compiler. Set this option or protocolClassName: the endpoint fails to + * start without a protocol. * * The option will be converted to a * <code>org.apache.avro.Protocol</code> type. @@ -368,7 +401,11 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * Avro protocol to use defined by the FQN class name. + * The fully qualified name of the class that defines the protocol. For + * a class generated by the Avro compiler, its static PROTOCOL field is + * used; for any other class or interface, Avro reflection builds the + * protocol and reflectionProtocol is turned on. Ignored when protocol + * is set. * * The option is a: <code>java.lang.String</code> type. * @@ -382,7 +419,8 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * Avro protocol location. + * Not used: the component does not read this option. Use protocol or + * protocolClassName instead. * * The option is a: <code>java.lang.String</code> type. * @@ -396,9 +434,12 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * If the protocol object provided is reflection protocol. Should be - * used only with protocol parameter because for protocolClassName - * protocol type will be auto-detected. + * Whether the protocol is a reflect protocol, built by Avro reflection + * from a Java interface, rather than one from classes generated by the + * Avro compiler. When true, the consumer and producer use the Avro + * reflect responder and requestor. Set it together with protocol: with + * protocolClassName it is turned on for a class without a PROTOCOL + * field. * * The option is a: <code>boolean</code> type. * @@ -413,9 +454,12 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * If the protocol object provided is reflection protocol. Should be - * used only with protocol parameter because for protocolClassName - * protocol type will be auto-detected. + * Whether the protocol is a reflect protocol, built by Avro reflection + * from a Java interface, rather than one from classes generated by the + * Avro compiler. When true, the consumer and producer use the Avro + * reflect responder and requestor. Set it together with protocol: with + * protocolClassName it is turned on for a class without a PROTOCOL + * field. * * The option will be converted to a <code>boolean</code> type. * @@ -430,8 +474,11 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * If true, consumer parameter won't be wrapped into an array. Will fail - * if protocol specifies more than one parameter for the message. + * Whether the consumer sets the message body to the one parameter of + * the called message, instead of an Object array of all parameters. The + * endpoint fails to start if the message, or any message of the + * protocol when messageName is not set, does not have exactly one + * parameter. * * The option is a: <code>boolean</code> type. * @@ -446,8 +493,11 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * If true, consumer parameter won't be wrapped into an array. Will fail - * if protocol specifies more than one parameter for the message. + * Whether the consumer sets the message body to the one parameter of + * the called message, instead of an Object array of all parameters. The + * endpoint fails to start if the message, or any message of the + * protocol when messageName is not set, does not have exactly one + * parameter. * * The option will be converted to a <code>boolean</code> type. * @@ -462,7 +512,11 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * Authority to use (username and password). + * The authority (host and port) of the endpoint URI, which the + * component sets from the URI. Consumers with the same authority share + * one Avro server, created with the protocol of the first consumer that + * starts. A value set on the component is replaced by the authority of + * the endpoint URI. * * The option is a: <code>java.lang.String</code> type. * @@ -563,7 +617,10 @@ public interface AvroEndpointBuilderFactory { } /** - * Avro protocol to use. + * The Avro protocol (org.apache.avro.Protocol) that defines the + * messages, such as the PROTOCOL field of a class generated by the Avro + * compiler. Set this option or protocolClassName: the endpoint fails to + * start without a protocol. * * The option is a: <code>org.apache.avro.Protocol</code> type. * @@ -577,7 +634,10 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * Avro protocol to use. + * The Avro protocol (org.apache.avro.Protocol) that defines the + * messages, such as the PROTOCOL field of a class generated by the Avro + * compiler. Set this option or protocolClassName: the endpoint fails to + * start without a protocol. * * The option will be converted to a * <code>org.apache.avro.Protocol</code> type. @@ -592,7 +652,11 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * Avro protocol to use defined by the FQN class name. + * The fully qualified name of the class that defines the protocol. For + * a class generated by the Avro compiler, its static PROTOCOL field is + * used; for any other class or interface, Avro reflection builds the + * protocol and reflectionProtocol is turned on. Ignored when protocol + * is set. * * The option is a: <code>java.lang.String</code> type. * @@ -606,7 +670,8 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * Avro protocol location. + * Not used: the component does not read this option. Use protocol or + * protocolClassName instead. * * The option is a: <code>java.lang.String</code> type. * @@ -620,9 +685,12 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * If the protocol object provided is reflection protocol. Should be - * used only with protocol parameter because for protocolClassName - * protocol type will be auto-detected. + * Whether the protocol is a reflect protocol, built by Avro reflection + * from a Java interface, rather than one from classes generated by the + * Avro compiler. When true, the consumer and producer use the Avro + * reflect responder and requestor. Set it together with protocol: with + * protocolClassName it is turned on for a class without a PROTOCOL + * field. * * The option is a: <code>boolean</code> type. * @@ -637,9 +705,12 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * If the protocol object provided is reflection protocol. Should be - * used only with protocol parameter because for protocolClassName - * protocol type will be auto-detected. + * Whether the protocol is a reflect protocol, built by Avro reflection + * from a Java interface, rather than one from classes generated by the + * Avro compiler. When true, the consumer and producer use the Avro + * reflect responder and requestor. Set it together with protocol: with + * protocolClassName it is turned on for a class without a PROTOCOL + * field. * * The option will be converted to a <code>boolean</code> type. * @@ -654,8 +725,11 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * If true, consumer parameter won't be wrapped into an array. Will fail - * if protocol specifies more than one parameter for the message. + * Whether the consumer sets the message body to the one parameter of + * the called message, instead of an Object array of all parameters. The + * endpoint fails to start if the message, or any message of the + * protocol when messageName is not set, does not have exactly one + * parameter. * * The option is a: <code>boolean</code> type. * @@ -670,8 +744,11 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * If true, consumer parameter won't be wrapped into an array. Will fail - * if protocol specifies more than one parameter for the message. + * Whether the consumer sets the message body to the one parameter of + * the called message, instead of an Object array of all parameters. The + * endpoint fails to start if the message, or any message of the + * protocol when messageName is not set, does not have exactly one + * parameter. * * The option will be converted to a <code>boolean</code> type. * @@ -686,7 +763,11 @@ public interface AvroEndpointBuilderFactory { return this; } /** - * Authority to use (username and password). + * The authority (host and port) of the endpoint URI, which the + * component sets from the URI. Consumers with the same authority share + * one Avro server, created with the protocol of the first consumer that + * starts. A value set on the component is replaced by the authority of + * the endpoint URI. * * The option is a: <code>java.lang.String</code> type. * @@ -735,7 +816,7 @@ public interface AvroEndpointBuilderFactory { public interface AvroBuilders { /** * Avro RPC (camel-avro-rpc) - * Produce or consume Apache Avro RPC services. + * Call and expose Apache Avro RPC services over HTTP or Netty. * * Category: rpc * Since: 2.10 @@ -748,7 +829,7 @@ public interface AvroEndpointBuilderFactory { } /** * Avro RPC (camel-avro-rpc) - * Produce or consume Apache Avro RPC services. + * Call and expose Apache Avro RPC services over HTTP or Netty. * * Category: rpc * Since: 2.10 @@ -757,17 +838,25 @@ public interface AvroEndpointBuilderFactory { * Syntax: <code>avro:transport:host:port/messageName</code> * * Path parameter: transport (required) - * Transport to use, can be either http or netty + * The transport: http or netty. With http, the consumer runs an Avro + * HTTP server on Jetty and the producer sends HTTP POST requests; with + * netty, both use the Avro Netty server and transceiver. * There are 2 enums and the value can be one of: http, netty * * Path parameter: port (required) - * Port number to use + * The port number. The consumer listens on it, and the producer + * connects to it. * * Path parameter: host (required) - * Hostname to use + * The host name or IP address. The consumer binds its server to it, and + * the producer connects to it. * * Path parameter: messageName - * The name of the message to send. + * The name of the protocol message to call or serve. The producer calls + * it unless the CamelAvroMessageName header is set. A consumer with a + * message name serves only that message; a consumer without one serves + * every message that no other consumer on the same host and port + * serves. * * @param path transport:host:port/messageName * @return the dsl builder @@ -777,7 +866,7 @@ public interface AvroEndpointBuilderFactory { } /** * Avro RPC (camel-avro-rpc) - * Produce or consume Apache Avro RPC services. + * Call and expose Apache Avro RPC services over HTTP or Netty. * * Category: rpc * Since: 2.10 @@ -786,17 +875,25 @@ public interface AvroEndpointBuilderFactory { * Syntax: <code>avro:transport:host:port/messageName</code> * * Path parameter: transport (required) - * Transport to use, can be either http or netty + * The transport: http or netty. With http, the consumer runs an Avro + * HTTP server on Jetty and the producer sends HTTP POST requests; with + * netty, both use the Avro Netty server and transceiver. * There are 2 enums and the value can be one of: http, netty * * Path parameter: port (required) - * Port number to use + * The port number. The consumer listens on it, and the producer + * connects to it. * * Path parameter: host (required) - * Hostname to use + * The host name or IP address. The consumer binds its server to it, and + * the producer connects to it. * * Path parameter: messageName - * The name of the message to send. + * The name of the protocol message to call or serve. The producer calls + * it unless the CamelAvroMessageName header is set. A consumer with a + * message name serves only that message; a consumer without one serves + * every message that no other consumer on the same host and port + * serves. * * @param componentName to use a custom component name for the endpoint * instead of the default name @@ -819,8 +916,9 @@ public interface AvroEndpointBuilderFactory { public static final AvroHeaderNameBuilder INSTANCE = new AvroHeaderNameBuilder(); /** - * The name of the message to send. In consumer overrides message name - * from URI (if any). + * The name of the protocol message to call. The producer reads it, and + * it takes precedence over the messageName of the endpoint. The + * consumer sets it to the name of the called message. * * The option is a: {@code String} type. * diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md index 6190776db1eb..ac40bc4924f1 100644 --- a/tasks/component-descriptions.md +++ b/tasks/component-descriptions.md @@ -73,7 +73,7 @@ or removes its row. | camel-asterisk | asterisk | yes | | camel-atmosphere-websocket | atmosphere-websocket | | | camel-atom | atom | | -| camel-avro-rpc | avro | | +| camel-avro-rpc | avro | yes | | camel-aws-bedrock | aws-bedrock, aws-bedrock-agent, aws-bedrock-agent-runtime | yes | | camel-aws-cloudtrail | aws-cloudtrail | yes | | camel-aws-config | aws-config | |
