This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 7927de8b515593651acde02c1cee1f184a312671 Author: Andrea Cosentino <[email protected]> AuthorDate: Tue May 19 08:46:40 2020 +0200 Camel-Resteasy: Fixed syntax, contextPath is not an uriPath and camel-catalog will complain --- .../resources/org/apache/camel/component/resteasy/resteasy.json | 2 +- components/camel-resteasy/src/main/docs/resteasy-component.adoc | 4 ++-- .../org/apache/camel/component/resteasy/ResteasyEndpoint.java | 2 +- core/camel-componentdsl/src/generated/resources/metadata.json | 2 +- .../org/apache/camel/builder/endpoint/StaticEndpointBuilders.java | 8 ++++---- .../builder/endpoint/dsl/ResteasyEndpointBuilderFactory.java | 8 ++++---- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/components/camel-resteasy/src/generated/resources/org/apache/camel/component/resteasy/resteasy.json b/components/camel-resteasy/src/generated/resources/org/apache/camel/component/resteasy/resteasy.json index 9c8fcf6..836668c 100644 --- a/components/camel-resteasy/src/generated/resources/org/apache/camel/component/resteasy/resteasy.json +++ b/components/camel-resteasy/src/generated/resources/org/apache/camel/component/resteasy/resteasy.json @@ -14,7 +14,7 @@ "version": "3.4.0-SNAPSHOT", "scheme": "resteasy", "extendsScheme": "http", - "syntax": "resteasy:contextPath", + "syntax": "resteasy:", "async": false, "consumerOnly": false, "producerOnly": false, diff --git a/components/camel-resteasy/src/main/docs/resteasy-component.adoc b/components/camel-resteasy/src/main/docs/resteasy-component.adoc index f552fb0..775f1b5 100644 --- a/components/camel-resteasy/src/main/docs/resteasy-component.adoc +++ b/components/camel-resteasy/src/main/docs/resteasy-component.adoc @@ -78,7 +78,7 @@ The Resteasy component supports 22 options, which are listed below. The Resteasy endpoint is configured using URI syntax: ---- -resteasy:contextPath +resteasy: ---- with the following path and query parameters: @@ -249,4 +249,4 @@ Then you can define your route as follows: Notice that component-scan is important to load resteasy servlet properly into container's runtime. -include::camel-spring-boot::page$restasy-starter.adoc[] \ No newline at end of file +include::camel-spring-boot::page$restasy-starter.adoc[] diff --git a/components/camel-resteasy/src/main/java/org/apache/camel/component/resteasy/ResteasyEndpoint.java b/components/camel-resteasy/src/main/java/org/apache/camel/component/resteasy/ResteasyEndpoint.java index 9c4a9f9..34f6054 100644 --- a/components/camel-resteasy/src/main/java/org/apache/camel/component/resteasy/ResteasyEndpoint.java +++ b/components/camel-resteasy/src/main/java/org/apache/camel/component/resteasy/ResteasyEndpoint.java @@ -38,7 +38,7 @@ import org.apache.http.impl.client.HttpClientBuilder; * */ @UriEndpoint(firstVersion = "3.4.0", scheme = "resteasy", extendsScheme = "http", - title = "Resteasy", syntax = "resteasy:contextPath", label = "rest") + title = "Resteasy", syntax = "resteasy:", label = "rest") public class ResteasyEndpoint extends HttpEndpoint implements HeaderFilterStrategyAware { @UriParam private String resteasyMethod = "GET"; diff --git a/core/camel-componentdsl/src/generated/resources/metadata.json b/core/camel-componentdsl/src/generated/resources/metadata.json index 1f68f31..35459f8 100644 --- a/core/camel-componentdsl/src/generated/resources/metadata.json +++ b/core/camel-componentdsl/src/generated/resources/metadata.json @@ -5715,7 +5715,7 @@ "version": "3.4.0-SNAPSHOT", "scheme": "resteasy", "extendsScheme": "http", - "syntax": "resteasy:contextPath", + "syntax": "resteasy:", "async": false, "consumerOnly": false, "producerOnly": false, diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java index 4c808c7..91ca242 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java @@ -11725,12 +11725,12 @@ public class StaticEndpointBuilders { * Since: 3.4 * Maven coordinates: org.apache.camel:camel-resteasy * - * Syntax: <code>resteasy:contextPath</code> + * Syntax: <code>resteasy:</code> * * Path parameter: httpUri (required) * The url of the HTTP endpoint to call. * - * @param path contextPath + * @param path */ static org.apache.camel.builder.endpoint.dsl.ResteasyEndpointBuilderFactory.ResteasyEndpointBuilder resteasy( String path) { @@ -11744,14 +11744,14 @@ public class StaticEndpointBuilders { * Since: 3.4 * Maven coordinates: org.apache.camel:camel-resteasy * - * Syntax: <code>resteasy:contextPath</code> + * Syntax: <code>resteasy:</code> * * Path parameter: httpUri (required) * The url of the HTTP endpoint to call. * * @param componentName to use a custom component name for the endpoint * instead of the default name - * @param path contextPath + * @param path */ static org.apache.camel.builder.endpoint.dsl.ResteasyEndpointBuilderFactory.ResteasyEndpointBuilder resteasy( String componentName, diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ResteasyEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ResteasyEndpointBuilderFactory.java index 5976e80..15d9dfa 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ResteasyEndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ResteasyEndpointBuilderFactory.java @@ -3609,12 +3609,12 @@ public interface ResteasyEndpointBuilderFactory { * Since: 3.4 * Maven coordinates: org.apache.camel:camel-resteasy * - * Syntax: <code>resteasy:contextPath</code> + * Syntax: <code>resteasy:</code> * * Path parameter: httpUri (required) * The url of the HTTP endpoint to call. * - * @param path contextPath + * @param path */ default ResteasyEndpointBuilder resteasy(String path) { return ResteasyEndpointBuilderFactory.endpointBuilder("resteasy", path); @@ -3627,14 +3627,14 @@ public interface ResteasyEndpointBuilderFactory { * Since: 3.4 * Maven coordinates: org.apache.camel:camel-resteasy * - * Syntax: <code>resteasy:contextPath</code> + * Syntax: <code>resteasy:</code> * * Path parameter: httpUri (required) * The url of the HTTP endpoint to call. * * @param componentName to use a custom component name for the endpoint * instead of the default name - * @param path contextPath + * @param path */ default ResteasyEndpointBuilder resteasy( String componentName,
