This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new 88f9fb8674f CAMEL-19853 - Camel-Thymeleaf: Fix Camel Catalog test and review the syntax (#11373) 88f9fb8674f is described below commit 88f9fb8674f14b8de61fb7c520e60c56c5ad86fe Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Wed Sep 13 08:08:57 2023 +0200 CAMEL-19853 - Camel-Thymeleaf: Fix Camel Catalog test and review the syntax (#11373) Signed-off-by: Andrea Cosentino <anco...@gmail.com> --- .../resources/org/apache/camel/catalog/components/thymeleaf.json | 2 +- .../camel/component/thymeleaf/ThymeleafEndpointUriFactory.java | 2 +- .../resources/org/apache/camel/component/thymeleaf/thymeleaf.json | 2 +- .../org/apache/camel/component/thymeleaf/ThymeleafEndpoint.java | 2 +- dsl/camel-componentdsl/src/generated/resources/metadata.json | 2 +- .../org/apache/camel/builder/endpoint/StaticEndpointBuilders.java | 8 ++++---- .../builder/endpoint/dsl/ThymeleafEndpointBuilderFactory.java | 8 ++++---- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/thymeleaf.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/thymeleaf.json index 07f99ce1ed7..86576b1df86 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/thymeleaf.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/thymeleaf.json @@ -14,7 +14,7 @@ "version": "4.1.0-SNAPSHOT", "scheme": "thymeleaf", "extendsScheme": "", - "syntax": "thymeleaf:templatePath", + "syntax": "thymeleaf:resourceUri", "async": false, "api": false, "consumerOnly": false, diff --git a/components/camel-thymeleaf/src/generated/java/org/apache/camel/component/thymeleaf/ThymeleafEndpointUriFactory.java b/components/camel-thymeleaf/src/generated/java/org/apache/camel/component/thymeleaf/ThymeleafEndpointUriFactory.java index 9aeee842ada..e41c4bf2adc 100644 --- a/components/camel-thymeleaf/src/generated/java/org/apache/camel/component/thymeleaf/ThymeleafEndpointUriFactory.java +++ b/components/camel-thymeleaf/src/generated/java/org/apache/camel/component/thymeleaf/ThymeleafEndpointUriFactory.java @@ -15,7 +15,7 @@ import org.apache.camel.spi.EndpointUriFactory; */ public class ThymeleafEndpointUriFactory extends org.apache.camel.support.component.EndpointUriFactorySupport implements EndpointUriFactory { - private static final String BASE = ":templatePath"; + private static final String BASE = ":resourceUri"; private static final Set<String> PROPERTY_NAMES; private static final Set<String> SECRET_PROPERTY_NAMES; diff --git a/components/camel-thymeleaf/src/generated/resources/org/apache/camel/component/thymeleaf/thymeleaf.json b/components/camel-thymeleaf/src/generated/resources/org/apache/camel/component/thymeleaf/thymeleaf.json index 07f99ce1ed7..86576b1df86 100644 --- a/components/camel-thymeleaf/src/generated/resources/org/apache/camel/component/thymeleaf/thymeleaf.json +++ b/components/camel-thymeleaf/src/generated/resources/org/apache/camel/component/thymeleaf/thymeleaf.json @@ -14,7 +14,7 @@ "version": "4.1.0-SNAPSHOT", "scheme": "thymeleaf", "extendsScheme": "", - "syntax": "thymeleaf:templatePath", + "syntax": "thymeleaf:resourceUri", "async": false, "api": false, "consumerOnly": false, diff --git a/components/camel-thymeleaf/src/main/java/org/apache/camel/component/thymeleaf/ThymeleafEndpoint.java b/components/camel-thymeleaf/src/main/java/org/apache/camel/component/thymeleaf/ThymeleafEndpoint.java index 833e956e03b..c9973c4935e 100644 --- a/components/camel-thymeleaf/src/main/java/org/apache/camel/component/thymeleaf/ThymeleafEndpoint.java +++ b/components/camel-thymeleaf/src/main/java/org/apache/camel/component/thymeleaf/ThymeleafEndpoint.java @@ -42,7 +42,7 @@ import org.thymeleaf.web.servlet.JakartaServletWebApplication; /** * Transform messages using a Thymeleaf template. */ -@UriEndpoint(firstVersion = "1.0.0", scheme = "thymeleaf", title = "Thymeleaf", syntax = "thymeleaf:templatePath", +@UriEndpoint(firstVersion = "1.0.0", scheme = "thymeleaf", title = "Thymeleaf", syntax = "thymeleaf:resourceUri", producerOnly = true, category = { Category.TRANSFORMATION }, headersClass = ThymeleafConstants.class) public class ThymeleafEndpoint extends ResourceEndpoint { diff --git a/dsl/camel-componentdsl/src/generated/resources/metadata.json b/dsl/camel-componentdsl/src/generated/resources/metadata.json index c74c2d9a7b9..d31a1fcab2a 100644 --- a/dsl/camel-componentdsl/src/generated/resources/metadata.json +++ b/dsl/camel-componentdsl/src/generated/resources/metadata.json @@ -6603,7 +6603,7 @@ "version": "4.1.0-SNAPSHOT", "scheme": "thymeleaf", "extendsScheme": "", - "syntax": "thymeleaf:templatePath", + "syntax": "thymeleaf:resourceUri", "async": false, "api": false, "consumerOnly": false, 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 1ff7eb91e5c..0a224631fb9 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 @@ -13912,7 +13912,7 @@ public class StaticEndpointBuilders { * Since: 1.0 * Maven coordinates: org.apache.camel:camel-thymeleaf * - * Syntax: <code>thymeleaf:templatePath</code> + * Syntax: <code>thymeleaf:resourceUri</code> * * Path parameter: resourceUri (required) * Path to the resource. You can prefix with: classpath, file, http, ref, or @@ -13923,7 +13923,7 @@ public class StaticEndpointBuilders { * This option can also be loaded from an existing file, by prefixing with * file: or classpath: followed by the location of the file. * - * @param path templatePath + * @param path resourceUri * @return the dsl builder */ public static org.apache.camel.builder.endpoint.dsl.ThymeleafEndpointBuilderFactory.ThymeleafEndpointBuilder thymeleaf( @@ -13938,7 +13938,7 @@ public class StaticEndpointBuilders { * Since: 1.0 * Maven coordinates: org.apache.camel:camel-thymeleaf * - * Syntax: <code>thymeleaf:templatePath</code> + * Syntax: <code>thymeleaf:resourceUri</code> * * Path parameter: resourceUri (required) * Path to the resource. You can prefix with: classpath, file, http, ref, or @@ -13951,7 +13951,7 @@ public class StaticEndpointBuilders { * * @param componentName to use a custom component name for the endpoint * instead of the default name - * @param path templatePath + * @param path resourceUri * @return the dsl builder */ public static org.apache.camel.builder.endpoint.dsl.ThymeleafEndpointBuilderFactory.ThymeleafEndpointBuilder thymeleaf( diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ThymeleafEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ThymeleafEndpointBuilderFactory.java index d3a78df9d02..12845099a7d 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ThymeleafEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ThymeleafEndpointBuilderFactory.java @@ -408,7 +408,7 @@ public interface ThymeleafEndpointBuilderFactory { * Since: 1.0 * Maven coordinates: org.apache.camel:camel-thymeleaf * - * Syntax: <code>thymeleaf:templatePath</code> + * Syntax: <code>thymeleaf:resourceUri</code> * * Path parameter: resourceUri (required) * Path to the resource. You can prefix with: classpath, file, http, @@ -420,7 +420,7 @@ public interface ThymeleafEndpointBuilderFactory { * This option can also be loaded from an existing file, by prefixing * with file: or classpath: followed by the location of the file. * - * @param path templatePath + * @param path resourceUri * @return the dsl builder */ default ThymeleafEndpointBuilder thymeleaf(String path) { @@ -434,7 +434,7 @@ public interface ThymeleafEndpointBuilderFactory { * Since: 1.0 * Maven coordinates: org.apache.camel:camel-thymeleaf * - * Syntax: <code>thymeleaf:templatePath</code> + * Syntax: <code>thymeleaf:resourceUri</code> * * Path parameter: resourceUri (required) * Path to the resource. You can prefix with: classpath, file, http, @@ -448,7 +448,7 @@ public interface ThymeleafEndpointBuilderFactory { * * @param componentName to use a custom component name for the endpoint * instead of the default name - * @param path templatePath + * @param path resourceUri * @return the dsl builder */ default ThymeleafEndpointBuilder thymeleaf(