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 c8c1e410dc4 Regen for commit 81c8997cb4217e3d982df345a084eb9bb61b179b c8c1e410dc4 is described below commit c8c1e410dc494d7e41db46cc2f44d0f19432d442 Author: oscerd <osc...@users.noreply.github.com> AuthorDate: Sun Jan 29 18:38:34 2023 +0000 Regen for commit 81c8997cb4217e3d982df345a084eb9bb61b179b Signed-off-by: GitHub <nore...@github.com> --- .../org/apache/camel/catalog/components/as2.json | 19 +- .../endpoint/dsl/AS2EndpointBuilderFactory.java | 1202 +++++++++----------- 2 files changed, 551 insertions(+), 670 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 9c9f6756db1..2467979125d 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 @@ -39,12 +39,9 @@ "attachedFileName": { "kind": "parameter", "displayName": "Attached File Name", "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 name of the attached file" }, "clientFqdn": { "kind": "parameter", "displayName": "Client 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 Client Fully Qualified Domain Name (FQDN). Used in message ids sent by endpoint." }, "compressionAlgorithm": { "kind": "parameter", "displayName": "Compression Algorithm", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.as2.api.AS2CompressionAlgorithm", "enum": [ "ZLIB" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "The algorithm used to compress EDI message." }, - "decryptingPrivateKey": { "kind": "parameter", "displayName": "Decrypting Private Key", "group": "common", "label": "", "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 encrypt the EDI message." }, "dispositionNotificationTo": { "kind": "parameter", "displayName": "Disposition Notification To", "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 Disposition-Notification-To header. Assigning a value to this parameter requests a mes [...] "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" }, - "encryptingAlgorithm": { "kind": "parameter", "displayName": "Encrypting Algorithm", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.as2.api.AS2EncryptionAlgorithm", "enum": [ "AES128_CBC", "AES192_CBC", "AES256_CBC", "AES128_CCM", "AES192_CCM", "AES256_CCM", "AES128_GCM", "AES192_GCM", "AES256_GCM", "CAMELLIA128_CBC", "CAMELLIA192_CBC", "CAMELLIA256_CBC", "CAST5_CBC", "DES_CBC", "DES_EDE3_CBC", "GOST28147_GCFB", "IDEA_CBC" [...] - "encryptingCertificateChain": { "kind": "parameter", "displayName": "Encrypting Certificate Chain", "group": "common", "label": "", "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 encrypt EDI message." }, "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." }, "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)" }, @@ -56,17 +53,21 @@ "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." }, - "signedReceiptMicAlgorithms": { "kind": "parameter", "displayName": "Signed Receipt Mic Algorithms", "group": "common", "label": "", "required": false, "type": "array", "javaType": "java.lang.String[]", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "The list of algorithms, in order of preference, requested to generate a message integrity check (MI [...] - "signingAlgorithm": { "kind": "parameter", "displayName": "Signing Algorithm", "group": "common", "label": "", "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", "SHA224WITH [...] - "signingCertificateChain": { "kind": "parameter", "displayName": "Signing Certificate Chain", "group": "common", "label": "", "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": "common", "label": "", "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." }, "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, "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "The port number of target host. -1 indicates the scheme default port." }, + "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." }, "userAgent": { "kind": "parameter", "displayName": "User Agent", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "Camel AS2 Client Endpoint", "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "The value included in the User-Agent message header identifying the AS2 user agent." }, "exceptionHandler": { "kind": "parameter", "displayName": "Exception Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", "deprecated": false, "autowired": false, "secret": false, "description": "To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the con [...] "exchangePattern": { "kind": "parameter", "displayName": "Exchange Pattern", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut", "InOptionalOut" ], "deprecated": false, "autowired": false, "secret": false, "description": "Sets the exchange pattern when the consumer creates an exchange." }, - "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may other [...] + "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may other [...] + "decryptingPrivateKey": { "kind": "parameter", "displayName": "Decrypting 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 encrypt the EDI message." }, + "encryptingAlgorithm": { "kind": "parameter", "displayName": "Encrypting Algorithm", "group": "security", "label": "security", "required": false, "type": "object", "javaType": "org.apache.camel.component.as2.api.AS2EncryptionAlgorithm", "enum": [ "AES128_CBC", "AES192_CBC", "AES256_CBC", "AES128_CCM", "AES192_CCM", "AES256_CCM", "AES128_GCM", "AES192_GCM", "AES256_GCM", "CAMELLIA128_CBC", "CAMELLIA192_CBC", "CAMELLIA256_CBC", "CAST5_CBC", "DES_CBC", "DES_EDE3_CBC", "GOST28147_GCFB", [...] + "encryptingCertificateChain": { "kind": "parameter", "displayName": "Encrypting 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 encrypt EDI message." }, + "signedReceiptMicAlgorithms": { "kind": "parameter", "displayName": "Signed Receipt Mic Algorithms", "group": "security", "label": "security", "required": false, "type": "array", "javaType": "java.lang.String[]", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.as2.AS2Configuration", "configurationField": "configuration", "description": "The list of algorithms, in order of preference, requested to generate a message integrity [...] + "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 [...] }, "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 0e4765d8b13..7173e8dd63f 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 @@ -185,6 +185,38 @@ public interface AS2EndpointBuilderFactory { doSetProperty("compressionAlgorithm", compressionAlgorithm); return this; } + /** + * The key used to encrypt the EDI message. + * + * The option is a: <code>java.security.PrivateKey</code> + * type. + * + * Group: common + * + * @param decryptingPrivateKey the value to set + * @return the dsl builder + */ + default AS2EndpointConsumerBuilder decryptingPrivateKey( + java.security.PrivateKey decryptingPrivateKey) { + doSetProperty("decryptingPrivateKey", decryptingPrivateKey); + return this; + } + /** + * The key used to encrypt the EDI message. + * + * The option will be converted to a + * <code>java.security.PrivateKey</code> type. + * + * Group: common + * + * @param decryptingPrivateKey the value to set + * @return the dsl builder + */ + default AS2EndpointConsumerBuilder decryptingPrivateKey( + String decryptingPrivateKey) { + doSetProperty("decryptingPrivateKey", decryptingPrivateKey); + return this; + } /** * The value of the Disposition-Notification-To header. Assigning a * value to this parameter requests a message disposition notification @@ -250,6 +282,70 @@ public interface AS2EndpointBuilderFactory { doSetProperty("ediMessageType", ediMessageType); return this; } + /** + * The algorithm used to encrypt EDI message. + * + * The option is a: + * <code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code> type. + * + * Group: common + * + * @param encryptingAlgorithm the value to set + * @return the dsl builder + */ + default AS2EndpointConsumerBuilder encryptingAlgorithm( + org.apache.camel.component.as2.api.AS2EncryptionAlgorithm encryptingAlgorithm) { + doSetProperty("encryptingAlgorithm", encryptingAlgorithm); + return this; + } + /** + * The algorithm used to encrypt EDI message. + * + * The option will be converted to a + * <code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code> type. + * + * Group: common + * + * @param encryptingAlgorithm the value to set + * @return the dsl builder + */ + default AS2EndpointConsumerBuilder encryptingAlgorithm( + String encryptingAlgorithm) { + doSetProperty("encryptingAlgorithm", encryptingAlgorithm); + return this; + } + /** + * The chain of certificates used to encrypt EDI message. + * + * The option is a: + * <code>java.security.cert.Certificate[]</code> type. + * + * Group: common + * + * @param encryptingCertificateChain the value to set + * @return the dsl builder + */ + default AS2EndpointConsumerBuilder encryptingCertificateChain( + java.security.cert.Certificate[] encryptingCertificateChain) { + doSetProperty("encryptingCertificateChain", encryptingCertificateChain); + return this; + } + /** + * The chain of certificates used to encrypt EDI message. + * + * The option will be converted to a + * <code>java.security.cert.Certificate[]</code> type. + * + * Group: common + * + * @param encryptingCertificateChain the value to set + * @return the dsl builder + */ + default AS2EndpointConsumerBuilder encryptingCertificateChain( + String encryptingCertificateChain) { + doSetProperty("encryptingCertificateChain", encryptingCertificateChain); + return this; + } /** * The value of the From header of AS2 message. * @@ -508,345 +604,209 @@ public interface AS2EndpointBuilderFactory { return this; } /** - * The value of Subject header of AS2 message. + * The list of algorithms, in order of preference, requested to generate + * a message integrity check (MIC) returned in message dispostion + * notification (MDN). * - * The option is a: <code>java.lang.String</code> type. + * The option is a: <code>java.lang.String[]</code> type. * * Group: common * - * @param subject the value to set + * @param signedReceiptMicAlgorithms the value to set * @return the dsl builder */ - default AS2EndpointConsumerBuilder subject(String subject) { - doSetProperty("subject", subject); + default AS2EndpointConsumerBuilder signedReceiptMicAlgorithms( + String[] signedReceiptMicAlgorithms) { + doSetProperty("signedReceiptMicAlgorithms", signedReceiptMicAlgorithms); return this; } /** - * The host name (IP or DNS name) of target host. + * The list of algorithms, in order of preference, requested to generate + * a message integrity check (MIC) returned in message dispostion + * notification (MDN). * - * The option is a: <code>java.lang.String</code> type. + * The option will be converted to a + * <code>java.lang.String[]</code> type. * * Group: common * - * @param targetHostname the value to set + * @param signedReceiptMicAlgorithms the value to set * @return the dsl builder */ - default AS2EndpointConsumerBuilder targetHostname(String targetHostname) { - doSetProperty("targetHostname", targetHostname); + default AS2EndpointConsumerBuilder signedReceiptMicAlgorithms( + String signedReceiptMicAlgorithms) { + doSetProperty("signedReceiptMicAlgorithms", signedReceiptMicAlgorithms); return this; } /** - * The port number of target host. -1 indicates the scheme default port. + * The algorithm used to sign EDI message. * - * The option is a: <code>java.lang.Integer</code> type. + * The option is a: + * <code>org.apache.camel.component.as2.api.AS2SignatureAlgorithm</code> type. * - * Default: 80 * Group: common * - * @param targetPortNumber the value to set + * @param signingAlgorithm the value to set * @return the dsl builder */ - default AS2EndpointConsumerBuilder targetPortNumber( - Integer targetPortNumber) { - doSetProperty("targetPortNumber", targetPortNumber); + default AS2EndpointConsumerBuilder signingAlgorithm( + org.apache.camel.component.as2.api.AS2SignatureAlgorithm signingAlgorithm) { + doSetProperty("signingAlgorithm", signingAlgorithm); return this; } /** - * The port number of target host. -1 indicates the scheme default port. + * The algorithm used to sign EDI message. * * The option will be converted to a - * <code>java.lang.Integer</code> type. + * <code>org.apache.camel.component.as2.api.AS2SignatureAlgorithm</code> type. * - * Default: 80 * Group: common * - * @param targetPortNumber the value to set + * @param signingAlgorithm the value to set * @return the dsl builder */ - default AS2EndpointConsumerBuilder targetPortNumber( - String targetPortNumber) { - doSetProperty("targetPortNumber", targetPortNumber); + default AS2EndpointConsumerBuilder signingAlgorithm( + String signingAlgorithm) { + doSetProperty("signingAlgorithm", signingAlgorithm); return this; } /** - * The value included in the User-Agent message header identifying the - * AS2 user agent. + * The chain of certificates used to sign EDI message. * - * The option is a: <code>java.lang.String</code> type. + * The option is a: + * <code>java.security.cert.Certificate[]</code> type. * - * Default: Camel AS2 Client Endpoint * Group: common * - * @param userAgent the value to set + * @param signingCertificateChain the value to set * @return the dsl builder */ - default AS2EndpointConsumerBuilder userAgent(String userAgent) { - doSetProperty("userAgent", userAgent); + default AS2EndpointConsumerBuilder signingCertificateChain( + java.security.cert.Certificate[] signingCertificateChain) { + doSetProperty("signingCertificateChain", signingCertificateChain); return this; } /** - * The key used to encrypt the EDI message. + * The chain of certificates used to sign EDI message. + * + * The option will be converted to a + * <code>java.security.cert.Certificate[]</code> type. + * + * Group: common + * + * @param signingCertificateChain the value to set + * @return the dsl builder + */ + default AS2EndpointConsumerBuilder signingCertificateChain( + String signingCertificateChain) { + doSetProperty("signingCertificateChain", signingCertificateChain); + return this; + } + /** + * The key used to sign the EDI message. * * The option is a: <code>java.security.PrivateKey</code> * type. * - * Group: security + * Group: common * - * @param decryptingPrivateKey the value to set + * @param signingPrivateKey the value to set * @return the dsl builder */ - default AS2EndpointConsumerBuilder decryptingPrivateKey( - java.security.PrivateKey decryptingPrivateKey) { - doSetProperty("decryptingPrivateKey", decryptingPrivateKey); + default AS2EndpointConsumerBuilder signingPrivateKey( + java.security.PrivateKey signingPrivateKey) { + doSetProperty("signingPrivateKey", signingPrivateKey); return this; } /** - * The key used to encrypt the EDI message. + * The key used to sign the EDI message. * * The option will be converted to a * <code>java.security.PrivateKey</code> type. * - * Group: security + * Group: common * - * @param decryptingPrivateKey the value to set + * @param signingPrivateKey the value to set * @return the dsl builder */ - default AS2EndpointConsumerBuilder decryptingPrivateKey( - String decryptingPrivateKey) { - doSetProperty("decryptingPrivateKey", decryptingPrivateKey); + default AS2EndpointConsumerBuilder signingPrivateKey( + String signingPrivateKey) { + doSetProperty("signingPrivateKey", signingPrivateKey); return this; } /** - * The algorithm used to encrypt EDI message. + * The value of Subject header of AS2 message. * - * The option is a: - * <code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code> type. + * The option is a: <code>java.lang.String</code> type. * - * Group: security + * Group: common * - * @param encryptingAlgorithm the value to set + * @param subject the value to set * @return the dsl builder */ - default AS2EndpointConsumerBuilder encryptingAlgorithm( - org.apache.camel.component.as2.api.AS2EncryptionAlgorithm encryptingAlgorithm) { - doSetProperty("encryptingAlgorithm", encryptingAlgorithm); + default AS2EndpointConsumerBuilder subject(String subject) { + doSetProperty("subject", subject); return this; } /** - * The algorithm used to encrypt EDI message. + * The host name (IP or DNS name) of target host. * - * The option will be converted to a - * <code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code> type. + * The option is a: <code>java.lang.String</code> type. * - * Group: security + * Group: common * - * @param encryptingAlgorithm the value to set + * @param targetHostname the value to set * @return the dsl builder */ - default AS2EndpointConsumerBuilder encryptingAlgorithm( - String encryptingAlgorithm) { - doSetProperty("encryptingAlgorithm", encryptingAlgorithm); + default AS2EndpointConsumerBuilder targetHostname(String targetHostname) { + doSetProperty("targetHostname", targetHostname); return this; } /** - * The chain of certificates used to encrypt EDI message. + * The port number of target host. -1 indicates the scheme default port. * - * The option is a: - * <code>java.security.cert.Certificate[]</code> type. + * The option is a: <code>java.lang.Integer</code> type. * - * Group: security + * Group: common * - * @param encryptingCertificateChain the value to set + * @param targetPortNumber the value to set * @return the dsl builder */ - default AS2EndpointConsumerBuilder encryptingCertificateChain( - java.security.cert.Certificate[] encryptingCertificateChain) { - doSetProperty("encryptingCertificateChain", encryptingCertificateChain); + default AS2EndpointConsumerBuilder targetPortNumber( + Integer targetPortNumber) { + doSetProperty("targetPortNumber", targetPortNumber); return this; } /** - * The chain of certificates used to encrypt EDI message. + * The port number of target host. -1 indicates the scheme default port. * * The option will be converted to a - * <code>java.security.cert.Certificate[]</code> type. + * <code>java.lang.Integer</code> type. * - * Group: security + * Group: common * - * @param encryptingCertificateChain the value to set + * @param targetPortNumber the value to set * @return the dsl builder */ - default AS2EndpointConsumerBuilder encryptingCertificateChain( - String encryptingCertificateChain) { - doSetProperty("encryptingCertificateChain", encryptingCertificateChain); + default AS2EndpointConsumerBuilder targetPortNumber( + String targetPortNumber) { + doSetProperty("targetPortNumber", targetPortNumber); return this; } /** - * The list of algorithms, in order of preference, requested to generate - * a message integrity check (MIC) returned in message dispostion - * notification (MDN). - * - * The option is a: <code>java.lang.String[]</code> type. - * - * Group: security - * - * @param signedReceiptMicAlgorithms the value to set - * @return the dsl builder - */ - default AS2EndpointConsumerBuilder signedReceiptMicAlgorithms( - String[] signedReceiptMicAlgorithms) { - doSetProperty("signedReceiptMicAlgorithms", signedReceiptMicAlgorithms); - return this; - } - /** - * The list of algorithms, in order of preference, requested to generate - * a message integrity check (MIC) returned in message dispostion - * notification (MDN). - * - * The option will be converted to a - * <code>java.lang.String[]</code> type. - * - * Group: security - * - * @param signedReceiptMicAlgorithms the value to set - * @return the dsl builder - */ - default AS2EndpointConsumerBuilder signedReceiptMicAlgorithms( - String signedReceiptMicAlgorithms) { - doSetProperty("signedReceiptMicAlgorithms", signedReceiptMicAlgorithms); - return this; - } - /** - * The algorithm used to sign EDI message. - * - * The option is a: - * <code>org.apache.camel.component.as2.api.AS2SignatureAlgorithm</code> type. - * - * Group: security - * - * @param signingAlgorithm the value to set - * @return the dsl builder - */ - default AS2EndpointConsumerBuilder signingAlgorithm( - org.apache.camel.component.as2.api.AS2SignatureAlgorithm signingAlgorithm) { - doSetProperty("signingAlgorithm", signingAlgorithm); - return this; - } - /** - * The algorithm used to sign EDI message. - * - * The option will be converted to a - * <code>org.apache.camel.component.as2.api.AS2SignatureAlgorithm</code> type. - * - * Group: security - * - * @param signingAlgorithm the value to set - * @return the dsl builder - */ - default AS2EndpointConsumerBuilder signingAlgorithm( - String signingAlgorithm) { - doSetProperty("signingAlgorithm", signingAlgorithm); - return this; - } - /** - * The chain of certificates used to sign EDI message. - * - * The option is a: - * <code>java.security.cert.Certificate[]</code> type. - * - * Group: security - * - * @param signingCertificateChain the value to set - * @return the dsl builder - */ - default AS2EndpointConsumerBuilder signingCertificateChain( - java.security.cert.Certificate[] signingCertificateChain) { - doSetProperty("signingCertificateChain", signingCertificateChain); - return this; - } - /** - * The chain of certificates used to sign EDI message. - * - * The option will be converted to a - * <code>java.security.cert.Certificate[]</code> type. - * - * Group: security - * - * @param signingCertificateChain the value to set - * @return the dsl builder - */ - default AS2EndpointConsumerBuilder signingCertificateChain( - String signingCertificateChain) { - doSetProperty("signingCertificateChain", signingCertificateChain); - return this; - } - /** - * The key used to sign the EDI message. - * - * The option is a: <code>java.security.PrivateKey</code> - * type. - * - * Group: security - * - * @param signingPrivateKey the value to set - * @return the dsl builder - */ - default AS2EndpointConsumerBuilder signingPrivateKey( - java.security.PrivateKey signingPrivateKey) { - doSetProperty("signingPrivateKey", signingPrivateKey); - return this; - } - /** - * The key used to sign the EDI message. - * - * The option will be converted to a - * <code>java.security.PrivateKey</code> type. - * - * Group: security - * - * @param signingPrivateKey the value to set - * @return the dsl builder - */ - default AS2EndpointConsumerBuilder signingPrivateKey( - String signingPrivateKey) { - doSetProperty("signingPrivateKey", signingPrivateKey); - return this; - } - /** - * Certifiates to validate the messages signature against. If not - * supplied, validation will not take place. Server: validates the - * received message. Client: not yet implemented, should validate the - * MDN. - * - * The option is a: - * <code>java.security.cert.Certificate[]</code> type. - * - * Group: security - * - * @param validateSigningCertificateChain the value to set - * @return the dsl builder - */ - default AS2EndpointConsumerBuilder validateSigningCertificateChain( - java.security.cert.Certificate[] validateSigningCertificateChain) { - doSetProperty("validateSigningCertificateChain", validateSigningCertificateChain); - return this; - } - /** - * Certifiates to validate the messages signature against. If not - * supplied, validation will not take place. Server: validates the - * received message. Client: not yet implemented, should validate the - * MDN. + * The value included in the User-Agent message header identifying the + * AS2 user agent. * - * The option will be converted to a - * <code>java.security.cert.Certificate[]</code> type. + * The option is a: <code>java.lang.String</code> type. * - * Group: security + * Default: Camel AS2 Client Endpoint + * Group: common * - * @param validateSigningCertificateChain the value to set + * @param userAgent the value to set * @return the dsl builder */ - default AS2EndpointConsumerBuilder validateSigningCertificateChain( - String validateSigningCertificateChain) { - doSetProperty("validateSigningCertificateChain", validateSigningCertificateChain); + default AS2EndpointConsumerBuilder userAgent(String userAgent) { + doSetProperty("userAgent", userAgent); return this; } } @@ -1083,6 +1043,38 @@ public interface AS2EndpointBuilderFactory { doSetProperty("compressionAlgorithm", compressionAlgorithm); return this; } + /** + * The key used to encrypt the EDI message. + * + * The option is a: <code>java.security.PrivateKey</code> + * type. + * + * Group: common + * + * @param decryptingPrivateKey the value to set + * @return the dsl builder + */ + default AS2EndpointProducerBuilder decryptingPrivateKey( + java.security.PrivateKey decryptingPrivateKey) { + doSetProperty("decryptingPrivateKey", decryptingPrivateKey); + return this; + } + /** + * The key used to encrypt the EDI message. + * + * The option will be converted to a + * <code>java.security.PrivateKey</code> type. + * + * Group: common + * + * @param decryptingPrivateKey the value to set + * @return the dsl builder + */ + default AS2EndpointProducerBuilder decryptingPrivateKey( + String decryptingPrivateKey) { + doSetProperty("decryptingPrivateKey", decryptingPrivateKey); + return this; + } /** * The value of the Disposition-Notification-To header. Assigning a * value to this parameter requests a message disposition notification @@ -1148,6 +1140,70 @@ public interface AS2EndpointBuilderFactory { doSetProperty("ediMessageType", ediMessageType); return this; } + /** + * The algorithm used to encrypt EDI message. + * + * The option is a: + * <code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code> type. + * + * Group: common + * + * @param encryptingAlgorithm the value to set + * @return the dsl builder + */ + default AS2EndpointProducerBuilder encryptingAlgorithm( + org.apache.camel.component.as2.api.AS2EncryptionAlgorithm encryptingAlgorithm) { + doSetProperty("encryptingAlgorithm", encryptingAlgorithm); + return this; + } + /** + * The algorithm used to encrypt EDI message. + * + * The option will be converted to a + * <code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code> type. + * + * Group: common + * + * @param encryptingAlgorithm the value to set + * @return the dsl builder + */ + default AS2EndpointProducerBuilder encryptingAlgorithm( + String encryptingAlgorithm) { + doSetProperty("encryptingAlgorithm", encryptingAlgorithm); + return this; + } + /** + * The chain of certificates used to encrypt EDI message. + * + * The option is a: + * <code>java.security.cert.Certificate[]</code> type. + * + * Group: common + * + * @param encryptingCertificateChain the value to set + * @return the dsl builder + */ + default AS2EndpointProducerBuilder encryptingCertificateChain( + java.security.cert.Certificate[] encryptingCertificateChain) { + doSetProperty("encryptingCertificateChain", encryptingCertificateChain); + return this; + } + /** + * The chain of certificates used to encrypt EDI message. + * + * The option will be converted to a + * <code>java.security.cert.Certificate[]</code> type. + * + * Group: common + * + * @param encryptingCertificateChain the value to set + * @return the dsl builder + */ + default AS2EndpointProducerBuilder encryptingCertificateChain( + String encryptingCertificateChain) { + doSetProperty("encryptingCertificateChain", encryptingCertificateChain); + return this; + } /** * The value of the From header of AS2 message. * @@ -1406,205 +1462,32 @@ public interface AS2EndpointBuilderFactory { return this; } /** - * The value of Subject header of AS2 message. + * The list of algorithms, in order of preference, requested to generate + * a message integrity check (MIC) returned in message dispostion + * notification (MDN). * - * The option is a: <code>java.lang.String</code> type. + * The option is a: <code>java.lang.String[]</code> type. * * Group: common * - * @param subject the value to set + * @param signedReceiptMicAlgorithms the value to set * @return the dsl builder */ - default AS2EndpointProducerBuilder subject(String subject) { - doSetProperty("subject", subject); + default AS2EndpointProducerBuilder signedReceiptMicAlgorithms( + String[] signedReceiptMicAlgorithms) { + doSetProperty("signedReceiptMicAlgorithms", signedReceiptMicAlgorithms); return this; } /** - * The host name (IP or DNS name) of target host. + * The list of algorithms, in order of preference, requested to generate + * a message integrity check (MIC) returned in message dispostion + * notification (MDN). * - * The option is a: <code>java.lang.String</code> type. + * The option will be converted to a + * <code>java.lang.String[]</code> type. * * Group: common * - * @param targetHostname the value to set - * @return the dsl builder - */ - default AS2EndpointProducerBuilder targetHostname(String targetHostname) { - doSetProperty("targetHostname", targetHostname); - return this; - } - /** - * The port number of target host. -1 indicates the scheme default port. - * - * The option is a: <code>java.lang.Integer</code> type. - * - * Default: 80 - * Group: common - * - * @param targetPortNumber the value to set - * @return the dsl builder - */ - default AS2EndpointProducerBuilder targetPortNumber( - Integer targetPortNumber) { - doSetProperty("targetPortNumber", targetPortNumber); - return this; - } - /** - * The port number of target host. -1 indicates the scheme default port. - * - * The option will be converted to a - * <code>java.lang.Integer</code> type. - * - * Default: 80 - * Group: common - * - * @param targetPortNumber the value to set - * @return the dsl builder - */ - default AS2EndpointProducerBuilder targetPortNumber( - String targetPortNumber) { - doSetProperty("targetPortNumber", targetPortNumber); - return this; - } - /** - * The value included in the User-Agent message header identifying the - * AS2 user agent. - * - * The option is a: <code>java.lang.String</code> type. - * - * Default: Camel AS2 Client Endpoint - * Group: common - * - * @param userAgent the value to set - * @return the dsl builder - */ - default AS2EndpointProducerBuilder userAgent(String userAgent) { - doSetProperty("userAgent", userAgent); - return this; - } - /** - * The key used to encrypt the EDI message. - * - * The option is a: <code>java.security.PrivateKey</code> - * type. - * - * Group: security - * - * @param decryptingPrivateKey the value to set - * @return the dsl builder - */ - default AS2EndpointProducerBuilder decryptingPrivateKey( - java.security.PrivateKey decryptingPrivateKey) { - doSetProperty("decryptingPrivateKey", decryptingPrivateKey); - return this; - } - /** - * The key used to encrypt the EDI message. - * - * The option will be converted to a - * <code>java.security.PrivateKey</code> type. - * - * Group: security - * - * @param decryptingPrivateKey the value to set - * @return the dsl builder - */ - default AS2EndpointProducerBuilder decryptingPrivateKey( - String decryptingPrivateKey) { - doSetProperty("decryptingPrivateKey", decryptingPrivateKey); - return this; - } - /** - * The algorithm used to encrypt EDI message. - * - * The option is a: - * <code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code> type. - * - * Group: security - * - * @param encryptingAlgorithm the value to set - * @return the dsl builder - */ - default AS2EndpointProducerBuilder encryptingAlgorithm( - org.apache.camel.component.as2.api.AS2EncryptionAlgorithm encryptingAlgorithm) { - doSetProperty("encryptingAlgorithm", encryptingAlgorithm); - return this; - } - /** - * The algorithm used to encrypt EDI message. - * - * The option will be converted to a - * <code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code> type. - * - * Group: security - * - * @param encryptingAlgorithm the value to set - * @return the dsl builder - */ - default AS2EndpointProducerBuilder encryptingAlgorithm( - String encryptingAlgorithm) { - doSetProperty("encryptingAlgorithm", encryptingAlgorithm); - return this; - } - /** - * The chain of certificates used to encrypt EDI message. - * - * The option is a: - * <code>java.security.cert.Certificate[]</code> type. - * - * Group: security - * - * @param encryptingCertificateChain the value to set - * @return the dsl builder - */ - default AS2EndpointProducerBuilder encryptingCertificateChain( - java.security.cert.Certificate[] encryptingCertificateChain) { - doSetProperty("encryptingCertificateChain", encryptingCertificateChain); - return this; - } - /** - * The chain of certificates used to encrypt EDI message. - * - * The option will be converted to a - * <code>java.security.cert.Certificate[]</code> type. - * - * Group: security - * - * @param encryptingCertificateChain the value to set - * @return the dsl builder - */ - default AS2EndpointProducerBuilder encryptingCertificateChain( - String encryptingCertificateChain) { - doSetProperty("encryptingCertificateChain", encryptingCertificateChain); - return this; - } - /** - * The list of algorithms, in order of preference, requested to generate - * a message integrity check (MIC) returned in message dispostion - * notification (MDN). - * - * The option is a: <code>java.lang.String[]</code> type. - * - * Group: security - * - * @param signedReceiptMicAlgorithms the value to set - * @return the dsl builder - */ - default AS2EndpointProducerBuilder signedReceiptMicAlgorithms( - String[] signedReceiptMicAlgorithms) { - doSetProperty("signedReceiptMicAlgorithms", signedReceiptMicAlgorithms); - return this; - } - /** - * The list of algorithms, in order of preference, requested to generate - * a message integrity check (MIC) returned in message dispostion - * notification (MDN). - * - * The option will be converted to a - * <code>java.lang.String[]</code> type. - * - * Group: security - * * @param signedReceiptMicAlgorithms the value to set * @return the dsl builder */ @@ -1619,7 +1502,7 @@ public interface AS2EndpointBuilderFactory { * The option is a: * <code>org.apache.camel.component.as2.api.AS2SignatureAlgorithm</code> type. * - * Group: security + * Group: common * * @param signingAlgorithm the value to set * @return the dsl builder @@ -1635,7 +1518,7 @@ public interface AS2EndpointBuilderFactory { * The option will be converted to a * <code>org.apache.camel.component.as2.api.AS2SignatureAlgorithm</code> type. * - * Group: security + * Group: common * * @param signingAlgorithm the value to set * @return the dsl builder @@ -1651,7 +1534,7 @@ public interface AS2EndpointBuilderFactory { * The option is a: * <code>java.security.cert.Certificate[]</code> type. * - * Group: security + * Group: common * * @param signingCertificateChain the value to set * @return the dsl builder @@ -1667,7 +1550,7 @@ public interface AS2EndpointBuilderFactory { * The option will be converted to a * <code>java.security.cert.Certificate[]</code> type. * - * Group: security + * Group: common * * @param signingCertificateChain the value to set * @return the dsl builder @@ -1683,7 +1566,7 @@ public interface AS2EndpointBuilderFactory { * The option is a: <code>java.security.PrivateKey</code> * type. * - * Group: security + * Group: common * * @param signingPrivateKey the value to set * @return the dsl builder @@ -1699,7 +1582,7 @@ public interface AS2EndpointBuilderFactory { * The option will be converted to a * <code>java.security.PrivateKey</code> type. * - * Group: security + * Group: common * * @param signingPrivateKey the value to set * @return the dsl builder @@ -1710,41 +1593,78 @@ public interface AS2EndpointBuilderFactory { return this; } /** - * Certifiates to validate the messages signature against. If not - * supplied, validation will not take place. Server: validates the - * received message. Client: not yet implemented, should validate the - * MDN. + * The value of Subject header of AS2 message. * - * The option is a: - * <code>java.security.cert.Certificate[]</code> type. + * The option is a: <code>java.lang.String</code> type. + * + * Group: common + * + * @param subject the value to set + * @return the dsl builder + */ + default AS2EndpointProducerBuilder subject(String subject) { + doSetProperty("subject", subject); + return this; + } + /** + * The host name (IP or DNS name) of target host. * - * Group: security + * The option is a: <code>java.lang.String</code> type. * - * @param validateSigningCertificateChain the value to set + * Group: common + * + * @param targetHostname the value to set * @return the dsl builder */ - default AS2EndpointProducerBuilder validateSigningCertificateChain( - java.security.cert.Certificate[] validateSigningCertificateChain) { - doSetProperty("validateSigningCertificateChain", validateSigningCertificateChain); + default AS2EndpointProducerBuilder targetHostname(String targetHostname) { + doSetProperty("targetHostname", targetHostname); return this; } /** - * Certifiates to validate the messages signature against. If not - * supplied, validation will not take place. Server: validates the - * received message. Client: not yet implemented, should validate the - * MDN. + * The port number of target host. -1 indicates the scheme default port. + * + * The option is a: <code>java.lang.Integer</code> type. + * + * Group: common + * + * @param targetPortNumber the value to set + * @return the dsl builder + */ + default AS2EndpointProducerBuilder targetPortNumber( + Integer targetPortNumber) { + doSetProperty("targetPortNumber", targetPortNumber); + return this; + } + /** + * The port number of target host. -1 indicates the scheme default port. * * The option will be converted to a - * <code>java.security.cert.Certificate[]</code> type. + * <code>java.lang.Integer</code> type. * - * Group: security + * Group: common * - * @param validateSigningCertificateChain the value to set + * @param targetPortNumber the value to set * @return the dsl builder */ - default AS2EndpointProducerBuilder validateSigningCertificateChain( - String validateSigningCertificateChain) { - doSetProperty("validateSigningCertificateChain", validateSigningCertificateChain); + default AS2EndpointProducerBuilder targetPortNumber( + String targetPortNumber) { + doSetProperty("targetPortNumber", targetPortNumber); + return this; + } + /** + * The value included in the User-Agent message header identifying the + * AS2 user agent. + * + * The option is a: <code>java.lang.String</code> type. + * + * Default: Camel AS2 Client Endpoint + * Group: common + * + * @param userAgent the value to set + * @return the dsl builder + */ + default AS2EndpointProducerBuilder userAgent(String userAgent) { + doSetProperty("userAgent", userAgent); return this; } } @@ -1960,6 +1880,38 @@ public interface AS2EndpointBuilderFactory { doSetProperty("compressionAlgorithm", compressionAlgorithm); return this; } + /** + * The key used to encrypt the EDI message. + * + * The option is a: <code>java.security.PrivateKey</code> + * type. + * + * Group: common + * + * @param decryptingPrivateKey the value to set + * @return the dsl builder + */ + default AS2EndpointBuilder decryptingPrivateKey( + java.security.PrivateKey decryptingPrivateKey) { + doSetProperty("decryptingPrivateKey", decryptingPrivateKey); + return this; + } + /** + * The key used to encrypt the EDI message. + * + * The option will be converted to a + * <code>java.security.PrivateKey</code> type. + * + * Group: common + * + * @param decryptingPrivateKey the value to set + * @return the dsl builder + */ + default AS2EndpointBuilder decryptingPrivateKey( + String decryptingPrivateKey) { + doSetProperty("decryptingPrivateKey", decryptingPrivateKey); + return this; + } /** * The value of the Disposition-Notification-To header. Assigning a * value to this parameter requests a message disposition notification @@ -1993,36 +1945,100 @@ public interface AS2EndpointBuilderFactory { return this; } /** - * The content type of EDI message. One of application/edifact, - * application/edi-x12, application/edi-consent. + * The content type of EDI message. One of application/edifact, + * application/edi-x12, application/edi-consent. + * + * The option is a: + * <code>org.apache.http.entity.ContentType</code> type. + * + * Group: common + * + * @param ediMessageType the value to set + * @return the dsl builder + */ + default AS2EndpointBuilder ediMessageType( + org.apache.http.entity.ContentType ediMessageType) { + doSetProperty("ediMessageType", ediMessageType); + return this; + } + /** + * The content type of EDI message. One of application/edifact, + * application/edi-x12, application/edi-consent. + * + * The option will be converted to a + * <code>org.apache.http.entity.ContentType</code> type. + * + * Group: common + * + * @param ediMessageType the value to set + * @return the dsl builder + */ + default AS2EndpointBuilder ediMessageType(String ediMessageType) { + doSetProperty("ediMessageType", ediMessageType); + return this; + } + /** + * The algorithm used to encrypt EDI message. + * + * The option is a: + * <code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code> type. + * + * Group: common + * + * @param encryptingAlgorithm the value to set + * @return the dsl builder + */ + default AS2EndpointBuilder encryptingAlgorithm( + org.apache.camel.component.as2.api.AS2EncryptionAlgorithm encryptingAlgorithm) { + doSetProperty("encryptingAlgorithm", encryptingAlgorithm); + return this; + } + /** + * The algorithm used to encrypt EDI message. + * + * The option will be converted to a + * <code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code> type. + * + * Group: common + * + * @param encryptingAlgorithm the value to set + * @return the dsl builder + */ + default AS2EndpointBuilder encryptingAlgorithm( + String encryptingAlgorithm) { + doSetProperty("encryptingAlgorithm", encryptingAlgorithm); + return this; + } + /** + * The chain of certificates used to encrypt EDI message. * * The option is a: - * <code>org.apache.http.entity.ContentType</code> type. + * <code>java.security.cert.Certificate[]</code> type. * * Group: common * - * @param ediMessageType the value to set + * @param encryptingCertificateChain the value to set * @return the dsl builder */ - default AS2EndpointBuilder ediMessageType( - org.apache.http.entity.ContentType ediMessageType) { - doSetProperty("ediMessageType", ediMessageType); + default AS2EndpointBuilder encryptingCertificateChain( + java.security.cert.Certificate[] encryptingCertificateChain) { + doSetProperty("encryptingCertificateChain", encryptingCertificateChain); return this; } /** - * The content type of EDI message. One of application/edifact, - * application/edi-x12, application/edi-consent. + * The chain of certificates used to encrypt EDI message. * * The option will be converted to a - * <code>org.apache.http.entity.ContentType</code> type. + * <code>java.security.cert.Certificate[]</code> type. * * Group: common * - * @param ediMessageType the value to set + * @param encryptingCertificateChain the value to set * @return the dsl builder */ - default AS2EndpointBuilder ediMessageType(String ediMessageType) { - doSetProperty("ediMessageType", ediMessageType); + default AS2EndpointBuilder encryptingCertificateChain( + String encryptingCertificateChain) { + doSetProperty("encryptingCertificateChain", encryptingCertificateChain); return this; } /** @@ -2278,177 +2294,6 @@ public interface AS2EndpointBuilderFactory { doSetProperty("serverPortNumber", serverPortNumber); return this; } - /** - * The value of Subject header of AS2 message. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: common - * - * @param subject the value to set - * @return the dsl builder - */ - default AS2EndpointBuilder subject(String subject) { - doSetProperty("subject", subject); - return this; - } - /** - * The host name (IP or DNS name) of target host. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: common - * - * @param targetHostname the value to set - * @return the dsl builder - */ - default AS2EndpointBuilder targetHostname(String targetHostname) { - doSetProperty("targetHostname", targetHostname); - return this; - } - /** - * The port number of target host. -1 indicates the scheme default port. - * - * The option is a: <code>java.lang.Integer</code> type. - * - * Default: 80 - * Group: common - * - * @param targetPortNumber the value to set - * @return the dsl builder - */ - default AS2EndpointBuilder targetPortNumber(Integer targetPortNumber) { - doSetProperty("targetPortNumber", targetPortNumber); - return this; - } - /** - * The port number of target host. -1 indicates the scheme default port. - * - * The option will be converted to a - * <code>java.lang.Integer</code> type. - * - * Default: 80 - * Group: common - * - * @param targetPortNumber the value to set - * @return the dsl builder - */ - default AS2EndpointBuilder targetPortNumber(String targetPortNumber) { - doSetProperty("targetPortNumber", targetPortNumber); - return this; - } - /** - * The value included in the User-Agent message header identifying the - * AS2 user agent. - * - * The option is a: <code>java.lang.String</code> type. - * - * Default: Camel AS2 Client Endpoint - * Group: common - * - * @param userAgent the value to set - * @return the dsl builder - */ - default AS2EndpointBuilder userAgent(String userAgent) { - doSetProperty("userAgent", userAgent); - return this; - } - /** - * The key used to encrypt the EDI message. - * - * The option is a: <code>java.security.PrivateKey</code> - * type. - * - * Group: security - * - * @param decryptingPrivateKey the value to set - * @return the dsl builder - */ - default AS2EndpointBuilder decryptingPrivateKey( - java.security.PrivateKey decryptingPrivateKey) { - doSetProperty("decryptingPrivateKey", decryptingPrivateKey); - return this; - } - /** - * The key used to encrypt the EDI message. - * - * The option will be converted to a - * <code>java.security.PrivateKey</code> type. - * - * Group: security - * - * @param decryptingPrivateKey the value to set - * @return the dsl builder - */ - default AS2EndpointBuilder decryptingPrivateKey( - String decryptingPrivateKey) { - doSetProperty("decryptingPrivateKey", decryptingPrivateKey); - return this; - } - /** - * The algorithm used to encrypt EDI message. - * - * The option is a: - * <code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code> type. - * - * Group: security - * - * @param encryptingAlgorithm the value to set - * @return the dsl builder - */ - default AS2EndpointBuilder encryptingAlgorithm( - org.apache.camel.component.as2.api.AS2EncryptionAlgorithm encryptingAlgorithm) { - doSetProperty("encryptingAlgorithm", encryptingAlgorithm); - return this; - } - /** - * The algorithm used to encrypt EDI message. - * - * The option will be converted to a - * <code>org.apache.camel.component.as2.api.AS2EncryptionAlgorithm</code> type. - * - * Group: security - * - * @param encryptingAlgorithm the value to set - * @return the dsl builder - */ - default AS2EndpointBuilder encryptingAlgorithm( - String encryptingAlgorithm) { - doSetProperty("encryptingAlgorithm", encryptingAlgorithm); - return this; - } - /** - * The chain of certificates used to encrypt EDI message. - * - * The option is a: - * <code>java.security.cert.Certificate[]</code> type. - * - * Group: security - * - * @param encryptingCertificateChain the value to set - * @return the dsl builder - */ - default AS2EndpointBuilder encryptingCertificateChain( - java.security.cert.Certificate[] encryptingCertificateChain) { - doSetProperty("encryptingCertificateChain", encryptingCertificateChain); - return this; - } - /** - * The chain of certificates used to encrypt EDI message. - * - * The option will be converted to a - * <code>java.security.cert.Certificate[]</code> type. - * - * Group: security - * - * @param encryptingCertificateChain the value to set - * @return the dsl builder - */ - default AS2EndpointBuilder encryptingCertificateChain( - String encryptingCertificateChain) { - doSetProperty("encryptingCertificateChain", encryptingCertificateChain); - return this; - } /** * The list of algorithms, in order of preference, requested to generate * a message integrity check (MIC) returned in message dispostion @@ -2456,7 +2301,7 @@ public interface AS2EndpointBuilderFactory { * * The option is a: <code>java.lang.String[]</code> type. * - * Group: security + * Group: common * * @param signedReceiptMicAlgorithms the value to set * @return the dsl builder @@ -2474,7 +2319,7 @@ public interface AS2EndpointBuilderFactory { * The option will be converted to a * <code>java.lang.String[]</code> type. * - * Group: security + * Group: common * * @param signedReceiptMicAlgorithms the value to set * @return the dsl builder @@ -2490,7 +2335,7 @@ public interface AS2EndpointBuilderFactory { * The option is a: * <code>org.apache.camel.component.as2.api.AS2SignatureAlgorithm</code> type. * - * Group: security + * Group: common * * @param signingAlgorithm the value to set * @return the dsl builder @@ -2506,7 +2351,7 @@ public interface AS2EndpointBuilderFactory { * The option will be converted to a * <code>org.apache.camel.component.as2.api.AS2SignatureAlgorithm</code> type. * - * Group: security + * Group: common * * @param signingAlgorithm the value to set * @return the dsl builder @@ -2521,7 +2366,7 @@ public interface AS2EndpointBuilderFactory { * The option is a: * <code>java.security.cert.Certificate[]</code> type. * - * Group: security + * Group: common * * @param signingCertificateChain the value to set * @return the dsl builder @@ -2537,7 +2382,7 @@ public interface AS2EndpointBuilderFactory { * The option will be converted to a * <code>java.security.cert.Certificate[]</code> type. * - * Group: security + * Group: common * * @param signingCertificateChain the value to set * @return the dsl builder @@ -2553,7 +2398,7 @@ public interface AS2EndpointBuilderFactory { * The option is a: <code>java.security.PrivateKey</code> * type. * - * Group: security + * Group: common * * @param signingPrivateKey the value to set * @return the dsl builder @@ -2569,7 +2414,7 @@ public interface AS2EndpointBuilderFactory { * The option will be converted to a * <code>java.security.PrivateKey</code> type. * - * Group: security + * Group: common * * @param signingPrivateKey the value to set * @return the dsl builder @@ -2579,41 +2424,76 @@ public interface AS2EndpointBuilderFactory { return this; } /** - * Certifiates to validate the messages signature against. If not - * supplied, validation will not take place. Server: validates the - * received message. Client: not yet implemented, should validate the - * MDN. + * The value of Subject header of AS2 message. * - * The option is a: - * <code>java.security.cert.Certificate[]</code> type. + * The option is a: <code>java.lang.String</code> type. + * + * Group: common + * + * @param subject the value to set + * @return the dsl builder + */ + default AS2EndpointBuilder subject(String subject) { + doSetProperty("subject", subject); + return this; + } + /** + * The host name (IP or DNS name) of target host. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: common + * + * @param targetHostname the value to set + * @return the dsl builder + */ + default AS2EndpointBuilder targetHostname(String targetHostname) { + doSetProperty("targetHostname", targetHostname); + return this; + } + /** + * The port number of target host. -1 indicates the scheme default port. + * + * The option is a: <code>java.lang.Integer</code> type. * - * Group: security + * Group: common * - * @param validateSigningCertificateChain the value to set + * @param targetPortNumber the value to set * @return the dsl builder */ - default AS2EndpointBuilder validateSigningCertificateChain( - java.security.cert.Certificate[] validateSigningCertificateChain) { - doSetProperty("validateSigningCertificateChain", validateSigningCertificateChain); + default AS2EndpointBuilder targetPortNumber(Integer targetPortNumber) { + doSetProperty("targetPortNumber", targetPortNumber); return this; } /** - * Certifiates to validate the messages signature against. If not - * supplied, validation will not take place. Server: validates the - * received message. Client: not yet implemented, should validate the - * MDN. + * The port number of target host. -1 indicates the scheme default port. * * The option will be converted to a - * <code>java.security.cert.Certificate[]</code> type. + * <code>java.lang.Integer</code> type. + * + * Group: common + * + * @param targetPortNumber the value to set + * @return the dsl builder + */ + default AS2EndpointBuilder targetPortNumber(String targetPortNumber) { + doSetProperty("targetPortNumber", targetPortNumber); + return this; + } + /** + * The value included in the User-Agent message header identifying the + * AS2 user agent. + * + * The option is a: <code>java.lang.String</code> type. * - * Group: security + * Default: Camel AS2 Client Endpoint + * Group: common * - * @param validateSigningCertificateChain the value to set + * @param userAgent the value to set * @return the dsl builder */ - default AS2EndpointBuilder validateSigningCertificateChain( - String validateSigningCertificateChain) { - doSetProperty("validateSigningCertificateChain", validateSigningCertificateChain); + default AS2EndpointBuilder userAgent(String userAgent) { + doSetProperty("userAgent", userAgent); return this; } }