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 2b83a6b6242b3d255597fee379d4421e5ffa9d27 Author: Claus Ibsen <[email protected]> AuthorDate: Fri Nov 27 11:02:56 2026 +0100 CAMEL-23832: camel-webhook - improve the component and option descriptions This commit rewrites the component description, the component option configuration, the path option endpointUri and the five webhook options that the component and the endpoint share (13 description fields in the JSON). The new texts say how the path and the external URL of the webhook are made, which REST component is picked when webhookComponentName is not set, and what auto registration does. The old webhookExternalUrl text did not say that the URL from the REST configuration has the host 0.0.0.0 by default. Documentation only, no behavior change. The component JSON, the catalog copy, the doc page header and the DSL are regenerated. camel-webhook 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/webhook.json | 26 ++++---- .../camel/catalog/docs/webhook-component.adoc | 2 +- .../apache/camel/component/webhook/webhook.json | 26 ++++---- .../src/main/docs/webhook-component.adoc | 2 +- .../camel/component/webhook/WebhookComponent.java | 7 +-- .../component/webhook/WebhookConfiguration.java | 52 ++++++++-------- .../camel/component/webhook/WebhookEndpoint.java | 2 +- .../component/ComponentsBuilderFactory.java | 4 +- .../dsl/WebhookComponentBuilderFactory.java | 53 +++++++++++----- .../builder/endpoint/StaticEndpointBuilders.java | 18 ++++-- .../dsl/WebhookEndpointBuilderFactory.java | 72 ++++++++++++++++------ tasks/component-descriptions.md | 2 +- 12 files changed, 164 insertions(+), 102 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/webhook.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/webhook.json index f5441a8721ae..8d37b4b53918 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/webhook.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/webhook.json @@ -3,7 +3,7 @@ "kind": "component", "name": "webhook", "title": "Webhook", - "description": "Expose webhook endpoints to receive push notifications for other Camel components.", + "description": "Receive the push notifications of a webhook provider over HTTP for a Camel component that supports webhooks.", "deprecated": false, "firstVersion": "3.0.0", "label": "cloud", @@ -26,25 +26,25 @@ }, "componentProperties": { "bridgeErrorHandler": { "index": 0, "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 [...] - "webhookAutoRegister": { "index": 1, "kind": "property", "displayName": "Webhook Auto Register", "group": "consumer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "Automatically register the webhook at startup and unregister it on shutdown." }, - "webhookBasePath": { "index": 2, "kind": "property", "displayName": "Webhook Base Path", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The first (base) path element where the webhook will be exposed. It's a good practice to set it to a r [...] - "webhookComponentName": { "index": 3, "kind": "property", "displayName": "Webhook Component Name", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The Camel Rest component to use for the REST transport, such as netty-http." }, - "webhookExternalUrl": { "index": 4, "kind": "property", "displayName": "Webhook External Url", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The URL of the current service as seen by the webhook provider" }, - "webhookPath": { "index": 5, "kind": "property", "displayName": "Webhook Path", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The path where the webhook endpoint will be exposed (relative to basePath, if any)" }, + "webhookAutoRegister": { "index": 1, "kind": "property", "displayName": "Webhook Auto Register", "group": "consumer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "Whether the delegate component registers the URL of the webhook at the provider [...] + "webhookBasePath": { "index": 2, "kind": "property", "displayName": "Webhook Base Path", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "A path put in front of webhookPath in the path of the webhook, for example a random value that is hard [...] + "webhookComponentName": { "index": 3, "kind": "property", "displayName": "Webhook Component Name", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The name of the REST component that exposes the HTTP endpoint of the webhook, such as platfo [...] + "webhookExternalUrl": { "index": 4, "kind": "property", "displayName": "Webhook External Url", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The URL at which the webhook provider reaches this service, for example https:\/\/camel.example. [...] + "webhookPath": { "index": 5, "kind": "property", "displayName": "Webhook Path", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The path of the webhook, after webhookBasePath. A leading slash is added when missing. If not set, the path is [...] "autowiredEnabled": { "index": 6, "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": 7, "kind": "property", "displayName": "Configuration", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.webhook.WebhookConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "Set the default configuration for the webhook meta-component." } + "configuration": { "index": 7, "kind": "property", "displayName": "Configuration", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.webhook.WebhookConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The default webhook options of the endpoints that the component creates. Each endpoint starts with a copy of it, which the options of the endpoint then change." } }, "bodyTypes": { "consumerOut": { "carriers": [ "unknown" ], "description": "The body the webhook handler of the delegate component (endpointUri) makes of the HTTP request: the same body as its polling consumer, such as an IncomingMessage (or another update) for Telegram, an Event for ClickUp, or the JSON as a String for WhatsApp" }, "consumerReply": { "carriers": [ "any" ], "description": "The delegate component sets the HTTP response body itself after the route: Telegram and ClickUp reply with an empty body, WhatsApp with the request content, whatever body the route ends with" } }, "properties": { - "endpointUri": { "index": 0, "kind": "path", "displayName": "Endpoint Uri", "group": "consumer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The delegate uri. Must belong to a component that supports webhooks." }, - "webhookAutoRegister": { "index": 1, "kind": "parameter", "displayName": "Webhook Auto Register", "group": "consumer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "Automatically register the webhook at startup and unregister it on shutdown." }, - "webhookBasePath": { "index": 2, "kind": "parameter", "displayName": "Webhook Base Path", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The first (base) path element where the webhook will be exposed. It's a good practice to set it to a [...] - "webhookComponentName": { "index": 3, "kind": "parameter", "displayName": "Webhook Component Name", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The Camel Rest component to use for the REST transport, such as netty-http." }, - "webhookExternalUrl": { "index": 4, "kind": "parameter", "displayName": "Webhook External Url", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The URL of the current service as seen by the webhook provider" }, - "webhookPath": { "index": 5, "kind": "parameter", "displayName": "Webhook Path", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The path where the webhook endpoint will be exposed (relative to basePath, if any)" }, + "endpointUri": { "index": 0, "kind": "path", "displayName": "Endpoint Uri", "group": "consumer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The URI of the delegate endpoint, of a component that supports webhooks, for example telegram:bots, clickup:workspac [...] + "webhookAutoRegister": { "index": 1, "kind": "parameter", "displayName": "Webhook Auto Register", "group": "consumer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "Whether the delegate component registers the URL of the webhook at the provider [...] + "webhookBasePath": { "index": 2, "kind": "parameter", "displayName": "Webhook Base Path", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "A path put in front of webhookPath in the path of the webhook, for example a random value that is har [...] + "webhookComponentName": { "index": 3, "kind": "parameter", "displayName": "Webhook Component Name", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The name of the REST component that exposes the HTTP endpoint of the webhook, such as platf [...] + "webhookExternalUrl": { "index": 4, "kind": "parameter", "displayName": "Webhook External Url", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The URL at which the webhook provider reaches this service, for example https:\/\/camel.example [...] + "webhookPath": { "index": 5, "kind": "parameter", "displayName": "Webhook Path", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The path of the webhook, after webhookBasePath. A leading slash is added when missing. If not set, the path is [...] "bridgeErrorHandler": { "index": 6, "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": 7, "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": 8, "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/webhook-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/webhook-component.adoc index dfa1ccd5a67d..e5350baae89f 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/webhook-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/webhook-component.adoc @@ -2,7 +2,7 @@ :doctitle: Webhook :shortname: webhook :artifactid: camel-webhook -:description: Expose webhook endpoints to receive push notifications for other Camel components. +:description: Receive the push notifications of a webhook provider over HTTP for a Camel component that supports webhooks. :since: 3.0 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-webhook/src/generated/resources/META-INF/org/apache/camel/component/webhook/webhook.json b/components/camel-webhook/src/generated/resources/META-INF/org/apache/camel/component/webhook/webhook.json index f5441a8721ae..8d37b4b53918 100644 --- a/components/camel-webhook/src/generated/resources/META-INF/org/apache/camel/component/webhook/webhook.json +++ b/components/camel-webhook/src/generated/resources/META-INF/org/apache/camel/component/webhook/webhook.json @@ -3,7 +3,7 @@ "kind": "component", "name": "webhook", "title": "Webhook", - "description": "Expose webhook endpoints to receive push notifications for other Camel components.", + "description": "Receive the push notifications of a webhook provider over HTTP for a Camel component that supports webhooks.", "deprecated": false, "firstVersion": "3.0.0", "label": "cloud", @@ -26,25 +26,25 @@ }, "componentProperties": { "bridgeErrorHandler": { "index": 0, "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 [...] - "webhookAutoRegister": { "index": 1, "kind": "property", "displayName": "Webhook Auto Register", "group": "consumer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "Automatically register the webhook at startup and unregister it on shutdown." }, - "webhookBasePath": { "index": 2, "kind": "property", "displayName": "Webhook Base Path", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The first (base) path element where the webhook will be exposed. It's a good practice to set it to a r [...] - "webhookComponentName": { "index": 3, "kind": "property", "displayName": "Webhook Component Name", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The Camel Rest component to use for the REST transport, such as netty-http." }, - "webhookExternalUrl": { "index": 4, "kind": "property", "displayName": "Webhook External Url", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The URL of the current service as seen by the webhook provider" }, - "webhookPath": { "index": 5, "kind": "property", "displayName": "Webhook Path", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The path where the webhook endpoint will be exposed (relative to basePath, if any)" }, + "webhookAutoRegister": { "index": 1, "kind": "property", "displayName": "Webhook Auto Register", "group": "consumer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "Whether the delegate component registers the URL of the webhook at the provider [...] + "webhookBasePath": { "index": 2, "kind": "property", "displayName": "Webhook Base Path", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "A path put in front of webhookPath in the path of the webhook, for example a random value that is hard [...] + "webhookComponentName": { "index": 3, "kind": "property", "displayName": "Webhook Component Name", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The name of the REST component that exposes the HTTP endpoint of the webhook, such as platfo [...] + "webhookExternalUrl": { "index": 4, "kind": "property", "displayName": "Webhook External Url", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The URL at which the webhook provider reaches this service, for example https:\/\/camel.example. [...] + "webhookPath": { "index": 5, "kind": "property", "displayName": "Webhook Path", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The path of the webhook, after webhookBasePath. A leading slash is added when missing. If not set, the path is [...] "autowiredEnabled": { "index": 6, "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": 7, "kind": "property", "displayName": "Configuration", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.webhook.WebhookConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "Set the default configuration for the webhook meta-component." } + "configuration": { "index": 7, "kind": "property", "displayName": "Configuration", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.webhook.WebhookConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The default webhook options of the endpoints that the component creates. Each endpoint starts with a copy of it, which the options of the endpoint then change." } }, "bodyTypes": { "consumerOut": { "carriers": [ "unknown" ], "description": "The body the webhook handler of the delegate component (endpointUri) makes of the HTTP request: the same body as its polling consumer, such as an IncomingMessage (or another update) for Telegram, an Event for ClickUp, or the JSON as a String for WhatsApp" }, "consumerReply": { "carriers": [ "any" ], "description": "The delegate component sets the HTTP response body itself after the route: Telegram and ClickUp reply with an empty body, WhatsApp with the request content, whatever body the route ends with" } }, "properties": { - "endpointUri": { "index": 0, "kind": "path", "displayName": "Endpoint Uri", "group": "consumer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The delegate uri. Must belong to a component that supports webhooks." }, - "webhookAutoRegister": { "index": 1, "kind": "parameter", "displayName": "Webhook Auto Register", "group": "consumer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "Automatically register the webhook at startup and unregister it on shutdown." }, - "webhookBasePath": { "index": 2, "kind": "parameter", "displayName": "Webhook Base Path", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The first (base) path element where the webhook will be exposed. It's a good practice to set it to a [...] - "webhookComponentName": { "index": 3, "kind": "parameter", "displayName": "Webhook Component Name", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The Camel Rest component to use for the REST transport, such as netty-http." }, - "webhookExternalUrl": { "index": 4, "kind": "parameter", "displayName": "Webhook External Url", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The URL of the current service as seen by the webhook provider" }, - "webhookPath": { "index": 5, "kind": "parameter", "displayName": "Webhook Path", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The path where the webhook endpoint will be exposed (relative to basePath, if any)" }, + "endpointUri": { "index": 0, "kind": "path", "displayName": "Endpoint Uri", "group": "consumer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The URI of the delegate endpoint, of a component that supports webhooks, for example telegram:bots, clickup:workspac [...] + "webhookAutoRegister": { "index": 1, "kind": "parameter", "displayName": "Webhook Auto Register", "group": "consumer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "Whether the delegate component registers the URL of the webhook at the provider [...] + "webhookBasePath": { "index": 2, "kind": "parameter", "displayName": "Webhook Base Path", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "A path put in front of webhookPath in the path of the webhook, for example a random value that is har [...] + "webhookComponentName": { "index": 3, "kind": "parameter", "displayName": "Webhook Component Name", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The name of the REST component that exposes the HTTP endpoint of the webhook, such as platf [...] + "webhookExternalUrl": { "index": 4, "kind": "parameter", "displayName": "Webhook External Url", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The URL at which the webhook provider reaches this service, for example https:\/\/camel.example [...] + "webhookPath": { "index": 5, "kind": "parameter", "displayName": "Webhook Path", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.webhook.WebhookConfiguration", "configurationField": "configuration", "description": "The path of the webhook, after webhookBasePath. A leading slash is added when missing. If not set, the path is [...] "bridgeErrorHandler": { "index": 6, "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": 7, "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": 8, "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-webhook/src/main/docs/webhook-component.adoc b/components/camel-webhook/src/main/docs/webhook-component.adoc index dfa1ccd5a67d..e5350baae89f 100644 --- a/components/camel-webhook/src/main/docs/webhook-component.adoc +++ b/components/camel-webhook/src/main/docs/webhook-component.adoc @@ -2,7 +2,7 @@ :doctitle: Webhook :shortname: webhook :artifactid: camel-webhook -:description: Expose webhook endpoints to receive push notifications for other Camel components. +:description: Receive the push notifications of a webhook provider over HTTP for a Camel component that supports webhooks. :since: 3.0 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-webhook/src/main/java/org/apache/camel/component/webhook/WebhookComponent.java b/components/camel-webhook/src/main/java/org/apache/camel/component/webhook/WebhookComponent.java index da541e69b347..20a0b1010fa0 100644 --- a/components/camel-webhook/src/main/java/org/apache/camel/component/webhook/WebhookComponent.java +++ b/components/camel-webhook/src/main/java/org/apache/camel/component/webhook/WebhookComponent.java @@ -35,7 +35,9 @@ import org.apache.camel.util.URISupport; @Component("webhook") public class WebhookComponent extends DefaultComponent { - @Metadata(label = "advanced") + @Metadata(label = "advanced", + description = "The default webhook options of the endpoints that the component creates. Each endpoint starts" + + " with a copy of it, which the options of the endpoint then change.") private WebhookConfiguration configuration = new WebhookConfiguration(); public WebhookComponent() { @@ -85,9 +87,6 @@ public class WebhookComponent extends DefaultComponent { return this.configuration; } - /** - * Set the default configuration for the webhook meta-component. - */ public void setConfiguration(WebhookConfiguration configuration) { this.configuration = configuration; } diff --git a/components/camel-webhook/src/main/java/org/apache/camel/component/webhook/WebhookConfiguration.java b/components/camel-webhook/src/main/java/org/apache/camel/component/webhook/WebhookConfiguration.java index 584be4494c28..4747946f0f3a 100644 --- a/components/camel-webhook/src/main/java/org/apache/camel/component/webhook/WebhookConfiguration.java +++ b/components/camel-webhook/src/main/java/org/apache/camel/component/webhook/WebhookConfiguration.java @@ -43,23 +43,44 @@ public class WebhookConfiguration implements Cloneable { * Note: all properties start with the 'webhook' prefix to avoid collision with the delegate endpoint. */ - @UriPath + @UriPath(description = "The URI of the delegate endpoint, of a component that supports webhooks, for example" + + " telegram:bots, clickup:workspaceId or whatsapp:phoneNumberId. The query parameters of the" + + " webhook endpoint that are not webhook options are passed on to the delegate endpoint.") @Metadata(required = true) private String endpointUri; - @UriParam + @UriParam(description = "The name of the REST component that exposes the HTTP endpoint of the webhook, such as" + + " platform-http or netty-http. It names a bean in the registry or a component, which must be" + + " a RestConsumerFactory. If not set, a component of the CamelContext that is a" + + " RestConsumerFactory is used, otherwise the only RestConsumerFactory bean in the registry," + + " otherwise the only one of coap, netty-http, jetty, servlet and undertow on the classpath.") private String webhookComponentName; - @UriParam + @UriParam(description = "The URL at which the webhook provider reaches this service, for example" + + " https://camel.example.com, without a trailing slash. The delegate component registers this" + + " URL followed by the path of the webhook (the context path of the REST configuration," + + " webhookBasePath and webhookPath) at the provider. If not set, the URL is made from the" + + " scheme, host and port of the REST configuration. When that has no host, its hostNameResolver" + + " picks one, which is 0.0.0.0 by default and which the provider cannot reach.") private String webhookExternalUrl; - @UriParam + @UriParam(description = "A path put in front of webhookPath in the path of the webhook, for example a random value" + + " that is hard to guess, so that only the provider knows the URL. A leading slash is added" + + " when missing. If not set, the path of the webhook is webhookPath alone.") private String webhookBasePath; - @UriParam + @UriParam(description = "The path of the webhook, after webhookBasePath. A leading slash is added when missing. If not" + + " set, the path is the SHA-256 hash of the delegate endpoint URI in URL-safe Base64, which" + + " stays the same across restarts. The WhatsApp component replaces it with its own webhookPath" + + " option.") private String webhookPath; - @UriParam(defaultValue = "true") + @UriParam(defaultValue = "true", + description = "Whether the delegate component registers the URL of the webhook at the provider when the" + + " endpoint starts, and unregisters it when the endpoint stops, for example with the setWebhook" + + " and deleteWebhook calls of the Telegram Bot API. Set it to false when the webhook is" + + " registered in another way, for example with a WebhookRoutePolicyFactory, which requires" + + " false. The WhatsApp component does not register the webhook.") private boolean webhookAutoRegister = true; public WebhookConfiguration() { @@ -197,16 +218,10 @@ public class WebhookConfiguration implements Cloneable { return endpointUri; } - /** - * The delegate uri. Must belong to a component that supports webhooks. - */ public void setEndpointUri(String endpointUri) { this.endpointUri = endpointUri; } - /** - * The Camel Rest component to use for the REST transport, such as netty-http. - */ public void setWebhookComponentName(String webhookComponentName) { this.webhookComponentName = webhookComponentName; } @@ -215,9 +230,6 @@ public class WebhookConfiguration implements Cloneable { return webhookExternalUrl; } - /** - * The URL of the current service as seen by the webhook provider - */ public void setWebhookExternalUrl(String webhookExternalUrl) { this.webhookExternalUrl = webhookExternalUrl; } @@ -226,10 +238,6 @@ public class WebhookConfiguration implements Cloneable { return webhookBasePath; } - /** - * The first (base) path element where the webhook will be exposed. It's a good practice to set it to a random - * string, so that it cannot be guessed by unauthorized parties. - */ public void setWebhookBasePath(String webhookBasePath) { this.webhookBasePath = webhookBasePath; } @@ -238,9 +246,6 @@ public class WebhookConfiguration implements Cloneable { return webhookPath; } - /** - * The path where the webhook endpoint will be exposed (relative to basePath, if any) - */ public void setWebhookPath(String webhookPath) { this.webhookPath = webhookPath; } @@ -249,9 +254,6 @@ public class WebhookConfiguration implements Cloneable { return webhookAutoRegister; } - /** - * Automatically register the webhook at startup and unregister it on shutdown. - */ public void setWebhookAutoRegister(boolean webhookAutoRegister) { this.webhookAutoRegister = webhookAutoRegister; } diff --git a/components/camel-webhook/src/main/java/org/apache/camel/component/webhook/WebhookEndpoint.java b/components/camel-webhook/src/main/java/org/apache/camel/component/webhook/WebhookEndpoint.java index 7ea47abbc6ab..3b9ed5b5a037 100644 --- a/components/camel-webhook/src/main/java/org/apache/camel/component/webhook/WebhookEndpoint.java +++ b/components/camel-webhook/src/main/java/org/apache/camel/component/webhook/WebhookEndpoint.java @@ -37,7 +37,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** - * Expose webhook endpoints to receive push notifications for other Camel components. + * Receive the push notifications of a webhook provider over HTTP for a Camel component that supports webhooks. */ @UriEndpoint(firstVersion = "3.0.0", scheme = "webhook", title = "Webhook", syntax = "webhook:endpointUri", consumerOnly = true, category = { Category.CLOUD }, lenientProperties = true) 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 e1c084b97fa3..2469679fc916 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 @@ -5487,8 +5487,8 @@ public interface ComponentsBuilderFactory { } /** * Webhook (camel-webhook) - * Expose webhook endpoints to receive push notifications for other Camel - * components. + * Receive the push notifications of a webhook provider over HTTP for a + * Camel component that supports webhooks. * * Category: cloud * Since: 3.0 diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/WebhookComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/WebhookComponentBuilderFactory.java index c8df0899fe21..363de4043034 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/WebhookComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/WebhookComponentBuilderFactory.java @@ -24,8 +24,8 @@ import org.apache.camel.builder.component.ComponentBuilder; import org.apache.camel.component.webhook.WebhookComponent; /** - * Expose webhook endpoints to receive push notifications for other Camel - * components. + * Receive the push notifications of a webhook provider over HTTP for a Camel + * component that supports webhooks. * * Generated by camel build tools - do NOT edit this file! */ @@ -34,8 +34,8 @@ public interface WebhookComponentBuilderFactory { /** * Webhook (camel-webhook) - * Expose webhook endpoints to receive push notifications for other Camel - * components. + * Receive the push notifications of a webhook provider over HTTP for a + * Camel component that supports webhooks. * * Category: cloud * Since: 3.0 @@ -82,8 +82,13 @@ public interface WebhookComponentBuilderFactory { /** - * Automatically register the webhook at startup and unregister it on - * shutdown. + * Whether the delegate component registers the URL of the webhook at + * the provider when the endpoint starts, and unregisters it when the + * endpoint stops, for example with the setWebhook and deleteWebhook + * calls of the Telegram Bot API. Set it to false when the webhook is + * registered in another way, for example with a + * WebhookRoutePolicyFactory, which requires false. The WhatsApp + * component does not register the webhook. * * The option is a: <code>boolean</code> type. * @@ -99,9 +104,10 @@ public interface WebhookComponentBuilderFactory { } /** - * The first (base) path element where the webhook will be exposed. It's - * a good practice to set it to a random string, so that it cannot be - * guessed by unauthorized parties. + * A path put in front of webhookPath in the path of the webhook, for + * example a random value that is hard to guess, so that only the + * provider knows the URL. A leading slash is added when missing. If not + * set, the path of the webhook is webhookPath alone. * * The option is a: <code>java.lang.String</code> type. * @@ -116,8 +122,13 @@ public interface WebhookComponentBuilderFactory { } /** - * The Camel Rest component to use for the REST transport, such as - * netty-http. + * The name of the REST component that exposes the HTTP endpoint of the + * webhook, such as platform-http or netty-http. It names a bean in the + * registry or a component, which must be a RestConsumerFactory. If not + * set, a component of the CamelContext that is a RestConsumerFactory is + * used, otherwise the only RestConsumerFactory bean in the registry, + * otherwise the only one of coap, netty-http, jetty, servlet and + * undertow on the classpath. * * The option is a: <code>java.lang.String</code> type. * @@ -132,7 +143,14 @@ public interface WebhookComponentBuilderFactory { } /** - * The URL of the current service as seen by the webhook provider. + * The URL at which the webhook provider reaches this service, for + * example https://camel.example.com, without a trailing slash. The + * delegate component registers this URL followed by the path of the + * webhook (the context path of the REST configuration, webhookBasePath + * and webhookPath) at the provider. If not set, the URL is made from + * the scheme, host and port of the REST configuration. When that has no + * host, its hostNameResolver picks one, which is 0.0.0.0 by default and + * which the provider cannot reach. * * The option is a: <code>java.lang.String</code> type. * @@ -147,8 +165,11 @@ public interface WebhookComponentBuilderFactory { } /** - * The path where the webhook endpoint will be exposed (relative to - * basePath, if any). + * The path of the webhook, after webhookBasePath. A leading slash is + * added when missing. If not set, the path is the SHA-256 hash of the + * delegate endpoint URI in URL-safe Base64, which stays the same across + * restarts. The WhatsApp component replaces it with its own webhookPath + * option. * * The option is a: <code>java.lang.String</code> type. * @@ -185,7 +206,9 @@ public interface WebhookComponentBuilderFactory { } /** - * Set the default configuration for the webhook meta-component. + * The default webhook options of the endpoints that the component + * creates. Each endpoint starts with a copy of it, which the options of + * the endpoint then change. * * The option is a: * <code>org.apache.camel.component.webhook.WebhookConfiguration</code> type. 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 5c27ada27b5f..af2f504ddcdf 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 @@ -18677,8 +18677,8 @@ public class StaticEndpointBuilders { } /** * Webhook (camel-webhook) - * Expose webhook endpoints to receive push notifications for other Camel - * components. + * Receive the push notifications of a webhook provider over HTTP for a + * Camel component that supports webhooks. * * Category: cloud * Since: 3.0 @@ -18687,7 +18687,10 @@ public class StaticEndpointBuilders { * Syntax: <code>webhook:endpointUri</code> * * Path parameter: endpointUri (required) - * The delegate uri. Must belong to a component that supports webhooks. + * The URI of the delegate endpoint, of a component that supports webhooks, + * for example telegram:bots, clickup:workspaceId or whatsapp:phoneNumberId. + * The query parameters of the webhook endpoint that are not webhook options + * are passed on to the delegate endpoint. * * @param path endpointUri * @return the dsl builder @@ -18697,8 +18700,8 @@ public class StaticEndpointBuilders { } /** * Webhook (camel-webhook) - * Expose webhook endpoints to receive push notifications for other Camel - * components. + * Receive the push notifications of a webhook provider over HTTP for a + * Camel component that supports webhooks. * * Category: cloud * Since: 3.0 @@ -18707,7 +18710,10 @@ public class StaticEndpointBuilders { * Syntax: <code>webhook:endpointUri</code> * * Path parameter: endpointUri (required) - * The delegate uri. Must belong to a component that supports webhooks. + * The URI of the delegate endpoint, of a component that supports webhooks, + * for example telegram:bots, clickup:workspaceId or whatsapp:phoneNumberId. + * The query parameters of the webhook endpoint that are not webhook options + * are passed on to the delegate endpoint. * * @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/WebhookEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WebhookEndpointBuilderFactory.java index e32271a8546b..b5b8c09e699c 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WebhookEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WebhookEndpointBuilderFactory.java @@ -27,8 +27,8 @@ import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; /** - * Expose webhook endpoints to receive push notifications for other Camel - * components. + * Receive the push notifications of a webhook provider over HTTP for a Camel + * component that supports webhooks. * * Generated by camel build tools - do NOT edit this file! */ @@ -46,8 +46,13 @@ public interface WebhookEndpointBuilderFactory { } /** - * Automatically register the webhook at startup and unregister it on - * shutdown. + * Whether the delegate component registers the URL of the webhook at + * the provider when the endpoint starts, and unregisters it when the + * endpoint stops, for example with the setWebhook and deleteWebhook + * calls of the Telegram Bot API. Set it to false when the webhook is + * registered in another way, for example with a + * WebhookRoutePolicyFactory, which requires false. The WhatsApp + * component does not register the webhook. * * The option is a: <code>boolean</code> type. * @@ -62,8 +67,13 @@ public interface WebhookEndpointBuilderFactory { return this; } /** - * Automatically register the webhook at startup and unregister it on - * shutdown. + * Whether the delegate component registers the URL of the webhook at + * the provider when the endpoint starts, and unregisters it when the + * endpoint stops, for example with the setWebhook and deleteWebhook + * calls of the Telegram Bot API. Set it to false when the webhook is + * registered in another way, for example with a + * WebhookRoutePolicyFactory, which requires false. The WhatsApp + * component does not register the webhook. * * The option will be converted to a <code>boolean</code> type. * @@ -78,9 +88,10 @@ public interface WebhookEndpointBuilderFactory { return this; } /** - * The first (base) path element where the webhook will be exposed. It's - * a good practice to set it to a random string, so that it cannot be - * guessed by unauthorized parties. + * A path put in front of webhookPath in the path of the webhook, for + * example a random value that is hard to guess, so that only the + * provider knows the URL. A leading slash is added when missing. If not + * set, the path of the webhook is webhookPath alone. * * The option is a: <code>java.lang.String</code> type. * @@ -94,8 +105,13 @@ public interface WebhookEndpointBuilderFactory { return this; } /** - * The Camel Rest component to use for the REST transport, such as - * netty-http. + * The name of the REST component that exposes the HTTP endpoint of the + * webhook, such as platform-http or netty-http. It names a bean in the + * registry or a component, which must be a RestConsumerFactory. If not + * set, a component of the CamelContext that is a RestConsumerFactory is + * used, otherwise the only RestConsumerFactory bean in the registry, + * otherwise the only one of coap, netty-http, jetty, servlet and + * undertow on the classpath. * * The option is a: <code>java.lang.String</code> type. * @@ -109,7 +125,14 @@ public interface WebhookEndpointBuilderFactory { return this; } /** - * The URL of the current service as seen by the webhook provider. + * The URL at which the webhook provider reaches this service, for + * example https://camel.example.com, without a trailing slash. The + * delegate component registers this URL followed by the path of the + * webhook (the context path of the REST configuration, webhookBasePath + * and webhookPath) at the provider. If not set, the URL is made from + * the scheme, host and port of the REST configuration. When that has no + * host, its hostNameResolver picks one, which is 0.0.0.0 by default and + * which the provider cannot reach. * * The option is a: <code>java.lang.String</code> type. * @@ -123,8 +146,11 @@ public interface WebhookEndpointBuilderFactory { return this; } /** - * The path where the webhook endpoint will be exposed (relative to - * basePath, if any). + * The path of the webhook, after webhookBasePath. A leading slash is + * added when missing. If not set, the path is the SHA-256 hash of the + * delegate endpoint URI in URL-safe Base64, which stays the same across + * restarts. The WhatsApp component replaces it with its own webhookPath + * option. * * The option is a: <code>java.lang.String</code> type. * @@ -271,8 +297,8 @@ public interface WebhookEndpointBuilderFactory { public interface WebhookBuilders { /** * Webhook (camel-webhook) - * Expose webhook endpoints to receive push notifications for other - * Camel components. + * Receive the push notifications of a webhook provider over HTTP for a + * Camel component that supports webhooks. * * Category: cloud * Since: 3.0 @@ -281,7 +307,10 @@ public interface WebhookEndpointBuilderFactory { * Syntax: <code>webhook:endpointUri</code> * * Path parameter: endpointUri (required) - * The delegate uri. Must belong to a component that supports webhooks. + * The URI of the delegate endpoint, of a component that supports + * webhooks, for example telegram:bots, clickup:workspaceId or + * whatsapp:phoneNumberId. The query parameters of the webhook endpoint + * that are not webhook options are passed on to the delegate endpoint. * * @param path endpointUri * @return the dsl builder @@ -291,8 +320,8 @@ public interface WebhookEndpointBuilderFactory { } /** * Webhook (camel-webhook) - * Expose webhook endpoints to receive push notifications for other - * Camel components. + * Receive the push notifications of a webhook provider over HTTP for a + * Camel component that supports webhooks. * * Category: cloud * Since: 3.0 @@ -301,7 +330,10 @@ public interface WebhookEndpointBuilderFactory { * Syntax: <code>webhook:endpointUri</code> * * Path parameter: endpointUri (required) - * The delegate uri. Must belong to a component that supports webhooks. + * The URI of the delegate endpoint, of a component that supports + * webhooks, for example telegram:bots, clickup:workspaceId or + * whatsapp:phoneNumberId. The query parameters of the webhook endpoint + * that are not webhook options are passed on to the delegate endpoint. * * @param componentName to use a custom component name for the endpoint * instead of the default name diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md index f433f85abb4c..92a33c2e6d95 100644 --- a/tasks/component-descriptions.md +++ b/tasks/component-descriptions.md @@ -385,7 +385,7 @@ or removes its row. | camel-weather | weather | yes | | camel-weaviate | weaviate | | | camel-web3j | web3j | | -| camel-webhook | webhook | | +| camel-webhook | webhook | yes | | camel-whatsapp | whatsapp | | | camel-wordpress | wordpress | | | camel-workday | workday | |
