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 2020/05/13 19:59:30 UTC
[camel] branch master updated: CAMEL-15054: camel-endpointdsl -
Static imports should be on a single class. Reduce number of methods to
keep only first alias.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 9042f28 CAMEL-15054: camel-endpointdsl - Static imports should be on a single class. Reduce number of methods to keep only first alias.
9042f28 is described below
commit 9042f28251b4b5d0362aff2e622235563446557a
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed May 13 21:59:03 2020 +0200
CAMEL-15054: camel-endpointdsl - Static imports should be on a single class. Reduce number of methods to keep only first alias.
---
.../builder/endpoint/StaticEndpointBuilders.java | 401 ---------------------
.../endpoint/dsl/CoAPEndpointBuilderFactory.java | 60 ---
.../endpoint/dsl/CometdEndpointBuilderFactory.java | 28 --
.../endpoint/dsl/HttpEndpointBuilderFactory.java | 20 -
.../endpoint/dsl/MailEndpointBuilderFactory.java | 115 ------
.../endpoint/dsl/SipEndpointBuilderFactory.java | 22 --
.../endpoint/dsl/SmppEndpointBuilderFactory.java | 26 --
.../endpoint/dsl/SolrEndpointBuilderFactory.java | 40 --
.../endpoint/dsl/WsEndpointBuilderFactory.java | 21 --
.../camel/maven/packaging/EndpointDslMojo.java | 63 ++--
10 files changed, 38 insertions(+), 758 deletions(-)
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 0ed455b..e19bff2 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
@@ -111,33 +111,6 @@ public class StaticEndpointBuilders {
return org.apache.camel.builder.endpoint.dsl.WsEndpointBuilderFactory.endpointBuilder(componentName,path);
}
/**
- * 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
- */
- static org.apache.camel.builder.endpoint.dsl.WsEndpointBuilderFactory.WsEndpointBuilder ahcWss(
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.WsEndpointBuilderFactory.endpointBuilder("ahc-wss",path);
- }
- /**
- * 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
- */
- static org.apache.camel.builder.endpoint.dsl.WsEndpointBuilderFactory.WsEndpointBuilder ahcWss(
- java.lang.String componentName,
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.WsEndpointBuilderFactory.endpointBuilder(componentName,path);
- }
- /**
* AMQP (camel-amqp) Messaging with AMQP protocol using Apache QPid Client.
* Category: messaging Since: 1.2 Maven coordinates:
* org.apache.camel:camel-amqp Syntax:
@@ -2055,81 +2028,6 @@ public class StaticEndpointBuilders {
return org.apache.camel.builder.endpoint.dsl.CoAPEndpointBuilderFactory.endpointBuilder(componentName,path);
}
/**
- * 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>coaps:uri</code> Path
- * parameter: uri The URI for the CoAP endpoint
- * @param path uri
- */
- static org.apache.camel.builder.endpoint.dsl.CoAPEndpointBuilderFactory.CoAPEndpointBuilder coaps(
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.CoAPEndpointBuilderFactory.endpointBuilder("coaps",path);
- }
- /**
- * 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>coaps:uri</code> Path
- * parameter: uri The URI for the CoAP endpoint
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path uri
- */
- static org.apache.camel.builder.endpoint.dsl.CoAPEndpointBuilderFactory.CoAPEndpointBuilder coaps(
- java.lang.String componentName,
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.CoAPEndpointBuilderFactory.endpointBuilder(componentName,path);
- }
- /**
- * 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+tcp:uri</code> Path parameter: uri The URI for the
- * CoAP endpoint
- * @param path uri
- */
- static org.apache.camel.builder.endpoint.dsl.CoAPEndpointBuilderFactory.CoAPEndpointBuilder coapsTcp(
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.CoAPEndpointBuilderFactory.endpointBuilder("coaps+tcp",path);
- }
- /**
- * 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+tcp:uri</code> Path parameter: uri The URI for the
- * CoAP endpoint
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path uri
- */
- static org.apache.camel.builder.endpoint.dsl.CoAPEndpointBuilderFactory.CoAPEndpointBuilder coapsTcp(
- java.lang.String componentName,
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.CoAPEndpointBuilderFactory.endpointBuilder(componentName,path);
- }
- /**
- * 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>coap+tcp:uri</code> Path parameter: uri The URI for the
- * CoAP endpoint
- * @param path uri
- */
- static org.apache.camel.builder.endpoint.dsl.CoAPEndpointBuilderFactory.CoAPEndpointBuilder coapTcp(
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.CoAPEndpointBuilderFactory.endpointBuilder("coap+tcp",path);
- }
- /**
- * 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>coap+tcp:uri</code> Path parameter: uri The URI for the
- * CoAP endpoint
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path uri
- */
- static org.apache.camel.builder.endpoint.dsl.CoAPEndpointBuilderFactory.CoAPEndpointBuilder coapTcp(
- java.lang.String componentName,
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.CoAPEndpointBuilderFactory.endpointBuilder(componentName,path);
- }
- /**
* CometD (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:
@@ -2163,39 +2061,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
- */
- static org.apache.camel.builder.endpoint.dsl.CometdEndpointBuilderFactory.CometdEndpointBuilder cometds(
- java.lang.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
- */
- static org.apache.camel.builder.endpoint.dsl.CometdEndpointBuilderFactory.CometdEndpointBuilder cometds(
- java.lang.String componentName,
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.CometdEndpointBuilderFactory.endpointBuilder(componentName,path);
- }
- /**
* Consul (camel-consul) Integrate with Consul service discovery and
* configuration store. Category: api,cloud Since: 2.18 Maven coordinates:
* org.apache.camel:camel-consul Syntax: <code>consul:apiEndpoint</code>
@@ -4522,31 +4387,6 @@ public class StaticEndpointBuilders {
return org.apache.camel.builder.endpoint.dsl.HttpEndpointBuilderFactory.endpointBuilder(componentName,path);
}
/**
- * HTTPS (Secure) (camel-http) Send requests to external HTTP servers using
- * Apache HTTP Client 4.x. Category: http Since: 2.3 Maven coordinates:
- * org.apache.camel:camel-http Syntax: <code>https:httpUri</code> Path
- * parameter: httpUri (required) The url of the HTTP endpoint to call.
- * @param path httpUri
- */
- static org.apache.camel.builder.endpoint.dsl.HttpEndpointBuilderFactory.HttpEndpointBuilder https(
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.HttpEndpointBuilderFactory.endpointBuilder("https",path);
- }
- /**
- * HTTPS (Secure) (camel-http) Send requests to external HTTP servers using
- * Apache HTTP Client 4.x. Category: http Since: 2.3 Maven coordinates:
- * org.apache.camel:camel-http Syntax: <code>https:httpUri</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 httpUri
- */
- static org.apache.camel.builder.endpoint.dsl.HttpEndpointBuilderFactory.HttpEndpointBuilder https(
- java.lang.String componentName,
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.HttpEndpointBuilderFactory.endpointBuilder(componentName,path);
- }
- /**
* IEC 60870 Client (camel-iec60870) IEC 60870 supervisory control and data
* acquisition (SCADA) client using NeoSCADA implementation. Category: iot
* Since: 2.20 Maven coordinates: org.apache.camel:camel-iec60870 Syntax:
@@ -4813,33 +4653,6 @@ public class StaticEndpointBuilders {
return org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.endpointBuilder(componentName,path);
}
/**
- * IMAPS (Secure) (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>imaps: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
- */
- static org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.MailEndpointBuilder imaps(
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.endpointBuilder("imaps",path);
- }
- /**
- * IMAPS (Secure) (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>imaps: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
- */
- static org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.MailEndpointBuilder imaps(
- java.lang.String componentName,
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.endpointBuilder(componentName,path);
- }
- /**
* Infinispan (camel-infinispan) Read and write from/to Infinispan
* distributed key/value store and data grid. Category:
* cache,datagrid,clustering Since: 2.13 Maven coordinates:
@@ -7337,60 +7150,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
- */
- static org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.MailEndpointBuilder pop3(
- java.lang.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
- */
- static org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.MailEndpointBuilder pop3(
- java.lang.String componentName,
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.endpointBuilder(componentName,path);
- }
- /**
- * POP3S (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>pop3s: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
- */
- static org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.MailEndpointBuilder pop3s(
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.endpointBuilder("pop3s",path);
- }
- /**
- * POP3S (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>pop3s: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
- */
- static org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.MailEndpointBuilder pop3s(
- java.lang.String componentName,
- java.lang.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. Category: cloud,iot,messaging
* Since: 2.19 Maven coordinates: org.apache.camel:camel-pubnub Syntax:
@@ -8184,33 +7943,6 @@ public class StaticEndpointBuilders {
return org.apache.camel.builder.endpoint.dsl.SipEndpointBuilderFactory.endpointBuilder(componentName,path);
}
/**
- * SIP (Secure) (camel-sip) Send and receive messages using the SIP protocol
- * (used in telecommunications). Category: mobile Since: 2.5 Maven
- * coordinates: org.apache.camel:camel-sip Syntax: <code>sips:uri</code>
- * Path parameter: uri (required) URI of the SIP server to connect to (the
- * username and password can be included such as: john:secretmyserver:9999)
- * @param path uri
- */
- static org.apache.camel.builder.endpoint.dsl.SipEndpointBuilderFactory.SipEndpointBuilder sips(
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.SipEndpointBuilderFactory.endpointBuilder("sips",path);
- }
- /**
- * SIP (Secure) (camel-sip) Send and receive messages using the SIP protocol
- * (used in telecommunications). Category: mobile Since: 2.5 Maven
- * coordinates: org.apache.camel:camel-sip Syntax: <code>sips:uri</code>
- * Path parameter: uri (required) URI of the SIP server to connect to (the
- * username and password can be included such as: john:secretmyserver:9999)
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path uri
- */
- static org.apache.camel.builder.endpoint.dsl.SipEndpointBuilderFactory.SipEndpointBuilder sips(
- java.lang.String componentName,
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.SipEndpointBuilderFactory.endpointBuilder(componentName,path);
- }
- /**
* Simple JMS (camel-sjms) Send and receive messages to/from a JMS Queue or
* Topic using plain JMS 1.x API. Category: messaging Since: 2.11 Maven
* coordinates: org.apache.camel:camel-sjms Syntax:
@@ -8362,89 +8094,6 @@ public class StaticEndpointBuilders {
return org.apache.camel.builder.endpoint.dsl.SmppEndpointBuilderFactory.endpointBuilder(componentName,path);
}
/**
- * SMPP (Secure) (camel-smpp) Send and receive SMS messages using a SMSC
- * (Short Message Service Center). Category: mobile Since: 2.2 Maven
- * coordinates: org.apache.camel:camel-smpp Syntax:
- * <code>smpps:host:port</code> Path parameter: host Hostname for the SMSC
- * server to use. Default value: localhost Path parameter: port Port number
- * for the SMSC server to use. Default value: 2775
- * @param path host:port
- */
- static org.apache.camel.builder.endpoint.dsl.SmppEndpointBuilderFactory.SmppEndpointBuilder smpps(
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.SmppEndpointBuilderFactory.endpointBuilder("smpps",path);
- }
- /**
- * SMPP (Secure) (camel-smpp) Send and receive SMS messages using a SMSC
- * (Short Message Service Center). Category: mobile Since: 2.2 Maven
- * coordinates: org.apache.camel:camel-smpp Syntax:
- * <code>smpps:host:port</code> Path parameter: host Hostname for the SMSC
- * server to use. Default value: localhost Path parameter: port Port number
- * for the SMSC server to use. Default value: 2775
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path host:port
- */
- static org.apache.camel.builder.endpoint.dsl.SmppEndpointBuilderFactory.SmppEndpointBuilder smpps(
- java.lang.String componentName,
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.SmppEndpointBuilderFactory.endpointBuilder(componentName,path);
- }
- /**
- * SMTP (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>smtp: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
- */
- static org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.MailEndpointBuilder smtp(
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.endpointBuilder("smtp",path);
- }
- /**
- * SMTP (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>smtp: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
- */
- static org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.MailEndpointBuilder smtp(
- java.lang.String componentName,
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.endpointBuilder(componentName,path);
- }
- /**
- * SMTPS (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>smtps: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
- */
- static org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.MailEndpointBuilder smtps(
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.endpointBuilder("smtps",path);
- }
- /**
- * SMTPS (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>smtps: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
- */
- static org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.MailEndpointBuilder smtps(
- java.lang.String componentName,
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.MailEndpointBuilderFactory.endpointBuilder(componentName,path);
- }
- /**
* SNMP (camel-snmp) Receive traps and poll SNMP (Simple Network Management
* Protocol) capable devices. Category: monitoring Since: 2.1 Maven
* coordinates: org.apache.camel:camel-snmp Syntax:
@@ -8499,56 +8148,6 @@ public class StaticEndpointBuilders {
return org.apache.camel.builder.endpoint.dsl.SolrEndpointBuilderFactory.endpointBuilder(componentName,path);
}
/**
- * Solr (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> Path
- * parameter: url (required) Hostname and port for the solr server
- * @param path url
- */
- static org.apache.camel.builder.endpoint.dsl.SolrEndpointBuilderFactory.SolrEndpointBuilder solrCloud(
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.SolrEndpointBuilderFactory.endpointBuilder("solrCloud",path);
- }
- /**
- * Solr (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> Path
- * parameter: url (required) Hostname and port for the solr server
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path url
- */
- static org.apache.camel.builder.endpoint.dsl.SolrEndpointBuilderFactory.SolrEndpointBuilder solrCloud(
- java.lang.String componentName,
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.SolrEndpointBuilderFactory.endpointBuilder(componentName,path);
- }
- /**
- * 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>solrs:url</code> Path
- * parameter: url (required) Hostname and port for the solr server
- * @param path url
- */
- static org.apache.camel.builder.endpoint.dsl.SolrEndpointBuilderFactory.SolrEndpointBuilder solrs(
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.SolrEndpointBuilderFactory.endpointBuilder("solrs",path);
- }
- /**
- * 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>solrs:url</code> Path
- * parameter: url (required) Hostname and port for the solr server
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path url
- */
- static org.apache.camel.builder.endpoint.dsl.SolrEndpointBuilderFactory.SolrEndpointBuilder solrs(
- java.lang.String componentName,
- java.lang.String path) {
- return org.apache.camel.builder.endpoint.dsl.SolrEndpointBuilderFactory.endpointBuilder(componentName,path);
- }
- /**
* Soroush (camel-soroush) Send and receive messages as a Soroush chat bot.
* Category: chat Since: 3.0 Maven coordinates:
* org.apache.camel:camel-soroush Syntax: <code>soroush:action</code> Path
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CoAPEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CoAPEndpointBuilderFactory.java
index c6c77fe..8f8df10 100644
--- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CoAPEndpointBuilderFactory.java
+++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CoAPEndpointBuilderFactory.java
@@ -1089,26 +1089,6 @@ public interface CoAPEndpointBuilderFactory {
return CoAPEndpointBuilderFactory.endpointBuilder("coap+tcp", path);
}
/**
- * 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>coap+tcp:uri</code>
- *
- * Path parameter: uri
- * The URI for the CoAP endpoint
- *
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path uri
- */
- default CoAPEndpointBuilder coapTcp(String componentName, String path) {
- return CoAPEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
- /**
* CoAP (Secure) (camel-coap)
* Send and receive messages to/from COAP capable devices.
*
@@ -1127,26 +1107,6 @@ public interface CoAPEndpointBuilderFactory {
return CoAPEndpointBuilderFactory.endpointBuilder("coaps", path);
}
/**
- * 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>coaps:uri</code>
- *
- * Path parameter: uri
- * The URI for the CoAP endpoint
- *
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path uri
- */
- default CoAPEndpointBuilder coaps(String componentName, String path) {
- return CoAPEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
- /**
* CoAP (camel-coap)
* Send and receive messages to/from COAP capable devices.
*
@@ -1164,26 +1124,6 @@ public interface CoAPEndpointBuilderFactory {
default CoAPEndpointBuilder coapsTcp(String path) {
return CoAPEndpointBuilderFactory.endpointBuilder("coaps+tcp", path);
}
- /**
- * 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+tcp:uri</code>
- *
- * Path parameter: uri
- * The URI for the CoAP endpoint
- *
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path uri
- */
- default CoAPEndpointBuilder coapsTcp(String componentName, String path) {
- return CoAPEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
}
static CoAPEndpointBuilder endpointBuilder(String componentName, String path) {
class CoAPEndpointBuilderImpl extends AbstractEndpointBuilder implements CoAPEndpointBuilder, AdvancedCoAPEndpointBuilder {
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CometdEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CometdEndpointBuilderFactory.java
index e6b424a..89bfbd3 100644
--- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CometdEndpointBuilderFactory.java
+++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CometdEndpointBuilderFactory.java
@@ -1212,34 +1212,6 @@ public interface CometdEndpointBuilderFactory {
default CometdEndpointBuilder cometds(String path) {
return 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
- */
- default CometdEndpointBuilder cometds(String componentName, String path) {
- return CometdEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
}
static CometdEndpointBuilder endpointBuilder(
String componentName,
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/HttpEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/HttpEndpointBuilderFactory.java
index f572333..7495f49 100644
--- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/HttpEndpointBuilderFactory.java
+++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/HttpEndpointBuilderFactory.java
@@ -1378,26 +1378,6 @@ public interface HttpEndpointBuilderFactory {
default HttpEndpointBuilder https(String path) {
return HttpEndpointBuilderFactory.endpointBuilder("https", path);
}
- /**
- * HTTPS (Secure) (camel-http)
- * Send requests to external HTTP servers using Apache HTTP Client 4.x.
- *
- * Category: http
- * Since: 2.3
- * Maven coordinates: org.apache.camel:camel-http
- *
- * Syntax: <code>https:httpUri</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 httpUri
- */
- default HttpEndpointBuilder https(String componentName, String path) {
- return HttpEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
}
static HttpEndpointBuilder endpointBuilder(String componentName, String path) {
class HttpEndpointBuilderImpl extends AbstractEndpointBuilder implements HttpEndpointBuilder, AdvancedHttpEndpointBuilder {
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MailEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MailEndpointBuilderFactory.java
index c6c0b90..20ef88b 100644
--- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MailEndpointBuilderFactory.java
+++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MailEndpointBuilderFactory.java
@@ -2917,29 +2917,6 @@ public interface MailEndpointBuilderFactory {
return MailEndpointBuilderFactory.endpointBuilder("imaps", path);
}
/**
- * IMAPS (Secure) (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>imaps: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
- */
- default MailEndpointBuilder imaps(String componentName, String path) {
- return MailEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
- /**
* POP3 (camel-mail)
* Send and receive emails using imap, pop3 and smtp protocols.
*
@@ -2961,29 +2938,6 @@ public interface MailEndpointBuilderFactory {
return 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
- */
- default MailEndpointBuilder pop3(String componentName, String path) {
- return MailEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
- /**
* POP3S (camel-mail)
* Send and receive emails using imap, pop3 and smtp protocols.
*
@@ -3005,29 +2959,6 @@ public interface MailEndpointBuilderFactory {
return MailEndpointBuilderFactory.endpointBuilder("pop3s", path);
}
/**
- * POP3S (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>pop3s: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
- */
- default MailEndpointBuilder pop3s(String componentName, String path) {
- return MailEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
- /**
* SMTP (camel-mail)
* Send and receive emails using imap, pop3 and smtp protocols.
*
@@ -3049,29 +2980,6 @@ public interface MailEndpointBuilderFactory {
return MailEndpointBuilderFactory.endpointBuilder("smtp", path);
}
/**
- * SMTP (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>smtp: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
- */
- default MailEndpointBuilder smtp(String componentName, String path) {
- return MailEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
- /**
* SMTPS (camel-mail)
* Send and receive emails using imap, pop3 and smtp protocols.
*
@@ -3092,29 +3000,6 @@ public interface MailEndpointBuilderFactory {
default MailEndpointBuilder smtps(String path) {
return MailEndpointBuilderFactory.endpointBuilder("smtps", path);
}
- /**
- * SMTPS (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>smtps: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
- */
- default MailEndpointBuilder smtps(String componentName, String path) {
- return MailEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
}
static MailEndpointBuilder endpointBuilder(String componentName, String path) {
class MailEndpointBuilderImpl extends AbstractEndpointBuilder implements MailEndpointBuilder, AdvancedMailEndpointBuilder {
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SipEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SipEndpointBuilderFactory.java
index 46f8b5b..cd8f6f7 100644
--- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SipEndpointBuilderFactory.java
+++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SipEndpointBuilderFactory.java
@@ -2941,28 +2941,6 @@ public interface SipEndpointBuilderFactory {
default SipEndpointBuilder sips(String path) {
return SipEndpointBuilderFactory.endpointBuilder("sips", path);
}
- /**
- * SIP (Secure) (camel-sip)
- * Send and receive messages using the SIP protocol (used in
- * telecommunications).
- *
- * Category: mobile
- * Since: 2.5
- * Maven coordinates: org.apache.camel:camel-sip
- *
- * Syntax: <code>sips:uri</code>
- *
- * Path parameter: uri (required)
- * URI of the SIP server to connect to (the username and password can be
- * included such as: john:secretmyserver:9999)
- *
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path uri
- */
- default SipEndpointBuilder sips(String componentName, String path) {
- return SipEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
}
static SipEndpointBuilder endpointBuilder(String componentName, String path) {
class SipEndpointBuilderImpl extends AbstractEndpointBuilder implements SipEndpointBuilder, AdvancedSipEndpointBuilder {
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SmppEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SmppEndpointBuilderFactory.java
index da751f2..0c6ef57 100644
--- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SmppEndpointBuilderFactory.java
+++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SmppEndpointBuilderFactory.java
@@ -2184,32 +2184,6 @@ public interface SmppEndpointBuilderFactory {
default SmppEndpointBuilder smpps(String path) {
return SmppEndpointBuilderFactory.endpointBuilder("smpps", path);
}
- /**
- * SMPP (Secure) (camel-smpp)
- * Send and receive SMS messages using a SMSC (Short Message Service
- * Center).
- *
- * Category: mobile
- * Since: 2.2
- * Maven coordinates: org.apache.camel:camel-smpp
- *
- * Syntax: <code>smpps:host:port</code>
- *
- * Path parameter: host
- * Hostname for the SMSC server to use.
- * Default value: localhost
- *
- * Path parameter: port
- * Port number for the SMSC server to use.
- * Default value: 2775
- *
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path host:port
- */
- default SmppEndpointBuilder smpps(String componentName, String path) {
- return SmppEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
}
static SmppEndpointBuilder endpointBuilder(String componentName, String path) {
class SmppEndpointBuilderImpl extends AbstractEndpointBuilder implements SmppEndpointBuilder, AdvancedSmppEndpointBuilder {
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SolrEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SolrEndpointBuilderFactory.java
index 50b766b..b0dc5b4 100644
--- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SolrEndpointBuilderFactory.java
+++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SolrEndpointBuilderFactory.java
@@ -477,26 +477,6 @@ public interface SolrEndpointBuilderFactory {
return SolrEndpointBuilderFactory.endpointBuilder("solrCloud", path);
}
/**
- * Solr (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>
- *
- * Path parameter: url (required)
- * Hostname and port for the solr server
- *
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path url
- */
- default SolrEndpointBuilder solrCloud(String componentName, String path) {
- return SolrEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
- /**
* Solr (Secure) (camel-solr)
* Perform operations against Apache Lucene Solr.
*
@@ -514,26 +494,6 @@ public interface SolrEndpointBuilderFactory {
default SolrEndpointBuilder solrs(String path) {
return SolrEndpointBuilderFactory.endpointBuilder("solrs", path);
}
- /**
- * 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>solrs:url</code>
- *
- * Path parameter: url (required)
- * Hostname and port for the solr server
- *
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path url
- */
- default SolrEndpointBuilder solrs(String componentName, String path) {
- return SolrEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
}
static SolrEndpointBuilder endpointBuilder(String componentName, String path) {
class SolrEndpointBuilderImpl extends AbstractEndpointBuilder implements SolrEndpointBuilder, AdvancedSolrEndpointBuilder {
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WsEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WsEndpointBuilderFactory.java
index 476914b..b7ced6b 100644
--- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WsEndpointBuilderFactory.java
+++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WsEndpointBuilderFactory.java
@@ -1474,27 +1474,6 @@ public interface WsEndpointBuilderFactory {
default WsEndpointBuilder ahcWss(String path) {
return WsEndpointBuilderFactory.endpointBuilder("ahc-wss", path);
}
- /**
- * 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
- */
- default WsEndpointBuilder ahcWss(String componentName, String path) {
- return WsEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
}
static WsEndpointBuilder endpointBuilder(String componentName, String path) {
class WsEndpointBuilderImpl extends AbstractEndpointBuilder implements WsEndpointBuilder, AdvancedWsEndpointBuilder {
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointDslMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointDslMojo.java
index d870535..9b055ae 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointDslMojo.java
+++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/EndpointDslMojo.java
@@ -540,8 +540,10 @@ public class EndpointDslMojo extends AbstractGeneratorMojo {
method.setReturnType(builderClass.getCanonicalName().replace('$', '.'));
method.setBodyF("return %s.%s(%s);", javaClass.getCanonicalName(), "endpointBuilder", "componentName, path");
staticBuilders.add(method);
-
} else {
+ // we only want the first alias (master scheme) as static builders
+ boolean firstAlias = true;
+
for (ComponentModel componentModel : aliases) {
String desc = getMainDescription(componentModel);
String methodName = camelCaseLower(componentModel.getScheme());
@@ -557,33 +559,44 @@ public class EndpointDslMojo extends AbstractGeneratorMojo {
method.addAnnotation(Deprecated.class);
}
- // copy method for the static builders (which allows to use the endpoint-dsl from outside EndpointRouteBuilder)
- method = method.copy();
- method.setStatic();
- method.setReturnType(builderClass.getCanonicalName().replace('$', '.'));
- method.setBodyF("return %s.%s(%s);", javaClass.getCanonicalName(), "endpointBuilder", "\"" + componentModel.getScheme() + "\", path");
- staticBuilders.add(method);
+ // we only want the first alias (master scheme) as static builders
+ if (firstAlias) {
+ // copy method for the static builders (which allows to use the endpoint-dsl from outside EndpointRouteBuilder)
+ method = method.copy();
+ method.setStatic();
+ method.setReturnType(builderClass.getCanonicalName().replace('$', '.'));
+ method.setBodyF("return %s.%s(%s);", javaClass.getCanonicalName(), "endpointBuilder", "\"" + componentModel.getScheme() + "\", path");
+ staticBuilders.add(method);
+ }
- method = dslClass.addMethod().setStatic().setName(methodName)
- .addParameter(String.class, "componentName")
- .addParameter(String.class, "path")
- .setReturnType(new GenericType(loadClass(builderClass.getCanonicalName())))
- .setDefault()
- .setBodyF("return %s.%s(%s);", javaClass.getName(), "endpointBuilder", "componentName, path");
- javaDoc = desc;
- javaDoc += "\n\n@param componentName to use a custom component name for the endpoint instead of the default name";
- javaDoc += "\n@param path " + pathParameterJavaDoc(componentModel);
- method.getJavaDoc().setText(javaDoc);
- if (componentModel.isDeprecated()) {
- method.addAnnotation(Deprecated.class);
+ // we only want first alias for variation with custom component name
+ if (firstAlias) {
+ method = dslClass.addMethod().setStatic().setName(methodName)
+ .addParameter(String.class, "componentName")
+ .addParameter(String.class, "path")
+ .setReturnType(new GenericType(loadClass(builderClass.getCanonicalName())))
+ .setDefault()
+ .setBodyF("return %s.%s(%s);", javaClass.getName(), "endpointBuilder", "componentName, path");
+ javaDoc = desc;
+ javaDoc += "\n\n@param componentName to use a custom component name for the endpoint instead of the default name";
+ javaDoc += "\n@param path " + pathParameterJavaDoc(componentModel);
+ method.getJavaDoc().setText(javaDoc);
+ if (componentModel.isDeprecated()) {
+ method.addAnnotation(Deprecated.class);
+ }
+ }
+
+ // we only want the first alias (master scheme) as static builders
+ if (firstAlias) {
+ // copy method for the static builders (which allows to use the endpoint-dsl from outside EndpointRouteBuilder)
+ method = method.copy();
+ method.setStatic();
+ method.setReturnType(builderClass.getCanonicalName().replace('$', '.'));
+ method.setBodyF("return %s.%s(%s);", javaClass.getCanonicalName(), "endpointBuilder", "componentName, path");
+ staticBuilders.add(method);
}
- // copy method for the static builders (which allows to use the endpoint-dsl from outside EndpointRouteBuilder)
- method = method.copy();
- method.setStatic();
- method.setReturnType(builderClass.getCanonicalName().replace('$', '.'));
- method.setBodyF("return %s.%s(%s);", javaClass.getCanonicalName(), "endpointBuilder", "componentName, path");
- staticBuilders.add(method);
+ firstAlias = false;
}
}