You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2021/12/22 08:36:28 UTC

[camel] 04/04: CAMEL-17194: endpointdsl - Prepare for generate only once during project build.

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 cb89cba3212d219268ba6609980eb7d98433dd4f
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Dec 22 09:35:45 2021 +0100

    CAMEL-17194: endpointdsl - Prepare for generate only once during project build.
---
 .../builder/endpoint/StaticEndpointBuilders.java   | 151 ---------------------
 .../endpoint/dsl/CoAPEndpointBuilderFactory.java   |  16 +--
 .../endpoint/dsl/SolrEndpointBuilderFactory.java   |  16 +--
 3 files changed, 16 insertions(+), 167 deletions(-)

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 94cb38a..7c73871 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
@@ -169,49 +169,6 @@ public class StaticEndpointBuilders {
         return org.apache.camel.builder.endpoint.dsl.WsEndpointBuilderFactory.endpointBuilder(componentName, path);
     }
     /**
-     * Async HTTP Client (AHC) Secure Websocket (Secure) (camel-ahc-ws)
-     * Exchange data with external Websocket servers using Async Http Client.
-     * 
-     * Category: websocket
-     * Since: 2.14
-     * Maven coordinates: org.apache.camel:camel-ahc-ws
-     * 
-     * Syntax: <code>ahc-wss:httpUri</code>
-     * 
-     * Path parameter: httpUri (required)
-     * The URI to use such as http://hostname:port/path
-     * 
-     * @param path httpUri
-     * @return the dsl builder
-     */
-    public static org.apache.camel.builder.endpoint.dsl.WsEndpointBuilderFactory.WsEndpointBuilder ahcWss(
-            String path) {
-        return org.apache.camel.builder.endpoint.dsl.WsEndpointBuilderFactory.endpointBuilder("ahc-wss", path);
-    }
-    /**
-     * Async HTTP Client (AHC) Secure Websocket (Secure) (camel-ahc-ws)
-     * Exchange data with external Websocket servers using Async Http Client.
-     * 
-     * Category: websocket
-     * Since: 2.14
-     * Maven coordinates: org.apache.camel:camel-ahc-ws
-     * 
-     * Syntax: <code>ahc-wss:httpUri</code>
-     * 
-     * Path parameter: httpUri (required)
-     * The URI to use such as http://hostname:port/path
-     * 
-     * @param componentName to use a custom component name for the endpoint
-     * instead of the default name
-     * @param path httpUri
-     * @return the dsl builder
-     */
-    public static org.apache.camel.builder.endpoint.dsl.WsEndpointBuilderFactory.WsEndpointBuilder ahcWss(
-            String componentName,
-            String path) {
-        return org.apache.camel.builder.endpoint.dsl.WsEndpointBuilderFactory.endpointBuilder(componentName, path);
-    }
-    /**
      * AMQP (camel-amqp)
      * Messaging with AMQP protocol using Apache QPid Client.
      * 
@@ -2953,65 +2910,6 @@ public class StaticEndpointBuilders {
         return org.apache.camel.builder.endpoint.dsl.CometdEndpointBuilderFactory.endpointBuilder(componentName, path);
     }
     /**
-     * CometD (Secure) (camel-cometd)
-     * Offers publish/subscribe, peer-to-peer (via a server), and RPC style
-     * messaging using the CometD/Bayeux protocol.
-     * 
-     * Category: websocket
-     * Since: 2.0
-     * Maven coordinates: org.apache.camel:camel-cometd
-     * 
-     * Syntax: <code>cometds:host:port/channelName</code>
-     * 
-     * Path parameter: host (required)
-     * Hostname
-     * 
-     * Path parameter: port (required)
-     * Host port number
-     * 
-     * Path parameter: channelName (required)
-     * The channelName represents a topic that can be subscribed to by the Camel
-     * endpoints.
-     * 
-     * @param path host:port/channelName
-     * @return the dsl builder
-     */
-    public static org.apache.camel.builder.endpoint.dsl.CometdEndpointBuilderFactory.CometdEndpointBuilder cometds(
-            String path) {
-        return org.apache.camel.builder.endpoint.dsl.CometdEndpointBuilderFactory.endpointBuilder("cometds", path);
-    }
-    /**
-     * CometD (Secure) (camel-cometd)
-     * Offers publish/subscribe, peer-to-peer (via a server), and RPC style
-     * messaging using the CometD/Bayeux protocol.
-     * 
-     * Category: websocket
-     * Since: 2.0
-     * Maven coordinates: org.apache.camel:camel-cometd
-     * 
-     * Syntax: <code>cometds:host:port/channelName</code>
-     * 
-     * Path parameter: host (required)
-     * Hostname
-     * 
-     * Path parameter: port (required)
-     * Host port number
-     * 
-     * Path parameter: channelName (required)
-     * The channelName represents a topic that can be subscribed to by the Camel
-     * endpoints.
-     * 
-     * @param componentName to use a custom component name for the endpoint
-     * instead of the default name
-     * @param path host:port/channelName
-     * @return the dsl builder
-     */
-    public static org.apache.camel.builder.endpoint.dsl.CometdEndpointBuilderFactory.CometdEndpointBuilder cometds(
-            String componentName,
-            String path) {
-        return org.apache.camel.builder.endpoint.dsl.CometdEndpointBuilderFactory.endpointBuilder(componentName, path);
-    }
-    /**
      * Consul (camel-consul)
      * Integrate with Consul service discovery and configuration store.
      * 
@@ -12140,55 +12038,6 @@ public class StaticEndpointBuilders {
         return org.apache.camel.builder.endpoint.dsl.PlatformHttpEndpointBuilderFactory.endpointBuilder(componentName, path);
     }
     /**
-     * POP3 (camel-mail)
-     * Send and receive emails using imap, pop3 and smtp protocols.
-     * 
-     * Category: mail
-     * Since: 1.0
-     * Maven coordinates: org.apache.camel:camel-mail
-     * 
-     * Syntax: <code>pop3:host:port</code>
-     * 
-     * Path parameter: host (required)
-     * The mail server host name
-     * 
-     * Path parameter: port
-     * The port number of the mail server
-     * 
-     * @param path host:port
-     * @return the dsl builder
-     */
-    public static org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.MailEndpointBuilder pop3(
-            String path) {
-        return org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.endpointBuilder("pop3", path);
-    }
-    /**
-     * POP3 (camel-mail)
-     * Send and receive emails using imap, pop3 and smtp protocols.
-     * 
-     * Category: mail
-     * Since: 1.0
-     * Maven coordinates: org.apache.camel:camel-mail
-     * 
-     * Syntax: <code>pop3:host:port</code>
-     * 
-     * Path parameter: host (required)
-     * The mail server host name
-     * 
-     * Path parameter: port
-     * The port number of the mail server
-     * 
-     * @param componentName to use a custom component name for the endpoint
-     * instead of the default name
-     * @param path host:port
-     * @return the dsl builder
-     */
-    public static org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.MailEndpointBuilder pop3(
-            String componentName,
-            String path) {
-        return org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.endpointBuilder(componentName, path);
-    }
-    /**
      * PubNub (camel-pubnub)
      * Send and receive messages to/from PubNub data stream network for
      * connected devices.
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CoAPEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CoAPEndpointBuilderFactory.java
index 92295af..87abc4e 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CoAPEndpointBuilderFactory.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CoAPEndpointBuilderFactory.java
@@ -1084,14 +1084,14 @@ public interface CoAPEndpointBuilderFactory {
             return CoAPEndpointBuilderFactory.endpointBuilder(componentName, path);
         }
         /**
-         * CoAP (camel-coap)
+         * CoAP (Secure) (camel-coap)
          * Send and receive messages to/from COAP capable devices.
          * 
          * Category: iot
          * Since: 2.16
          * Maven coordinates: org.apache.camel:camel-coap
          * 
-         * Syntax: <code>coap+tcp:uri</code>
+         * Syntax: <code>coaps:uri</code>
          * 
          * Path parameter: uri
          * The URI for the CoAP endpoint
@@ -1099,18 +1099,18 @@ public interface CoAPEndpointBuilderFactory {
          * @param path uri
          * @return the dsl builder
          */
-        default CoAPEndpointBuilder coapTcp(String path) {
-            return CoAPEndpointBuilderFactory.endpointBuilder("coap+tcp", path);
+        default CoAPEndpointBuilder coaps(String path) {
+            return CoAPEndpointBuilderFactory.endpointBuilder("coaps", path);
         }
         /**
-         * CoAP (Secure) (camel-coap)
+         * CoAP (camel-coap)
          * Send and receive messages to/from COAP capable devices.
          * 
          * Category: iot
          * Since: 2.16
          * Maven coordinates: org.apache.camel:camel-coap
          * 
-         * Syntax: <code>coaps:uri</code>
+         * Syntax: <code>coap+tcp:uri</code>
          * 
          * Path parameter: uri
          * The URI for the CoAP endpoint
@@ -1118,8 +1118,8 @@ public interface CoAPEndpointBuilderFactory {
          * @param path uri
          * @return the dsl builder
          */
-        default CoAPEndpointBuilder coaps(String path) {
-            return CoAPEndpointBuilderFactory.endpointBuilder("coaps", path);
+        default CoAPEndpointBuilder coapTcp(String path) {
+            return CoAPEndpointBuilderFactory.endpointBuilder("coap+tcp", path);
         }
         /**
          * CoAP (camel-coap)
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SolrEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SolrEndpointBuilderFactory.java
index 6841a1a..c5fbae7 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SolrEndpointBuilderFactory.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SolrEndpointBuilderFactory.java
@@ -622,14 +622,14 @@ public interface SolrEndpointBuilderFactory {
             return SolrEndpointBuilderFactory.endpointBuilder(componentName, path);
         }
         /**
-         * Solr (camel-solr)
+         * Solr (Secure) (camel-solr)
          * Perform operations against Apache Lucene Solr.
          * 
          * Category: monitoring,search
          * Since: 2.9
          * Maven coordinates: org.apache.camel:camel-solr
          * 
-         * Syntax: <code>solrCloud:url</code>
+         * Syntax: <code>solrs:url</code>
          * 
          * Path parameter: url (required)
          * Hostname and port for the Solr server(s). Multiple hosts can be
@@ -639,18 +639,18 @@ public interface SolrEndpointBuilderFactory {
          * @param path url
          * @return the dsl builder
          */
-        default SolrEndpointBuilder solrCloud(String path) {
-            return SolrEndpointBuilderFactory.endpointBuilder("solrCloud", path);
+        default SolrEndpointBuilder solrs(String path) {
+            return SolrEndpointBuilderFactory.endpointBuilder("solrs", path);
         }
         /**
-         * Solr (Secure) (camel-solr)
+         * Solr (camel-solr)
          * Perform operations against Apache Lucene Solr.
          * 
          * Category: monitoring,search
          * Since: 2.9
          * Maven coordinates: org.apache.camel:camel-solr
          * 
-         * Syntax: <code>solrs:url</code>
+         * Syntax: <code>solrCloud:url</code>
          * 
          * Path parameter: url (required)
          * Hostname and port for the Solr server(s). Multiple hosts can be
@@ -660,8 +660,8 @@ public interface SolrEndpointBuilderFactory {
          * @param path url
          * @return the dsl builder
          */
-        default SolrEndpointBuilder solrs(String path) {
-            return SolrEndpointBuilderFactory.endpointBuilder("solrs", path);
+        default SolrEndpointBuilder solrCloud(String path) {
+            return SolrEndpointBuilderFactory.endpointBuilder("solrCloud", path);
         }
     }
     static SolrEndpointBuilder endpointBuilder(String componentName, String path) {