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
The following commit(s) were added to refs/heads/main by this push: new a65eac0f757 Regen a65eac0f757 is described below commit a65eac0f7573c14894302436eef882840bd5f9fd Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Tue May 2 18:17:18 2023 +0200 Regen --- .../org/apache/camel/catalog/components/as2.json | 4 +- .../endpoint/dsl/AS2EndpointBuilderFactory.java | 296 ++++++++++++++------- .../endpoint/dsl/JpaEndpointBuilderFactory.java | 58 ++++ 3 files changed, 255 insertions(+), 103 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/as2.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/as2.json index c0e541a4a07..c5d81cdf3ab 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/as2.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/as2.json @@ -43,6 +43,7 @@ "ediMessageTransferEncoding": { "kind": "parameter", "displayName": "Edi Message Transfer Encoding", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "The transfer encoding of EDI message." }, "ediMessageType": { "kind": "parameter", "displayName": "Edi Message Type", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.http.entity.ContentType", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "The content type of EDI message. One of application\/edifact, application\/edi-x12, application\/edi-consent" }, "from": { "kind": "parameter", "displayName": "From", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "The value of the From header of AS2 message." }, + "hostnameVerifier": { "kind": "parameter", "displayName": "Hostname Verifier", "group": "common", "label": "", "required": false, "type": "object", "javaType": "javax.net.ssl.HostnameVerifier", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "Set hostname verifier for SSL session." }, "httpConnectionPoolSize": { "kind": "parameter", "displayName": "Http Connection Pool Size", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "5", "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "The maximum size of the connection pool for http connections (client only)" }, "httpConnectionPoolTtl": { "kind": "parameter", "displayName": "Http Connection Pool Ttl", "group": "common", "label": "", "required": false, "type": "object", "javaType": "java.time.Duration", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "15m", "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "The time to live for connections in the connection pool (client only)" }, "httpConnectionTimeout": { "kind": "parameter", "displayName": "Http Connection Timeout", "group": "common", "label": "", "required": false, "type": "object", "javaType": "java.time.Duration", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "5s", "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "The timeout of the http connection (client only)" }, @@ -53,6 +54,7 @@ "server": { "kind": "parameter", "displayName": "Server", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "Camel AS2 Server Endpoint", "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "The value included in the Server message header identifying the AS2 Server." }, "serverFqdn": { "kind": "parameter", "displayName": "Server Fqdn", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "camel.apache.org", "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "The Server Fully Qualified Domain Name (FQDN). Used in message ids sent by endpoint." }, "serverPortNumber": { "kind": "parameter", "displayName": "Server Port Number", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "The port number of server." }, + "sslContext": { "kind": "parameter", "displayName": "Ssl Context", "group": "common", "label": "", "required": false, "type": "object", "javaType": "javax.net.ssl.SSLContext", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "Set SSL context for connection to remote server." }, "subject": { "kind": "parameter", "displayName": "Subject", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "The value of Subject header of AS2 message." }, "targetHostname": { "kind": "parameter", "displayName": "Target Hostname", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "The host name (IP or DNS name) of target host." }, "targetPortNumber": { "kind": "parameter", "displayName": "Target Port Number", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "80", "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "The port number of target host. -1 indicates the scheme default port." }, @@ -67,7 +69,7 @@ "signingAlgorithm": { "kind": "parameter", "displayName": "Signing Algorithm", "group": "security", "label": "security", "required": false, "type": "object", "javaType": "org.apache.camel.component.as2.api.AS2SignatureAlgorithm", "enum": [ "SHA3_224WITHRSA", "SHA3_256WITHRSA", "SHA3_384withRSA", "SHA3_512WITHRSA", "MD5WITHRSA", "SHA1WITHRSA", "MD2WITHRSA", "SHA224WITHRSA", "SHA256WITHRSA", "SHA384WITHRSA", "SHA512WITHRSA", "RIPEMD128WITHRSA", "RIPEMD160WITHRSA", "RIPEMD256WITHRSA", " [...] "signingCertificateChain": { "kind": "parameter", "displayName": "Signing Certificate Chain", "group": "security", "label": "security", "required": false, "type": "object", "javaType": "java.security.cert.Certificate[]", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "The chain of certificates used to sign EDI message." }, "signingPrivateKey": { "kind": "parameter", "displayName": "Signing Private Key", "group": "security", "label": "security", "required": false, "type": "object", "javaType": "java.security.PrivateKey", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "The key used to sign the EDI message." }, - "validateSigningCertificateChain": { "kind": "parameter", "displayName": "Validate Signing Certificate Chain", "group": "security", "label": "security", "required": false, "type": "object", "javaType": "java.security.cert.Certificate[]", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "Certifiates to validate the messages signature against. If not s [...] + "validateSigningCertificateChain": { "kind": "parameter", "displayName": "Validate Signing Certificate Chain", "group": "security", "label": "security", "required": false, "type": "object", "javaType": "java.security.cert.Certificate[]", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "Certificates to validate the message's signature against. If not [...] }, "apis": { "client": { "consumerOnly": false, "producerOnly": true, "description": "Sends EDI Messages over HTTP", "methods": { "send": { "description": "Send ediMessage to trading partner", "signatures": [ "org.apache.http.protocol.HttpCoreContext send(String ediMessage, String requestUri, String subject, String from, String as2From, String as2To, org.apache.camel.component.as2.api.AS2MessageStructure as2MessageStructure, org.apache.http.entity.ContentType ediMessageContentType, String ediMess [...] diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AS2EndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AS2EndpointBuilderFactory.java index c869b5087d2..f21f9aa554a 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AS2EndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AS2EndpointBuilderFactory.java @@ -264,6 +264,38 @@ public interface AS2EndpointBuilderFactory { doSetProperty("from", from); return this; } + /** + * Set hostname verifier for SSL session. + * + * The option is a: + * <code>javax.net.ssl.HostnameVerifier</code> type. + * + * Group: common + * + * @param hostnameVerifier the value to set + * @return the dsl builder + */ + default AS2EndpointConsumerBuilder hostnameVerifier( + javax.net.ssl.HostnameVerifier hostnameVerifier) { + doSetProperty("hostnameVerifier", hostnameVerifier); + return this; + } + /** + * Set hostname verifier for SSL session. + * + * The option will be converted to a + * <code>javax.net.ssl.HostnameVerifier</code> type. + * + * Group: common + * + * @param hostnameVerifier the value to set + * @return the dsl builder + */ + default AS2EndpointConsumerBuilder hostnameVerifier( + String hostnameVerifier) { + doSetProperty("hostnameVerifier", hostnameVerifier); + return this; + } /** * The maximum size of the connection pool for http connections (client * only). @@ -507,6 +539,37 @@ public interface AS2EndpointBuilderFactory { doSetProperty("serverPortNumber", serverPortNumber); return this; } + /** + * Set SSL context for connection to remote server. + * + * The option is a: <code>javax.net.ssl.SSLContext</code> + * type. + * + * Group: common + * + * @param sslContext the value to set + * @return the dsl builder + */ + default AS2EndpointConsumerBuilder sslContext( + javax.net.ssl.SSLContext sslContext) { + doSetProperty("sslContext", sslContext); + return this; + } + /** + * Set SSL context for connection to remote server. + * + * The option will be converted to a + * <code>javax.net.ssl.SSLContext</code> type. + * + * Group: common + * + * @param sslContext the value to set + * @return the dsl builder + */ + default AS2EndpointConsumerBuilder sslContext(String sslContext) { + doSetProperty("sslContext", sslContext); + return this; + } /** * The value of Subject header of AS2 message. * @@ -812,7 +875,7 @@ public interface AS2EndpointBuilderFactory { return this; } /** - * Certifiates to validate the messages signature against. If not + * Certificates to validate the message's signature against. If not * supplied, validation will not take place. Server: validates the * received message. Client: not yet implemented, should validate the * MDN. @@ -831,7 +894,7 @@ public interface AS2EndpointBuilderFactory { return this; } /** - * Certifiates to validate the messages signature against. If not + * Certificates to validate the message's signature against. If not * supplied, validation will not take place. Server: validates the * received message. Client: not yet implemented, should validate the * MDN. @@ -849,38 +912,6 @@ public interface AS2EndpointBuilderFactory { doSetProperty("validateSigningCertificateChain", validateSigningCertificateChain); return this; } - - /** - * Add sslContext. - * - * The option is a: <code>javax.net.ssl.SSLContext</code> - * type. - * - * Group: common - * - * @param sslContext the value to set - * @return the dsl builder - */ - default AS2EndpointConsumerBuilder sslContext( - javax.net.ssl.SSLContext sslContext) { - doSetProperty("sslContext", sslContext); - return this; - } - /** - * Add sslContext. - * - * The option will be converted to a - * <code>javax.net.ssl.SSLContext</code> type. - * - * Group: common - * - * @param sslContext the value to set - * @return the dsl builder - */ - default AS2EndpointConsumerBuilder sslContext(String sslContext) { - doSetProperty("sslContext", sslContext); - return this; - } } /** @@ -1194,6 +1225,38 @@ public interface AS2EndpointBuilderFactory { doSetProperty("from", from); return this; } + /** + * Set hostname verifier for SSL session. + * + * The option is a: + * <code>javax.net.ssl.HostnameVerifier</code> type. + * + * Group: common + * + * @param hostnameVerifier the value to set + * @return the dsl builder + */ + default AS2EndpointProducerBuilder hostnameVerifier( + javax.net.ssl.HostnameVerifier hostnameVerifier) { + doSetProperty("hostnameVerifier", hostnameVerifier); + return this; + } + /** + * Set hostname verifier for SSL session. + * + * The option will be converted to a + * <code>javax.net.ssl.HostnameVerifier</code> type. + * + * Group: common + * + * @param hostnameVerifier the value to set + * @return the dsl builder + */ + default AS2EndpointProducerBuilder hostnameVerifier( + String hostnameVerifier) { + doSetProperty("hostnameVerifier", hostnameVerifier); + return this; + } /** * The maximum size of the connection pool for http connections (client * only). @@ -1437,6 +1500,37 @@ public interface AS2EndpointBuilderFactory { doSetProperty("serverPortNumber", serverPortNumber); return this; } + /** + * Set SSL context for connection to remote server. + * + * The option is a: <code>javax.net.ssl.SSLContext</code> + * type. + * + * Group: common + * + * @param sslContext the value to set + * @return the dsl builder + */ + default AS2EndpointProducerBuilder sslContext( + javax.net.ssl.SSLContext sslContext) { + doSetProperty("sslContext", sslContext); + return this; + } + /** + * Set SSL context for connection to remote server. + * + * The option will be converted to a + * <code>javax.net.ssl.SSLContext</code> type. + * + * Group: common + * + * @param sslContext the value to set + * @return the dsl builder + */ + default AS2EndpointProducerBuilder sslContext(String sslContext) { + doSetProperty("sslContext", sslContext); + return this; + } /** * The value of Subject header of AS2 message. * @@ -1742,7 +1836,7 @@ public interface AS2EndpointBuilderFactory { return this; } /** - * Certifiates to validate the messages signature against. If not + * Certificates to validate the message's signature against. If not * supplied, validation will not take place. Server: validates the * received message. Client: not yet implemented, should validate the * MDN. @@ -1761,7 +1855,7 @@ public interface AS2EndpointBuilderFactory { return this; } /** - * Certifiates to validate the messages signature against. If not + * Certificates to validate the message's signature against. If not * supplied, validation will not take place. Server: validates the * received message. Client: not yet implemented, should validate the * MDN. @@ -1779,38 +1873,6 @@ public interface AS2EndpointBuilderFactory { doSetProperty("validateSigningCertificateChain", validateSigningCertificateChain); return this; } - - /** - * Add sslContext. - * - * The option is a: <code>javax.net.ssl.SSLContext</code> - * type. - * - * Group: common - * - * @param sslContext the value to set - * @return the dsl builder - */ - default AS2EndpointProducerBuilder sslContext( - javax.net.ssl.SSLContext sslContext) { - doSetProperty("sslContext", sslContext); - return this; - } - /** - * Add sslContext. - * - * The option will be converted to a - * <code>javax.net.ssl.SSLContext</code> type. - * - * Group: common - * - * @param sslContext the value to set - * @return the dsl builder - */ - default AS2EndpointProducerBuilder sslContext(String sslContext) { - doSetProperty("sslContext", sslContext); - return this; - } } /** @@ -2103,6 +2165,37 @@ public interface AS2EndpointBuilderFactory { doSetProperty("from", from); return this; } + /** + * Set hostname verifier for SSL session. + * + * The option is a: + * <code>javax.net.ssl.HostnameVerifier</code> type. + * + * Group: common + * + * @param hostnameVerifier the value to set + * @return the dsl builder + */ + default AS2EndpointBuilder hostnameVerifier( + javax.net.ssl.HostnameVerifier hostnameVerifier) { + doSetProperty("hostnameVerifier", hostnameVerifier); + return this; + } + /** + * Set hostname verifier for SSL session. + * + * The option will be converted to a + * <code>javax.net.ssl.HostnameVerifier</code> type. + * + * Group: common + * + * @param hostnameVerifier the value to set + * @return the dsl builder + */ + default AS2EndpointBuilder hostnameVerifier(String hostnameVerifier) { + doSetProperty("hostnameVerifier", hostnameVerifier); + return this; + } /** * The maximum size of the connection pool for http connections (client * only). @@ -2342,6 +2435,37 @@ public interface AS2EndpointBuilderFactory { doSetProperty("serverPortNumber", serverPortNumber); return this; } + /** + * Set SSL context for connection to remote server. + * + * The option is a: <code>javax.net.ssl.SSLContext</code> + * type. + * + * Group: common + * + * @param sslContext the value to set + * @return the dsl builder + */ + default AS2EndpointBuilder sslContext( + javax.net.ssl.SSLContext sslContext) { + doSetProperty("sslContext", sslContext); + return this; + } + /** + * Set SSL context for connection to remote server. + * + * The option will be converted to a + * <code>javax.net.ssl.SSLContext</code> type. + * + * Group: common + * + * @param sslContext the value to set + * @return the dsl builder + */ + default AS2EndpointBuilder sslContext(String sslContext) { + doSetProperty("sslContext", sslContext); + return this; + } /** * The value of Subject header of AS2 message. * @@ -2643,7 +2767,7 @@ public interface AS2EndpointBuilderFactory { return this; } /** - * Certifiates to validate the messages signature against. If not + * Certificates to validate the message's signature against. If not * supplied, validation will not take place. Server: validates the * received message. Client: not yet implemented, should validate the * MDN. @@ -2662,7 +2786,7 @@ public interface AS2EndpointBuilderFactory { return this; } /** - * Certifiates to validate the messages signature against. If not + * Certificates to validate the message's signature against. If not * supplied, validation will not take place. Server: validates the * received message. Client: not yet implemented, should validate the * MDN. @@ -2680,38 +2804,6 @@ public interface AS2EndpointBuilderFactory { doSetProperty("validateSigningCertificateChain", validateSigningCertificateChain); return this; } - - /** - * Add sslContext. - * - * The option is a: <code>javax.net.ssl.SSLContext</code> - * type. - * - * Group: common - * - * @param sslContext the value to set - * @return the dsl builder - */ - default AS2EndpointBuilder sslContext( - javax.net.ssl.SSLContext sslContext) { - doSetProperty("sslContext", sslContext); - return this; - } - /** - * Add sslContext. - * - * The option will be converted to a - * <code>javax.net.ssl.SSLContext</code> type. - * - * Group: common - * - * @param sslContext the value to set - * @return the dsl builder - */ - default AS2EndpointBuilder sslContext(String sslContext) { - doSetProperty("sslContext", sslContext); - return this; - } } /** diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JpaEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JpaEndpointBuilderFactory.java index 7f4fda597b6..45e1aca8964 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JpaEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JpaEndpointBuilderFactory.java @@ -1509,6 +1509,36 @@ public interface JpaEndpointBuilderFactory { doSetProperty("findEntity", findEntity); return this; } + /** + * Set the position of the first result to retrieve. + * + * The option is a: <code>int</code> type. + * + * Default: -1 + * Group: producer + * + * @param firstResult the value to set + * @return the dsl builder + */ + default JpaEndpointProducerBuilder firstResult(int firstResult) { + doSetProperty("firstResult", firstResult); + return this; + } + /** + * Set the position of the first result to retrieve. + * + * The option will be converted to a <code>int</code> type. + * + * Default: -1 + * Group: producer + * + * @param firstResult the value to set + * @return the dsl builder + */ + default JpaEndpointProducerBuilder firstResult(String firstResult) { + doSetProperty("firstResult", firstResult); + return this; + } /** * Flushes the EntityManager after the entity bean has been persisted. * @@ -2182,6 +2212,34 @@ public interface JpaEndpointBuilderFactory { public String jpaParameters() { return "JpaParameters"; } + + /** + * Defines the maximum number of results to retrieve on the query; takes + * precedence over the value set on the endpoint, if any. + * + * The option is a: {@code } type. + * + * Group: producer + * + * @return the name of the header {@code JpaMaximumResults}. + */ + public String jpaMaximumResults() { + return "JpaMaximumResults"; + } + + /** + * Defines the position of the first result to retrieve; takes + * precedence over the value set on the endpoint, if any. + * + * The option is a: {@code } type. + * + * Group: producer + * + * @return the name of the header {@code JpaFirstResult}. + */ + public String jpaFirstResult() { + return "JpaFirstResult"; + } } static JpaEndpointBuilder endpointBuilder(String componentName, String path) { class JpaEndpointBuilderImpl extends AbstractEndpointBuilder implements JpaEndpointBuilder, AdvancedJpaEndpointBuilder {