This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-4.22.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.22.x by this push:
new d59d2e1e1d02 [backport camel-4.22.x] CAMEL-27227: camel-smpp - the
system id and password headers are used only when
allowSystemIdAndPasswordFromHeaders is enabled (#30410)
d59d2e1e1d02 is described below
commit d59d2e1e1d02c376eef94756c3979960229512fa
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Nov 19 14:11:20 2026 +0100
[backport camel-4.22.x] CAMEL-27227: camel-smpp - the system id and
password headers are used only when allowSystemIdAndPasswordFromHeaders is
enabled (#30410)
A producer with lazySessionCreation=true took the system id and the
password from the CamelSmppSystemId and CamelSmppPassword headers of the
first message. It now connects with the systemId and password of the
endpoint, unless the new allowSystemIdAndPasswordFromHeaders option
(default false) is enabled.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 877f9316c1f0a0dfe395acf7a31912b9537bb6a7)
---
.../org/apache/camel/catalog/components/smpp.json | 26 ++++----
.../org/apache/camel/catalog/components/smpps.json | 26 ++++----
.../apache/camel/catalog/docs/smpp-component.adoc | 17 ++++++
.../component/smpp/SmppComponentConfigurer.java | 6 ++
.../component/smpp/SmppEndpointConfigurer.java | 6 ++
.../component/smpp/SmppEndpointUriFactory.java | 3 +-
.../org/apache/camel/component/smpp/smpp.json | 26 ++++----
.../org/apache/camel/component/smpp/smpps.json | 26 ++++----
.../camel-smpp/src/main/docs/smpp-component.adoc | 17 ++++++
.../camel/component/smpp/SmppConfiguration.java | 22 ++++++-
.../apache/camel/component/smpp/SmppConstants.java | 12 +++-
.../apache/camel/component/smpp/SmppProducer.java | 18 +++---
.../component/smpp/SmppConfigurationTest.java | 1 +
.../smpp/SmppProducerLazySessionCreationTest.java | 48 +++++++++++++++
.../component/dsl/SmppComponentBuilderFactory.java | 33 ++++++++--
.../dsl/SmppsComponentBuilderFactory.java | 33 ++++++++--
.../endpoint/dsl/SmppEndpointBuilderFactory.java | 70 ++++++++++++++++++----
17 files changed, 311 insertions(+), 79 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/smpp.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/smpp.json
index 3e2db72da82d..c29ccc9620c7 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/smpp.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/smpp.json
@@ -35,7 +35,7 @@
"destAddr": { "index": 7, "kind": "property", "displayName": "Dest Addr",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "1717", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the destination SME address. For
mobile terminated messages, this is the directory [...]
"destAddrNpi": { "index": 8, "kind": "property", "displayName": "Dest Addr
Npi", "group": "producer", "label": "producer", "required": false, "type":
"enum", "javaType": "byte", "enum": [ "0", "1", "2", "3", "6", "8", "9", "10",
"13", "18" ], "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Defines the type of
number (TON) to be used in the SME de [...]
"destAddrTon": { "index": 9, "kind": "property", "displayName": "Dest Addr
Ton", "group": "producer", "label": "producer", "required": false, "type":
"enum", "javaType": "byte", "enum": [ "0", "1", "2", "3", "4", "5", "6" ],
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the type of number (TON) to be used in
the SME destination address [...]
- "lazySessionCreation": { "index": 10, "kind": "property", "displayName":
"Lazy Session Creation", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Sessions can be lazily
created to avoid exceptions, if the SMSC is not avail [...]
+ "lazySessionCreation": { "index": 10, "kind": "property", "displayName":
"Lazy Session Creation", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Sessions can be lazily
created to avoid exceptions, if the SMSC is not avail [...]
"lazyStartProducer": { "index": 11, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "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 otherwise fai [...]
"messageReceiverRouteId": { "index": 12, "kind": "property",
"displayName": "Message Receiver Route Id", "group": "producer", "label":
"producer", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Set this on producer in
order to benefit from transceiver (TRX) binding type. So onc [...]
"numberingPlanIndicator": { "index": 13, "kind": "property",
"displayName": "Numbering Plan Indicator", "group": "producer", "label":
"producer", "required": false, "type": "enum", "javaType": "byte", "enum": [
"0", "1", "2", "3", "6", "8", "9", "10", "13", "18" ], "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the numeric plan indicator [...]
@@ -65,10 +65,11 @@
"httpProxyPort": { "index": 37, "kind": "property", "displayName": "Http
Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type":
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 3128, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "If you need to tunnel SMPP through a HTTP
proxy, set this attribute to the port of yo [...]
"httpProxyUsername": { "index": 38, "kind": "property", "displayName":
"Http Proxy Username", "group": "proxy", "label": "proxy", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "If your HTTP proxy requires basic
authentication, set this attribute to the username required for you [...]
"proxyHeaders": { "index": 39, "kind": "property", "displayName": "Proxy
Headers", "group": "proxy", "label": "proxy", "required": false, "type":
"object", "javaType": "java.util.Map<java.lang.String, java.lang.String>",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "These headers will be passed to the proxy
server while establishing the connect [...]
- "hostnameVerification": { "index": 40, "kind": "property", "displayName":
"Hostname Verification", "group": "security", "label": "security", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "security": "insecure:ssl",
"insecureValue": "false", "defaultValue": true, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether to check that [...]
- "password": { "index": 41, "kind": "property", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "The password for connecting to SMSC server." },
- "systemId": { "index": 42, "kind": "property", "displayName": "System Id",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "defaultValue": "smppclient",
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "The system id (username)
for connecting to SMSC server." },
- "usingSSL": { "index": 43, "kind": "property", "displayName": "Using SSL",
"group": "security", "label": "security", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether using SSL with the smpps protocol" }
+ "allowSystemIdAndPasswordFromHeaders": { "index": 40, "kind": "property",
"displayName": "Allow System Id And Password From Headers", "group":
"security", "label": "producer,security", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether a producer with lazySes [...]
+ "hostnameVerification": { "index": 41, "kind": "property", "displayName":
"Hostname Verification", "group": "security", "label": "security", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "security": "insecure:ssl",
"insecureValue": "false", "defaultValue": true, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether to check that [...]
+ "password": { "index": 42, "kind": "property", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "The password for connecting to SMSC server." },
+ "systemId": { "index": 43, "kind": "property", "displayName": "System Id",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "defaultValue": "smppclient",
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "The system id (username)
for connecting to SMSC server." },
+ "usingSSL": { "index": 44, "kind": "property", "displayName": "Using SSL",
"group": "security", "label": "security", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether using SSL with the smpps protocol" }
},
"headers": {
"CamelSmppAlphabet": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Byte", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "For SubmitSm, SubmitMulti and ReplaceSm The
data coding according to the SMPP 3.4 specification, section 5.2.19. Use the
URI option alphabet settings above.", "constantName":
"org.apache.camel.component.smpp.SmppConstants#ALPHABET" },
@@ -107,8 +108,8 @@
"CamelSmppSourceAddrTon": { "index": 33, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "Byte",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Producer: Defines the type of number (TON) to be used in
the SME originator address parameters. Use the sourceAddrTon URI option values
defined above. Consumer: only for AlertNotification and DataSm Defines the type
of number (TON) to be used [...]
"CamelSmppSubmitted": { "index": 34, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"Integer", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "only for smsc DeliveryReceipt Number of short
messages originally submitted. This is only relevant when the original message
was submitted to a distribution list.The value is padded with leading zeros if
necessary.", "constantName": [...]
"CamelSmppSubmitDate": { "index": 35, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"Date", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "only for smsc DeliveryReceipt The time and
date at which the short message was submitted. In the case of a message which
has been replaced, this is the date that the original message was replaced. The
format is as follows: YYMMDDhhmm." [...]
- "CamelSmppSystemId": { "index": 36, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "The system id.", "constantName":
"org.apache.camel.component.smpp.SmppConstants#SYSTEM_ID" },
- "CamelSmppPassword": { "index": 37, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "The password.", "constantName":
"org.apache.camel.component.smpp.SmppConstants#PASSWORD" },
+ "CamelSmppSystemId": { "index": 36, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "The system id to connect to the SMSC with.
Used only by the first exchange of a producer with lazySessionCreation=true and
allowSystemIdAndPasswordFromHeaders=true, together with the CamelSmppPassword
header; otherwise ignored.", "cons [...]
+ "CamelSmppPassword": { "index": 37, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": true, "description": "The password to connect to the SMSC with. Used
only by the first exchange of a producer with lazySessionCreation=true and
allowSystemIdAndPasswordFromHeaders=true, together with the CamelSmppSystemId
header; otherwise ignored.", "consta [...]
"CamelSmppValidityPeriod": { "index": 38, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "String or
Date", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "Producer: only for SubmitSm, SubmitMulti and
ReplaceSm The validity period parameter indicates the SMSC expiration time,
after which the message should be discarded if not delivered to the
destination. If it's provided as Date, it' [...]
"CamelSmppOptionalParameters": { "index": 39, "kind": "header",
"displayName": "", "group": "consumer", "label": "consumer", "required": false,
"javaType": "Map<String, Object>", "deprecated": false, "deprecationNote": "Use
CamelSmppOptionalParameter instead", "autowired": false, "secret": false,
"description": "The optional parameters by name. Deprecation note: Use
CamelSmppOptionalParameter instead", "constantName":
"org.apache.camel.component.smpp.SmppConstants#OPTIONAL_PARAMETERS" },
"CamelSmppOptionalParameter": { "index": 40, "kind": "header",
"displayName": "", "group": "common", "label": "", "required": false,
"javaType": "Map<Short, Object>", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "description": "Producer: only for
SubmitSm, SubmitMulti and DataSm The optional parameter which are send to the
SMSC. The value is converted in the following way: String -
org.jsmpp.bean.OptionalParameter.COctetString, byte - org.jsmpp.bea [...]
@@ -129,7 +130,7 @@
"destAddr": { "index": 11, "kind": "parameter", "displayName": "Dest
Addr", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": "1717", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the destination SME address. For
mobile terminated messages, this is the director [...]
"destAddrNpi": { "index": 12, "kind": "parameter", "displayName": "Dest
Addr Npi", "group": "producer", "label": "producer", "required": false, "type":
"enum", "javaType": "byte", "enum": [ "0", "1", "2", "3", "6", "8", "9", "10",
"13", "18" ], "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Defines the type of
number (TON) to be used in the SME [...]
"destAddrTon": { "index": 13, "kind": "parameter", "displayName": "Dest
Addr Ton", "group": "producer", "label": "producer", "required": false, "type":
"enum", "javaType": "byte", "enum": [ "0", "1", "2", "3", "4", "5", "6" ],
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the type of number (TON) to be used in
the SME destination addres [...]
- "lazySessionCreation": { "index": 14, "kind": "parameter", "displayName":
"Lazy Session Creation", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Sessions can be lazily
created to avoid exceptions, if the SMSC is not avai [...]
+ "lazySessionCreation": { "index": 14, "kind": "parameter", "displayName":
"Lazy Session Creation", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Sessions can be lazily
created to avoid exceptions, if the SMSC is not avai [...]
"messageReceiverRouteId": { "index": 15, "kind": "parameter",
"displayName": "Message Receiver Route Id", "group": "producer", "label":
"producer", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Set this on producer in
order to benefit from transceiver (TRX) binding type. So on [...]
"numberingPlanIndicator": { "index": 16, "kind": "parameter",
"displayName": "Numbering Plan Indicator", "group": "producer", "label":
"producer", "required": false, "type": "enum", "javaType": "byte", "enum": [
"0", "1", "2", "3", "6", "8", "9", "10", "13", "18" ], "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the numeric plan indicato [...]
"priorityFlag": { "index": 17, "kind": "parameter", "displayName":
"Priority Flag", "group": "producer", "label": "producer", "required": false,
"type": "enum", "javaType": "byte", "enum": [ "0", "1", "2", "3" ],
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Allows the originating SME to assign a
priority level to the short message. Only for Su [...]
@@ -157,9 +158,10 @@
"httpProxyPort": { "index": 39, "kind": "parameter", "displayName": "Http
Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type":
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 3128, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "If you need to tunnel SMPP through a HTTP
proxy, set this attribute to the port of y [...]
"httpProxyUsername": { "index": 40, "kind": "parameter", "displayName":
"Http Proxy Username", "group": "proxy", "label": "proxy", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "If your HTTP proxy requires basic
authentication, set this attribute to the username required for yo [...]
"proxyHeaders": { "index": 41, "kind": "parameter", "displayName": "Proxy
Headers", "group": "proxy", "label": "proxy", "required": false, "type":
"object", "javaType": "java.util.Map<java.lang.String, java.lang.String>",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "These headers will be passed to the proxy
server while establishing the connec [...]
- "hostnameVerification": { "index": 42, "kind": "parameter", "displayName":
"Hostname Verification", "group": "security", "label": "security", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "security": "insecure:ssl",
"insecureValue": "false", "defaultValue": true, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether to check that [...]
- "password": { "index": 43, "kind": "parameter", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "The password for connecting to SMSC server." },
- "systemId": { "index": 44, "kind": "parameter", "displayName": "System
Id", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "defaultValue": "smppclient",
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "The system id (username)
for connecting to SMSC server." },
- "usingSSL": { "index": 45, "kind": "parameter", "displayName": "Using
SSL", "group": "security", "label": "security", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether using SSL with the smpps protocol" }
+ "allowSystemIdAndPasswordFromHeaders": { "index": 42, "kind": "parameter",
"displayName": "Allow System Id And Password From Headers", "group":
"security", "label": "producer,security", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether a producer with lazySe [...]
+ "hostnameVerification": { "index": 43, "kind": "parameter", "displayName":
"Hostname Verification", "group": "security", "label": "security", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "security": "insecure:ssl",
"insecureValue": "false", "defaultValue": true, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether to check that [...]
+ "password": { "index": 44, "kind": "parameter", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "The password for connecting to SMSC server." },
+ "systemId": { "index": 45, "kind": "parameter", "displayName": "System
Id", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "defaultValue": "smppclient",
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "The system id (username)
for connecting to SMSC server." },
+ "usingSSL": { "index": 46, "kind": "parameter", "displayName": "Using
SSL", "group": "security", "label": "security", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether using SSL with the smpps protocol" }
}
}
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/smpps.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/smpps.json
index 11bf7005bfa7..f25f0a7d6986 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/smpps.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/smpps.json
@@ -35,7 +35,7 @@
"destAddr": { "index": 7, "kind": "property", "displayName": "Dest Addr",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "1717", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the destination SME address. For
mobile terminated messages, this is the directory [...]
"destAddrNpi": { "index": 8, "kind": "property", "displayName": "Dest Addr
Npi", "group": "producer", "label": "producer", "required": false, "type":
"enum", "javaType": "byte", "enum": [ "0", "1", "2", "3", "6", "8", "9", "10",
"13", "18" ], "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Defines the type of
number (TON) to be used in the SME de [...]
"destAddrTon": { "index": 9, "kind": "property", "displayName": "Dest Addr
Ton", "group": "producer", "label": "producer", "required": false, "type":
"enum", "javaType": "byte", "enum": [ "0", "1", "2", "3", "4", "5", "6" ],
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the type of number (TON) to be used in
the SME destination address [...]
- "lazySessionCreation": { "index": 10, "kind": "property", "displayName":
"Lazy Session Creation", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Sessions can be lazily
created to avoid exceptions, if the SMSC is not avail [...]
+ "lazySessionCreation": { "index": 10, "kind": "property", "displayName":
"Lazy Session Creation", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Sessions can be lazily
created to avoid exceptions, if the SMSC is not avail [...]
"lazyStartProducer": { "index": 11, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "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 otherwise fai [...]
"messageReceiverRouteId": { "index": 12, "kind": "property",
"displayName": "Message Receiver Route Id", "group": "producer", "label":
"producer", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Set this on producer in
order to benefit from transceiver (TRX) binding type. So onc [...]
"numberingPlanIndicator": { "index": 13, "kind": "property",
"displayName": "Numbering Plan Indicator", "group": "producer", "label":
"producer", "required": false, "type": "enum", "javaType": "byte", "enum": [
"0", "1", "2", "3", "6", "8", "9", "10", "13", "18" ], "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the numeric plan indicator [...]
@@ -65,10 +65,11 @@
"httpProxyPort": { "index": 37, "kind": "property", "displayName": "Http
Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type":
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 3128, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "If you need to tunnel SMPP through a HTTP
proxy, set this attribute to the port of yo [...]
"httpProxyUsername": { "index": 38, "kind": "property", "displayName":
"Http Proxy Username", "group": "proxy", "label": "proxy", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "If your HTTP proxy requires basic
authentication, set this attribute to the username required for you [...]
"proxyHeaders": { "index": 39, "kind": "property", "displayName": "Proxy
Headers", "group": "proxy", "label": "proxy", "required": false, "type":
"object", "javaType": "java.util.Map<java.lang.String, java.lang.String>",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "These headers will be passed to the proxy
server while establishing the connect [...]
- "hostnameVerification": { "index": 40, "kind": "property", "displayName":
"Hostname Verification", "group": "security", "label": "security", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "security": "insecure:ssl",
"insecureValue": "false", "defaultValue": true, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether to check that [...]
- "password": { "index": 41, "kind": "property", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "The password for connecting to SMSC server." },
- "systemId": { "index": 42, "kind": "property", "displayName": "System Id",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "defaultValue": "smppclient",
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "The system id (username)
for connecting to SMSC server." },
- "usingSSL": { "index": 43, "kind": "property", "displayName": "Using SSL",
"group": "security", "label": "security", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether using SSL with the smpps protocol" }
+ "allowSystemIdAndPasswordFromHeaders": { "index": 40, "kind": "property",
"displayName": "Allow System Id And Password From Headers", "group":
"security", "label": "producer,security", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether a producer with lazySes [...]
+ "hostnameVerification": { "index": 41, "kind": "property", "displayName":
"Hostname Verification", "group": "security", "label": "security", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "security": "insecure:ssl",
"insecureValue": "false", "defaultValue": true, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether to check that [...]
+ "password": { "index": 42, "kind": "property", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "The password for connecting to SMSC server." },
+ "systemId": { "index": 43, "kind": "property", "displayName": "System Id",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "defaultValue": "smppclient",
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "The system id (username)
for connecting to SMSC server." },
+ "usingSSL": { "index": 44, "kind": "property", "displayName": "Using SSL",
"group": "security", "label": "security", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether using SSL with the smpps protocol" }
},
"headers": {
"CamelSmppAlphabet": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Byte", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "For SubmitSm, SubmitMulti and ReplaceSm The
data coding according to the SMPP 3.4 specification, section 5.2.19. Use the
URI option alphabet settings above.", "constantName":
"org.apache.camel.component.smpp.SmppConstants#ALPHABET" },
@@ -107,8 +108,8 @@
"CamelSmppSourceAddrTon": { "index": 33, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "Byte",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Producer: Defines the type of number (TON) to be used in
the SME originator address parameters. Use the sourceAddrTon URI option values
defined above. Consumer: only for AlertNotification and DataSm Defines the type
of number (TON) to be used [...]
"CamelSmppSubmitted": { "index": 34, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"Integer", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "only for smsc DeliveryReceipt Number of short
messages originally submitted. This is only relevant when the original message
was submitted to a distribution list.The value is padded with leading zeros if
necessary.", "constantName": [...]
"CamelSmppSubmitDate": { "index": 35, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"Date", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "only for smsc DeliveryReceipt The time and
date at which the short message was submitted. In the case of a message which
has been replaced, this is the date that the original message was replaced. The
format is as follows: YYMMDDhhmm." [...]
- "CamelSmppSystemId": { "index": 36, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "The system id.", "constantName":
"org.apache.camel.component.smpp.SmppConstants#SYSTEM_ID" },
- "CamelSmppPassword": { "index": 37, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "The password.", "constantName":
"org.apache.camel.component.smpp.SmppConstants#PASSWORD" },
+ "CamelSmppSystemId": { "index": 36, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "The system id to connect to the SMSC with.
Used only by the first exchange of a producer with lazySessionCreation=true and
allowSystemIdAndPasswordFromHeaders=true, together with the CamelSmppPassword
header; otherwise ignored.", "cons [...]
+ "CamelSmppPassword": { "index": 37, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": true, "description": "The password to connect to the SMSC with. Used
only by the first exchange of a producer with lazySessionCreation=true and
allowSystemIdAndPasswordFromHeaders=true, together with the CamelSmppSystemId
header; otherwise ignored.", "consta [...]
"CamelSmppValidityPeriod": { "index": 38, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "String or
Date", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "Producer: only for SubmitSm, SubmitMulti and
ReplaceSm The validity period parameter indicates the SMSC expiration time,
after which the message should be discarded if not delivered to the
destination. If it's provided as Date, it' [...]
"CamelSmppOptionalParameters": { "index": 39, "kind": "header",
"displayName": "", "group": "consumer", "label": "consumer", "required": false,
"javaType": "Map<String, Object>", "deprecated": false, "deprecationNote": "Use
CamelSmppOptionalParameter instead", "autowired": false, "secret": false,
"description": "The optional parameters by name. Deprecation note: Use
CamelSmppOptionalParameter instead", "constantName":
"org.apache.camel.component.smpp.SmppConstants#OPTIONAL_PARAMETERS" },
"CamelSmppOptionalParameter": { "index": 40, "kind": "header",
"displayName": "", "group": "common", "label": "", "required": false,
"javaType": "Map<Short, Object>", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "description": "Producer: only for
SubmitSm, SubmitMulti and DataSm The optional parameter which are send to the
SMSC. The value is converted in the following way: String -
org.jsmpp.bean.OptionalParameter.COctetString, byte - org.jsmpp.bea [...]
@@ -129,7 +130,7 @@
"destAddr": { "index": 11, "kind": "parameter", "displayName": "Dest
Addr", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": "1717", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the destination SME address. For
mobile terminated messages, this is the director [...]
"destAddrNpi": { "index": 12, "kind": "parameter", "displayName": "Dest
Addr Npi", "group": "producer", "label": "producer", "required": false, "type":
"enum", "javaType": "byte", "enum": [ "0", "1", "2", "3", "6", "8", "9", "10",
"13", "18" ], "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Defines the type of
number (TON) to be used in the SME [...]
"destAddrTon": { "index": 13, "kind": "parameter", "displayName": "Dest
Addr Ton", "group": "producer", "label": "producer", "required": false, "type":
"enum", "javaType": "byte", "enum": [ "0", "1", "2", "3", "4", "5", "6" ],
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the type of number (TON) to be used in
the SME destination addres [...]
- "lazySessionCreation": { "index": 14, "kind": "parameter", "displayName":
"Lazy Session Creation", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Sessions can be lazily
created to avoid exceptions, if the SMSC is not avai [...]
+ "lazySessionCreation": { "index": 14, "kind": "parameter", "displayName":
"Lazy Session Creation", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Sessions can be lazily
created to avoid exceptions, if the SMSC is not avai [...]
"messageReceiverRouteId": { "index": 15, "kind": "parameter",
"displayName": "Message Receiver Route Id", "group": "producer", "label":
"producer", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Set this on producer in
order to benefit from transceiver (TRX) binding type. So on [...]
"numberingPlanIndicator": { "index": 16, "kind": "parameter",
"displayName": "Numbering Plan Indicator", "group": "producer", "label":
"producer", "required": false, "type": "enum", "javaType": "byte", "enum": [
"0", "1", "2", "3", "6", "8", "9", "10", "13", "18" ], "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the numeric plan indicato [...]
"priorityFlag": { "index": 17, "kind": "parameter", "displayName":
"Priority Flag", "group": "producer", "label": "producer", "required": false,
"type": "enum", "javaType": "byte", "enum": [ "0", "1", "2", "3" ],
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Allows the originating SME to assign a
priority level to the short message. Only for Su [...]
@@ -157,9 +158,10 @@
"httpProxyPort": { "index": 39, "kind": "parameter", "displayName": "Http
Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type":
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 3128, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "If you need to tunnel SMPP through a HTTP
proxy, set this attribute to the port of y [...]
"httpProxyUsername": { "index": 40, "kind": "parameter", "displayName":
"Http Proxy Username", "group": "proxy", "label": "proxy", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "If your HTTP proxy requires basic
authentication, set this attribute to the username required for yo [...]
"proxyHeaders": { "index": 41, "kind": "parameter", "displayName": "Proxy
Headers", "group": "proxy", "label": "proxy", "required": false, "type":
"object", "javaType": "java.util.Map<java.lang.String, java.lang.String>",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "These headers will be passed to the proxy
server while establishing the connec [...]
- "hostnameVerification": { "index": 42, "kind": "parameter", "displayName":
"Hostname Verification", "group": "security", "label": "security", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "security": "insecure:ssl",
"insecureValue": "false", "defaultValue": true, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether to check that [...]
- "password": { "index": 43, "kind": "parameter", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "The password for connecting to SMSC server." },
- "systemId": { "index": 44, "kind": "parameter", "displayName": "System
Id", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "defaultValue": "smppclient",
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "The system id (username)
for connecting to SMSC server." },
- "usingSSL": { "index": 45, "kind": "parameter", "displayName": "Using
SSL", "group": "security", "label": "security", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether using SSL with the smpps protocol" }
+ "allowSystemIdAndPasswordFromHeaders": { "index": 42, "kind": "parameter",
"displayName": "Allow System Id And Password From Headers", "group":
"security", "label": "producer,security", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether a producer with lazySe [...]
+ "hostnameVerification": { "index": 43, "kind": "parameter", "displayName":
"Hostname Verification", "group": "security", "label": "security", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "security": "insecure:ssl",
"insecureValue": "false", "defaultValue": true, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether to check that [...]
+ "password": { "index": 44, "kind": "parameter", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "The password for connecting to SMSC server." },
+ "systemId": { "index": 45, "kind": "parameter", "displayName": "System
Id", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "defaultValue": "smppclient",
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "The system id (username)
for connecting to SMSC server." },
+ "usingSSL": { "index": 46, "kind": "parameter", "displayName": "Using
SSL", "group": "security", "label": "security", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether using SSL with the smpps protocol" }
}
}
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/smpp-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/smpp-component.adoc
index 02358413bb5a..0b6d5d0f55a9 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/smpp-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/smpp-component.adoc
@@ -188,6 +188,23 @@ include::partial$component-endpoint-headers.adoc[]
// component options: END
+== Lazy session creation
+
+By default, the producer connects to the SMSC when it starts. With
`lazySessionCreation=true`, it connects when it
+sends the first message instead, so the route can start while the SMSC is not
available.
+
+The producer connects with the `systemId` and `password` of the endpoint. To
connect with another system id and
+password chosen by the route, set `allowSystemIdAndPasswordFromHeaders=true`
as well: the producer then takes them
+from the `CamelSmppSystemId` and `CamelSmppPassword` headers of the first
message, when both are set, and keeps using
+them when it reconnects. Without this option, these headers are ignored.
+
+----
+smpp://localhost:2775?lazySessionCreation=true&allowSystemIdAndPasswordFromHeaders=true
+----
+
+Enable `allowSystemIdAndPasswordFromHeaders` only when the route sets these
headers itself, and remove them from
+messages that come from elsewhere.
+
== Exception handling
This component supports the general Camel exception handling
diff --git
a/components/camel-smpp/src/generated/java/org/apache/camel/component/smpp/SmppComponentConfigurer.java
b/components/camel-smpp/src/generated/java/org/apache/camel/component/smpp/SmppComponentConfigurer.java
index 120ba09c0e05..7b3b02465b97 100644
---
a/components/camel-smpp/src/generated/java/org/apache/camel/component/smpp/SmppComponentConfigurer.java
+++
b/components/camel-smpp/src/generated/java/org/apache/camel/component/smpp/SmppComponentConfigurer.java
@@ -32,6 +32,8 @@ public class SmppComponentConfigurer extends
PropertyConfigurerSupport implement
switch (ignoreCase ? name.toLowerCase() : name) {
case "addressrange":
case "addressRange":
getOrCreateConfiguration(target).setAddressRange(property(camelContext,
java.lang.String.class, value)); return true;
+ case "allowsystemidandpasswordfromheaders":
+ case "allowSystemIdAndPasswordFromHeaders":
getOrCreateConfiguration(target).setAllowSystemIdAndPasswordFromHeaders(property(camelContext,
boolean.class, value)); return true;
case "alphabet":
getOrCreateConfiguration(target).setAlphabet(property(camelContext, byte.class,
value)); return true;
case "autowiredenabled":
case "autowiredEnabled":
target.setAutowiredEnabled(property(camelContext, boolean.class, value));
return true;
@@ -123,6 +125,8 @@ public class SmppComponentConfigurer extends
PropertyConfigurerSupport implement
switch (ignoreCase ? name.toLowerCase() : name) {
case "addressrange":
case "addressRange": return java.lang.String.class;
+ case "allowsystemidandpasswordfromheaders":
+ case "allowSystemIdAndPasswordFromHeaders": return boolean.class;
case "alphabet": return byte.class;
case "autowiredenabled":
case "autowiredEnabled": return boolean.class;
@@ -215,6 +219,8 @@ public class SmppComponentConfigurer extends
PropertyConfigurerSupport implement
switch (ignoreCase ? name.toLowerCase() : name) {
case "addressrange":
case "addressRange": return
getOrCreateConfiguration(target).getAddressRange();
+ case "allowsystemidandpasswordfromheaders":
+ case "allowSystemIdAndPasswordFromHeaders": return
getOrCreateConfiguration(target).isAllowSystemIdAndPasswordFromHeaders();
case "alphabet": return getOrCreateConfiguration(target).getAlphabet();
case "autowiredenabled":
case "autowiredEnabled": return target.isAutowiredEnabled();
diff --git
a/components/camel-smpp/src/generated/java/org/apache/camel/component/smpp/SmppEndpointConfigurer.java
b/components/camel-smpp/src/generated/java/org/apache/camel/component/smpp/SmppEndpointConfigurer.java
index 4326c474d400..9abad8ab7639 100644
---
a/components/camel-smpp/src/generated/java/org/apache/camel/component/smpp/SmppEndpointConfigurer.java
+++
b/components/camel-smpp/src/generated/java/org/apache/camel/component/smpp/SmppEndpointConfigurer.java
@@ -25,6 +25,8 @@ public class SmppEndpointConfigurer extends
PropertyConfigurerSupport implements
switch (ignoreCase ? name.toLowerCase() : name) {
case "addressrange":
case "addressRange":
target.getConfiguration().setAddressRange(property(camelContext,
java.lang.String.class, value)); return true;
+ case "allowsystemidandpasswordfromheaders":
+ case "allowSystemIdAndPasswordFromHeaders":
target.getConfiguration().setAllowSystemIdAndPasswordFromHeaders(property(camelContext,
boolean.class, value)); return true;
case "alphabet":
target.getConfiguration().setAlphabet(property(camelContext, byte.class,
value)); return true;
case "bridgeerrorhandler":
case "bridgeErrorHandler":
target.setBridgeErrorHandler(property(camelContext, boolean.class, value));
return true;
@@ -117,6 +119,8 @@ public class SmppEndpointConfigurer extends
PropertyConfigurerSupport implements
switch (ignoreCase ? name.toLowerCase() : name) {
case "addressrange":
case "addressRange": return java.lang.String.class;
+ case "allowsystemidandpasswordfromheaders":
+ case "allowSystemIdAndPasswordFromHeaders": return boolean.class;
case "alphabet": return byte.class;
case "bridgeerrorhandler":
case "bridgeErrorHandler": return boolean.class;
@@ -210,6 +214,8 @@ public class SmppEndpointConfigurer extends
PropertyConfigurerSupport implements
switch (ignoreCase ? name.toLowerCase() : name) {
case "addressrange":
case "addressRange": return
target.getConfiguration().getAddressRange();
+ case "allowsystemidandpasswordfromheaders":
+ case "allowSystemIdAndPasswordFromHeaders": return
target.getConfiguration().isAllowSystemIdAndPasswordFromHeaders();
case "alphabet": return target.getConfiguration().getAlphabet();
case "bridgeerrorhandler":
case "bridgeErrorHandler": return target.isBridgeErrorHandler();
diff --git
a/components/camel-smpp/src/generated/java/org/apache/camel/component/smpp/SmppEndpointUriFactory.java
b/components/camel-smpp/src/generated/java/org/apache/camel/component/smpp/SmppEndpointUriFactory.java
index ec79f5b00233..0073f9234ffd 100644
---
a/components/camel-smpp/src/generated/java/org/apache/camel/component/smpp/SmppEndpointUriFactory.java
+++
b/components/camel-smpp/src/generated/java/org/apache/camel/component/smpp/SmppEndpointUriFactory.java
@@ -25,8 +25,9 @@ public class SmppEndpointUriFactory extends
org.apache.camel.support.component.E
private static final Set<String> ENDPOINT_IDENTITY_PROPERTY_NAMES;
private static final Map<String, String> MULTI_VALUE_PREFIXES;
static {
- Set<String> props = new HashSet<>(46);
+ Set<String> props = new HashSet<>(47);
props.add("addressRange");
+ props.add("allowSystemIdAndPasswordFromHeaders");
props.add("alphabet");
props.add("bridgeErrorHandler");
props.add("dataCoding");
diff --git
a/components/camel-smpp/src/generated/resources/META-INF/org/apache/camel/component/smpp/smpp.json
b/components/camel-smpp/src/generated/resources/META-INF/org/apache/camel/component/smpp/smpp.json
index 3e2db72da82d..c29ccc9620c7 100644
---
a/components/camel-smpp/src/generated/resources/META-INF/org/apache/camel/component/smpp/smpp.json
+++
b/components/camel-smpp/src/generated/resources/META-INF/org/apache/camel/component/smpp/smpp.json
@@ -35,7 +35,7 @@
"destAddr": { "index": 7, "kind": "property", "displayName": "Dest Addr",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "1717", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the destination SME address. For
mobile terminated messages, this is the directory [...]
"destAddrNpi": { "index": 8, "kind": "property", "displayName": "Dest Addr
Npi", "group": "producer", "label": "producer", "required": false, "type":
"enum", "javaType": "byte", "enum": [ "0", "1", "2", "3", "6", "8", "9", "10",
"13", "18" ], "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Defines the type of
number (TON) to be used in the SME de [...]
"destAddrTon": { "index": 9, "kind": "property", "displayName": "Dest Addr
Ton", "group": "producer", "label": "producer", "required": false, "type":
"enum", "javaType": "byte", "enum": [ "0", "1", "2", "3", "4", "5", "6" ],
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the type of number (TON) to be used in
the SME destination address [...]
- "lazySessionCreation": { "index": 10, "kind": "property", "displayName":
"Lazy Session Creation", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Sessions can be lazily
created to avoid exceptions, if the SMSC is not avail [...]
+ "lazySessionCreation": { "index": 10, "kind": "property", "displayName":
"Lazy Session Creation", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Sessions can be lazily
created to avoid exceptions, if the SMSC is not avail [...]
"lazyStartProducer": { "index": 11, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "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 otherwise fai [...]
"messageReceiverRouteId": { "index": 12, "kind": "property",
"displayName": "Message Receiver Route Id", "group": "producer", "label":
"producer", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Set this on producer in
order to benefit from transceiver (TRX) binding type. So onc [...]
"numberingPlanIndicator": { "index": 13, "kind": "property",
"displayName": "Numbering Plan Indicator", "group": "producer", "label":
"producer", "required": false, "type": "enum", "javaType": "byte", "enum": [
"0", "1", "2", "3", "6", "8", "9", "10", "13", "18" ], "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the numeric plan indicator [...]
@@ -65,10 +65,11 @@
"httpProxyPort": { "index": 37, "kind": "property", "displayName": "Http
Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type":
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 3128, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "If you need to tunnel SMPP through a HTTP
proxy, set this attribute to the port of yo [...]
"httpProxyUsername": { "index": 38, "kind": "property", "displayName":
"Http Proxy Username", "group": "proxy", "label": "proxy", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "If your HTTP proxy requires basic
authentication, set this attribute to the username required for you [...]
"proxyHeaders": { "index": 39, "kind": "property", "displayName": "Proxy
Headers", "group": "proxy", "label": "proxy", "required": false, "type":
"object", "javaType": "java.util.Map<java.lang.String, java.lang.String>",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "These headers will be passed to the proxy
server while establishing the connect [...]
- "hostnameVerification": { "index": 40, "kind": "property", "displayName":
"Hostname Verification", "group": "security", "label": "security", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "security": "insecure:ssl",
"insecureValue": "false", "defaultValue": true, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether to check that [...]
- "password": { "index": 41, "kind": "property", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "The password for connecting to SMSC server." },
- "systemId": { "index": 42, "kind": "property", "displayName": "System Id",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "defaultValue": "smppclient",
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "The system id (username)
for connecting to SMSC server." },
- "usingSSL": { "index": 43, "kind": "property", "displayName": "Using SSL",
"group": "security", "label": "security", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether using SSL with the smpps protocol" }
+ "allowSystemIdAndPasswordFromHeaders": { "index": 40, "kind": "property",
"displayName": "Allow System Id And Password From Headers", "group":
"security", "label": "producer,security", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether a producer with lazySes [...]
+ "hostnameVerification": { "index": 41, "kind": "property", "displayName":
"Hostname Verification", "group": "security", "label": "security", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "security": "insecure:ssl",
"insecureValue": "false", "defaultValue": true, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether to check that [...]
+ "password": { "index": 42, "kind": "property", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "The password for connecting to SMSC server." },
+ "systemId": { "index": 43, "kind": "property", "displayName": "System Id",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "defaultValue": "smppclient",
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "The system id (username)
for connecting to SMSC server." },
+ "usingSSL": { "index": 44, "kind": "property", "displayName": "Using SSL",
"group": "security", "label": "security", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether using SSL with the smpps protocol" }
},
"headers": {
"CamelSmppAlphabet": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Byte", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "For SubmitSm, SubmitMulti and ReplaceSm The
data coding according to the SMPP 3.4 specification, section 5.2.19. Use the
URI option alphabet settings above.", "constantName":
"org.apache.camel.component.smpp.SmppConstants#ALPHABET" },
@@ -107,8 +108,8 @@
"CamelSmppSourceAddrTon": { "index": 33, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "Byte",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Producer: Defines the type of number (TON) to be used in
the SME originator address parameters. Use the sourceAddrTon URI option values
defined above. Consumer: only for AlertNotification and DataSm Defines the type
of number (TON) to be used [...]
"CamelSmppSubmitted": { "index": 34, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"Integer", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "only for smsc DeliveryReceipt Number of short
messages originally submitted. This is only relevant when the original message
was submitted to a distribution list.The value is padded with leading zeros if
necessary.", "constantName": [...]
"CamelSmppSubmitDate": { "index": 35, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"Date", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "only for smsc DeliveryReceipt The time and
date at which the short message was submitted. In the case of a message which
has been replaced, this is the date that the original message was replaced. The
format is as follows: YYMMDDhhmm." [...]
- "CamelSmppSystemId": { "index": 36, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "The system id.", "constantName":
"org.apache.camel.component.smpp.SmppConstants#SYSTEM_ID" },
- "CamelSmppPassword": { "index": 37, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "The password.", "constantName":
"org.apache.camel.component.smpp.SmppConstants#PASSWORD" },
+ "CamelSmppSystemId": { "index": 36, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "The system id to connect to the SMSC with.
Used only by the first exchange of a producer with lazySessionCreation=true and
allowSystemIdAndPasswordFromHeaders=true, together with the CamelSmppPassword
header; otherwise ignored.", "cons [...]
+ "CamelSmppPassword": { "index": 37, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": true, "description": "The password to connect to the SMSC with. Used
only by the first exchange of a producer with lazySessionCreation=true and
allowSystemIdAndPasswordFromHeaders=true, together with the CamelSmppSystemId
header; otherwise ignored.", "consta [...]
"CamelSmppValidityPeriod": { "index": 38, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "String or
Date", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "Producer: only for SubmitSm, SubmitMulti and
ReplaceSm The validity period parameter indicates the SMSC expiration time,
after which the message should be discarded if not delivered to the
destination. If it's provided as Date, it' [...]
"CamelSmppOptionalParameters": { "index": 39, "kind": "header",
"displayName": "", "group": "consumer", "label": "consumer", "required": false,
"javaType": "Map<String, Object>", "deprecated": false, "deprecationNote": "Use
CamelSmppOptionalParameter instead", "autowired": false, "secret": false,
"description": "The optional parameters by name. Deprecation note: Use
CamelSmppOptionalParameter instead", "constantName":
"org.apache.camel.component.smpp.SmppConstants#OPTIONAL_PARAMETERS" },
"CamelSmppOptionalParameter": { "index": 40, "kind": "header",
"displayName": "", "group": "common", "label": "", "required": false,
"javaType": "Map<Short, Object>", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "description": "Producer: only for
SubmitSm, SubmitMulti and DataSm The optional parameter which are send to the
SMSC. The value is converted in the following way: String -
org.jsmpp.bean.OptionalParameter.COctetString, byte - org.jsmpp.bea [...]
@@ -129,7 +130,7 @@
"destAddr": { "index": 11, "kind": "parameter", "displayName": "Dest
Addr", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": "1717", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the destination SME address. For
mobile terminated messages, this is the director [...]
"destAddrNpi": { "index": 12, "kind": "parameter", "displayName": "Dest
Addr Npi", "group": "producer", "label": "producer", "required": false, "type":
"enum", "javaType": "byte", "enum": [ "0", "1", "2", "3", "6", "8", "9", "10",
"13", "18" ], "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Defines the type of
number (TON) to be used in the SME [...]
"destAddrTon": { "index": 13, "kind": "parameter", "displayName": "Dest
Addr Ton", "group": "producer", "label": "producer", "required": false, "type":
"enum", "javaType": "byte", "enum": [ "0", "1", "2", "3", "4", "5", "6" ],
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the type of number (TON) to be used in
the SME destination addres [...]
- "lazySessionCreation": { "index": 14, "kind": "parameter", "displayName":
"Lazy Session Creation", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Sessions can be lazily
created to avoid exceptions, if the SMSC is not avai [...]
+ "lazySessionCreation": { "index": 14, "kind": "parameter", "displayName":
"Lazy Session Creation", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Sessions can be lazily
created to avoid exceptions, if the SMSC is not avai [...]
"messageReceiverRouteId": { "index": 15, "kind": "parameter",
"displayName": "Message Receiver Route Id", "group": "producer", "label":
"producer", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Set this on producer in
order to benefit from transceiver (TRX) binding type. So on [...]
"numberingPlanIndicator": { "index": 16, "kind": "parameter",
"displayName": "Numbering Plan Indicator", "group": "producer", "label":
"producer", "required": false, "type": "enum", "javaType": "byte", "enum": [
"0", "1", "2", "3", "6", "8", "9", "10", "13", "18" ], "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the numeric plan indicato [...]
"priorityFlag": { "index": 17, "kind": "parameter", "displayName":
"Priority Flag", "group": "producer", "label": "producer", "required": false,
"type": "enum", "javaType": "byte", "enum": [ "0", "1", "2", "3" ],
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Allows the originating SME to assign a
priority level to the short message. Only for Su [...]
@@ -157,9 +158,10 @@
"httpProxyPort": { "index": 39, "kind": "parameter", "displayName": "Http
Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type":
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 3128, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "If you need to tunnel SMPP through a HTTP
proxy, set this attribute to the port of y [...]
"httpProxyUsername": { "index": 40, "kind": "parameter", "displayName":
"Http Proxy Username", "group": "proxy", "label": "proxy", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "If your HTTP proxy requires basic
authentication, set this attribute to the username required for yo [...]
"proxyHeaders": { "index": 41, "kind": "parameter", "displayName": "Proxy
Headers", "group": "proxy", "label": "proxy", "required": false, "type":
"object", "javaType": "java.util.Map<java.lang.String, java.lang.String>",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "These headers will be passed to the proxy
server while establishing the connec [...]
- "hostnameVerification": { "index": 42, "kind": "parameter", "displayName":
"Hostname Verification", "group": "security", "label": "security", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "security": "insecure:ssl",
"insecureValue": "false", "defaultValue": true, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether to check that [...]
- "password": { "index": 43, "kind": "parameter", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "The password for connecting to SMSC server." },
- "systemId": { "index": 44, "kind": "parameter", "displayName": "System
Id", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "defaultValue": "smppclient",
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "The system id (username)
for connecting to SMSC server." },
- "usingSSL": { "index": 45, "kind": "parameter", "displayName": "Using
SSL", "group": "security", "label": "security", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether using SSL with the smpps protocol" }
+ "allowSystemIdAndPasswordFromHeaders": { "index": 42, "kind": "parameter",
"displayName": "Allow System Id And Password From Headers", "group":
"security", "label": "producer,security", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether a producer with lazySe [...]
+ "hostnameVerification": { "index": 43, "kind": "parameter", "displayName":
"Hostname Verification", "group": "security", "label": "security", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "security": "insecure:ssl",
"insecureValue": "false", "defaultValue": true, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether to check that [...]
+ "password": { "index": 44, "kind": "parameter", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "The password for connecting to SMSC server." },
+ "systemId": { "index": 45, "kind": "parameter", "displayName": "System
Id", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "defaultValue": "smppclient",
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "The system id (username)
for connecting to SMSC server." },
+ "usingSSL": { "index": 46, "kind": "parameter", "displayName": "Using
SSL", "group": "security", "label": "security", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether using SSL with the smpps protocol" }
}
}
diff --git
a/components/camel-smpp/src/generated/resources/META-INF/org/apache/camel/component/smpp/smpps.json
b/components/camel-smpp/src/generated/resources/META-INF/org/apache/camel/component/smpp/smpps.json
index 11bf7005bfa7..f25f0a7d6986 100644
---
a/components/camel-smpp/src/generated/resources/META-INF/org/apache/camel/component/smpp/smpps.json
+++
b/components/camel-smpp/src/generated/resources/META-INF/org/apache/camel/component/smpp/smpps.json
@@ -35,7 +35,7 @@
"destAddr": { "index": 7, "kind": "property", "displayName": "Dest Addr",
"group": "producer", "label": "producer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "1717", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the destination SME address. For
mobile terminated messages, this is the directory [...]
"destAddrNpi": { "index": 8, "kind": "property", "displayName": "Dest Addr
Npi", "group": "producer", "label": "producer", "required": false, "type":
"enum", "javaType": "byte", "enum": [ "0", "1", "2", "3", "6", "8", "9", "10",
"13", "18" ], "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Defines the type of
number (TON) to be used in the SME de [...]
"destAddrTon": { "index": 9, "kind": "property", "displayName": "Dest Addr
Ton", "group": "producer", "label": "producer", "required": false, "type":
"enum", "javaType": "byte", "enum": [ "0", "1", "2", "3", "4", "5", "6" ],
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the type of number (TON) to be used in
the SME destination address [...]
- "lazySessionCreation": { "index": 10, "kind": "property", "displayName":
"Lazy Session Creation", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Sessions can be lazily
created to avoid exceptions, if the SMSC is not avail [...]
+ "lazySessionCreation": { "index": 10, "kind": "property", "displayName":
"Lazy Session Creation", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Sessions can be lazily
created to avoid exceptions, if the SMSC is not avail [...]
"lazyStartProducer": { "index": 11, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "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 otherwise fai [...]
"messageReceiverRouteId": { "index": 12, "kind": "property",
"displayName": "Message Receiver Route Id", "group": "producer", "label":
"producer", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Set this on producer in
order to benefit from transceiver (TRX) binding type. So onc [...]
"numberingPlanIndicator": { "index": 13, "kind": "property",
"displayName": "Numbering Plan Indicator", "group": "producer", "label":
"producer", "required": false, "type": "enum", "javaType": "byte", "enum": [
"0", "1", "2", "3", "6", "8", "9", "10", "13", "18" ], "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the numeric plan indicator [...]
@@ -65,10 +65,11 @@
"httpProxyPort": { "index": 37, "kind": "property", "displayName": "Http
Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type":
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 3128, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "If you need to tunnel SMPP through a HTTP
proxy, set this attribute to the port of yo [...]
"httpProxyUsername": { "index": 38, "kind": "property", "displayName":
"Http Proxy Username", "group": "proxy", "label": "proxy", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "If your HTTP proxy requires basic
authentication, set this attribute to the username required for you [...]
"proxyHeaders": { "index": 39, "kind": "property", "displayName": "Proxy
Headers", "group": "proxy", "label": "proxy", "required": false, "type":
"object", "javaType": "java.util.Map<java.lang.String, java.lang.String>",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "These headers will be passed to the proxy
server while establishing the connect [...]
- "hostnameVerification": { "index": 40, "kind": "property", "displayName":
"Hostname Verification", "group": "security", "label": "security", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "security": "insecure:ssl",
"insecureValue": "false", "defaultValue": true, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether to check that [...]
- "password": { "index": 41, "kind": "property", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "The password for connecting to SMSC server." },
- "systemId": { "index": 42, "kind": "property", "displayName": "System Id",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "defaultValue": "smppclient",
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "The system id (username)
for connecting to SMSC server." },
- "usingSSL": { "index": 43, "kind": "property", "displayName": "Using SSL",
"group": "security", "label": "security", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether using SSL with the smpps protocol" }
+ "allowSystemIdAndPasswordFromHeaders": { "index": 40, "kind": "property",
"displayName": "Allow System Id And Password From Headers", "group":
"security", "label": "producer,security", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether a producer with lazySes [...]
+ "hostnameVerification": { "index": 41, "kind": "property", "displayName":
"Hostname Verification", "group": "security", "label": "security", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "security": "insecure:ssl",
"insecureValue": "false", "defaultValue": true, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether to check that [...]
+ "password": { "index": 42, "kind": "property", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "The password for connecting to SMSC server." },
+ "systemId": { "index": 43, "kind": "property", "displayName": "System Id",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "defaultValue": "smppclient",
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "The system id (username)
for connecting to SMSC server." },
+ "usingSSL": { "index": 44, "kind": "property", "displayName": "Using SSL",
"group": "security", "label": "security", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether using SSL with the smpps protocol" }
},
"headers": {
"CamelSmppAlphabet": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"Byte", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "For SubmitSm, SubmitMulti and ReplaceSm The
data coding according to the SMPP 3.4 specification, section 5.2.19. Use the
URI option alphabet settings above.", "constantName":
"org.apache.camel.component.smpp.SmppConstants#ALPHABET" },
@@ -107,8 +108,8 @@
"CamelSmppSourceAddrTon": { "index": 33, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "Byte",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Producer: Defines the type of number (TON) to be used in
the SME originator address parameters. Use the sourceAddrTon URI option values
defined above. Consumer: only for AlertNotification and DataSm Defines the type
of number (TON) to be used [...]
"CamelSmppSubmitted": { "index": 34, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"Integer", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "only for smsc DeliveryReceipt Number of short
messages originally submitted. This is only relevant when the original message
was submitted to a distribution list.The value is padded with leading zeros if
necessary.", "constantName": [...]
"CamelSmppSubmitDate": { "index": 35, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"Date", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "only for smsc DeliveryReceipt The time and
date at which the short message was submitted. In the case of a message which
has been replaced, this is the date that the original message was replaced. The
format is as follows: YYMMDDhhmm." [...]
- "CamelSmppSystemId": { "index": 36, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "The system id.", "constantName":
"org.apache.camel.component.smpp.SmppConstants#SYSTEM_ID" },
- "CamelSmppPassword": { "index": 37, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "The password.", "constantName":
"org.apache.camel.component.smpp.SmppConstants#PASSWORD" },
+ "CamelSmppSystemId": { "index": 36, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "The system id to connect to the SMSC with.
Used only by the first exchange of a producer with lazySessionCreation=true and
allowSystemIdAndPasswordFromHeaders=true, together with the CamelSmppPassword
header; otherwise ignored.", "cons [...]
+ "CamelSmppPassword": { "index": 37, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": true, "description": "The password to connect to the SMSC with. Used
only by the first exchange of a producer with lazySessionCreation=true and
allowSystemIdAndPasswordFromHeaders=true, together with the CamelSmppSystemId
header; otherwise ignored.", "consta [...]
"CamelSmppValidityPeriod": { "index": 38, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "String or
Date", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "Producer: only for SubmitSm, SubmitMulti and
ReplaceSm The validity period parameter indicates the SMSC expiration time,
after which the message should be discarded if not delivered to the
destination. If it's provided as Date, it' [...]
"CamelSmppOptionalParameters": { "index": 39, "kind": "header",
"displayName": "", "group": "consumer", "label": "consumer", "required": false,
"javaType": "Map<String, Object>", "deprecated": false, "deprecationNote": "Use
CamelSmppOptionalParameter instead", "autowired": false, "secret": false,
"description": "The optional parameters by name. Deprecation note: Use
CamelSmppOptionalParameter instead", "constantName":
"org.apache.camel.component.smpp.SmppConstants#OPTIONAL_PARAMETERS" },
"CamelSmppOptionalParameter": { "index": 40, "kind": "header",
"displayName": "", "group": "common", "label": "", "required": false,
"javaType": "Map<Short, Object>", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "description": "Producer: only for
SubmitSm, SubmitMulti and DataSm The optional parameter which are send to the
SMSC. The value is converted in the following way: String -
org.jsmpp.bean.OptionalParameter.COctetString, byte - org.jsmpp.bea [...]
@@ -129,7 +130,7 @@
"destAddr": { "index": 11, "kind": "parameter", "displayName": "Dest
Addr", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": "1717", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the destination SME address. For
mobile terminated messages, this is the director [...]
"destAddrNpi": { "index": 12, "kind": "parameter", "displayName": "Dest
Addr Npi", "group": "producer", "label": "producer", "required": false, "type":
"enum", "javaType": "byte", "enum": [ "0", "1", "2", "3", "6", "8", "9", "10",
"13", "18" ], "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Defines the type of
number (TON) to be used in the SME [...]
"destAddrTon": { "index": 13, "kind": "parameter", "displayName": "Dest
Addr Ton", "group": "producer", "label": "producer", "required": false, "type":
"enum", "javaType": "byte", "enum": [ "0", "1", "2", "3", "4", "5", "6" ],
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the type of number (TON) to be used in
the SME destination addres [...]
- "lazySessionCreation": { "index": 14, "kind": "parameter", "displayName":
"Lazy Session Creation", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Sessions can be lazily
created to avoid exceptions, if the SMSC is not avai [...]
+ "lazySessionCreation": { "index": 14, "kind": "parameter", "displayName":
"Lazy Session Creation", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Sessions can be lazily
created to avoid exceptions, if the SMSC is not avai [...]
"messageReceiverRouteId": { "index": 15, "kind": "parameter",
"displayName": "Message Receiver Route Id", "group": "producer", "label":
"producer", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "Set this on producer in
order to benefit from transceiver (TRX) binding type. So on [...]
"numberingPlanIndicator": { "index": 16, "kind": "parameter",
"displayName": "Numbering Plan Indicator", "group": "producer", "label":
"producer", "required": false, "type": "enum", "javaType": "byte", "enum": [
"0", "1", "2", "3", "6", "8", "9", "10", "13", "18" ], "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Defines the numeric plan indicato [...]
"priorityFlag": { "index": 17, "kind": "parameter", "displayName":
"Priority Flag", "group": "producer", "label": "producer", "required": false,
"type": "enum", "javaType": "byte", "enum": [ "0", "1", "2", "3" ],
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Allows the originating SME to assign a
priority level to the short message. Only for Su [...]
@@ -157,9 +158,10 @@
"httpProxyPort": { "index": 39, "kind": "parameter", "displayName": "Http
Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type":
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": 3128, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "If you need to tunnel SMPP through a HTTP
proxy, set this attribute to the port of y [...]
"httpProxyUsername": { "index": 40, "kind": "parameter", "displayName":
"Http Proxy Username", "group": "proxy", "label": "proxy", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "If your HTTP proxy requires basic
authentication, set this attribute to the username required for yo [...]
"proxyHeaders": { "index": 41, "kind": "parameter", "displayName": "Proxy
Headers", "group": "proxy", "label": "proxy", "required": false, "type":
"object", "javaType": "java.util.Map<java.lang.String, java.lang.String>",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "These headers will be passed to the proxy
server while establishing the connec [...]
- "hostnameVerification": { "index": 42, "kind": "parameter", "displayName":
"Hostname Verification", "group": "security", "label": "security", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "security": "insecure:ssl",
"insecureValue": "false", "defaultValue": true, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether to check that [...]
- "password": { "index": 43, "kind": "parameter", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "The password for connecting to SMSC server." },
- "systemId": { "index": 44, "kind": "parameter", "displayName": "System
Id", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "defaultValue": "smppclient",
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "The system id (username)
for connecting to SMSC server." },
- "usingSSL": { "index": 45, "kind": "parameter", "displayName": "Using
SSL", "group": "security", "label": "security", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether using SSL with the smpps protocol" }
+ "allowSystemIdAndPasswordFromHeaders": { "index": 42, "kind": "parameter",
"displayName": "Allow System Id And Password From Headers", "group":
"security", "label": "producer,security", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether a producer with lazySe [...]
+ "hostnameVerification": { "index": 43, "kind": "parameter", "displayName":
"Hostname Verification", "group": "security", "label": "security", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "security": "insecure:ssl",
"insecureValue": "false", "defaultValue": true, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether to check that [...]
+ "password": { "index": 44, "kind": "parameter", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "The password for connecting to SMSC server." },
+ "systemId": { "index": 45, "kind": "parameter", "displayName": "System
Id", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "defaultValue": "smppclient",
"configurationClass": "org.apache.camel.component.smpp.SmppConfiguration",
"configurationField": "configuration", "description": "The system id (username)
for connecting to SMSC server." },
+ "usingSSL": { "index": 46, "kind": "parameter", "displayName": "Using
SSL", "group": "security", "label": "security", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.smpp.SmppConfiguration", "configurationField":
"configuration", "description": "Whether using SSL with the smpps protocol" }
}
}
diff --git a/components/camel-smpp/src/main/docs/smpp-component.adoc
b/components/camel-smpp/src/main/docs/smpp-component.adoc
index 02358413bb5a..0b6d5d0f55a9 100644
--- a/components/camel-smpp/src/main/docs/smpp-component.adoc
+++ b/components/camel-smpp/src/main/docs/smpp-component.adoc
@@ -188,6 +188,23 @@ include::partial$component-endpoint-headers.adoc[]
// component options: END
+== Lazy session creation
+
+By default, the producer connects to the SMSC when it starts. With
`lazySessionCreation=true`, it connects when it
+sends the first message instead, so the route can start while the SMSC is not
available.
+
+The producer connects with the `systemId` and `password` of the endpoint. To
connect with another system id and
+password chosen by the route, set `allowSystemIdAndPasswordFromHeaders=true`
as well: the producer then takes them
+from the `CamelSmppSystemId` and `CamelSmppPassword` headers of the first
message, when both are set, and keeps using
+them when it reconnects. Without this option, these headers are ignored.
+
+----
+smpp://localhost:2775?lazySessionCreation=true&allowSystemIdAndPasswordFromHeaders=true
+----
+
+Enable `allowSystemIdAndPasswordFromHeaders` only when the route sets these
headers itself, and remove them from
+messages that come from elsewhere.
+
== Exception handling
This component supports the general Camel exception handling
diff --git
a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConfiguration.java
b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConfiguration.java
index 271f683b70ce..b3b46c5943c0 100644
---
a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConfiguration.java
+++
b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConfiguration.java
@@ -96,6 +96,8 @@ public class SmppConfiguration implements Cloneable {
private int maxReconnect = Integer.MAX_VALUE;
@UriParam(label = "producer")
private boolean lazySessionCreation;
+ @UriParam(label = "producer,security")
+ private boolean allowSystemIdAndPasswordFromHeaders;
@UriParam(label = "producer")
private String messageReceiverRouteId;
@UriParam(label = "proxy")
@@ -587,13 +589,28 @@ public class SmppConfiguration implements Cloneable {
/**
* Sessions can be lazily created to avoid exceptions, if the SMSC is not
available when the Camel producer is
- * started. Camel will check the in message headers 'CamelSmppSystemId'
and 'CamelSmppPassword' of the first
- * exchange. If they are present, Camel will use these data to connect to
the SMSC.
+ * started. The session is then created when the first exchange is sent,
with the systemId and password of the
+ * endpoint. See the allowSystemIdAndPasswordFromHeaders option to take
them from the message headers instead.
*/
public void setLazySessionCreation(boolean lazySessionCreation) {
this.lazySessionCreation = lazySessionCreation;
}
+ public boolean isAllowSystemIdAndPasswordFromHeaders() {
+ return allowSystemIdAndPasswordFromHeaders;
+ }
+
+ /**
+ * Whether a producer with lazySessionCreation=true may take the system id
and the password, with which it connects
+ * to the SMSC, from the 'CamelSmppSystemId' and 'CamelSmppPassword'
headers of the first exchange. When both
+ * headers are present, the producer connects with them in place of the
systemId and password of the endpoint, and
+ * keeps using them when it reconnects. This is disabled by default, and
the headers are then ignored. Enable this
+ * only when the route sets these headers itself.
+ */
+ public void setAllowSystemIdAndPasswordFromHeaders(boolean
allowSystemIdAndPasswordFromHeaders) {
+ this.allowSystemIdAndPasswordFromHeaders =
allowSystemIdAndPasswordFromHeaders;
+ }
+
public String getMessageReceiverRouteId() {
return messageReceiverRouteId;
}
@@ -803,6 +820,7 @@ public class SmppConfiguration implements Cloneable {
+ ", reconnectDelay=" + reconnectDelay
+ ", maxReconnect=" + maxReconnect
+ ", lazySessionCreation=" + lazySessionCreation
+ + ", allowSystemIdAndPasswordFromHeaders=" +
allowSystemIdAndPasswordFromHeaders
+ ", messageReceiverRouteId=" + messageReceiverRouteId
+ ", httpProxyHost=" + httpProxyHost
+ ", httpProxyPort=" + httpProxyPort
diff --git
a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConstants.java
b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConstants.java
index 56736b1bb880..8f31d2ab1421 100644
---
a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConstants.java
+++
b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConstants.java
@@ -231,9 +231,17 @@ public interface SmppConstants {
"as follows: YYMMDDhhmm.",
javaType = "Date")
String SUBMIT_DATE = "CamelSmppSubmitDate";
- @Metadata(label = "producer", description = "The system id.", javaType =
"String")
+ @Metadata(label = "producer",
+ description = "The system id to connect to the SMSC with. Used
only by the first exchange of a producer with"
+ + " `lazySessionCreation=true` and
`allowSystemIdAndPasswordFromHeaders=true`, together with"
+ + " the `CamelSmppPassword` header; otherwise
ignored.",
+ javaType = "String")
String SYSTEM_ID = "CamelSmppSystemId";
- @Metadata(label = "producer", description = "The password.", javaType =
"String")
+ @Metadata(label = "producer",
+ description = "The password to connect to the SMSC with. Used
only by the first exchange of a producer with"
+ + " `lazySessionCreation=true` and
`allowSystemIdAndPasswordFromHeaders=true`, together with"
+ + " the `CamelSmppSystemId` header; otherwise
ignored.",
+ javaType = "String", secret = true)
String PASSWORD = "CamelSmppPassword";
@Metadata(description = "*Producer:* *only for SubmitSm, SubmitMulti and
ReplaceSm* The validity period\n" +
"parameter indicates the SMSC expiration time,
after which the message\n" +
diff --git
a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppProducer.java
b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppProducer.java
index 78d16d9b442a..e2b5c4b9dae7 100644
---
a/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppProducer.java
+++
b/components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppProducer.java
@@ -157,14 +157,16 @@ public class SmppProducer extends DefaultProducer {
if (connectLock.tryLock()) {
try {
if (session == null) {
- // set the system id and password with which we
will try to connect to the SMSC
- Message in = exchange.getIn();
- String systemId =
in.getHeader(SmppConstants.SYSTEM_ID, String.class);
- String password =
in.getHeader(SmppConstants.PASSWORD, String.class);
- if (systemId != null && password != null) {
- LOG.info("using the system id '{}' to connect
to the SMSC...", systemId);
- this.configuration.setSystemId(systemId);
- this.configuration.setPassword(password);
+ if
(this.configuration.isAllowSystemIdAndPasswordFromHeaders()) {
+ // set the system id and password with which
we will try to connect to the SMSC
+ Message in = exchange.getIn();
+ String systemId =
in.getHeader(SmppConstants.SYSTEM_ID, String.class);
+ String password =
in.getHeader(SmppConstants.PASSWORD, String.class);
+ if (systemId != null && password != null) {
+ LOG.info("using the system id '{}' to
connect to the SMSC...", systemId);
+ this.configuration.setSystemId(systemId);
+ this.configuration.setPassword(password);
+ }
}
session = createSession();
}
diff --git
a/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/SmppConfigurationTest.java
b/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/SmppConfigurationTest.java
index 46677b40e258..c0a52fb252cb 100644
---
a/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/SmppConfigurationTest.java
+++
b/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/SmppConfigurationTest.java
@@ -228,6 +228,7 @@ public class SmppConfigurationTest {
+ "reconnectDelay=5000, "
+ "maxReconnect=2147483647, "
+ "lazySessionCreation=false, "
+ + "allowSystemIdAndPasswordFromHeaders=false, "
+ "messageReceiverRouteId=null, "
+ "httpProxyHost=null, "
+ "httpProxyPort=3128, "
diff --git
a/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/SmppProducerLazySessionCreationTest.java
b/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/SmppProducerLazySessionCreationTest.java
index 886629d2559c..a935d0d5692d 100644
---
a/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/SmppProducerLazySessionCreationTest.java
+++
b/components/camel-smpp/src/test/java/org/apache/camel/component/smpp/SmppProducerLazySessionCreationTest.java
@@ -27,8 +27,10 @@ import org.jsmpp.session.SessionStateListener;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.ArgumentMatchers.isA;
import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.never;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
@@ -94,8 +96,52 @@ public class SmppProducerLazySessionCreationTest {
verify(session).connectAndBind("localhost", Integer.valueOf(2775),
expectedBindParameter);
}
+ @Test
+ public void
processShouldIgnoreTheSystemIdAndPasswordFromTheExchangeByDefault() throws
Exception {
+ when(endpoint.getConnectionString())
+ .thenReturn("smpp://smppclient@localhost:2775");
+ BindParameter expectedBindParameter = new BindParameter(
+ BindType.BIND_TX,
+ "smppclient",
+ "password",
+ "cp",
+ TypeOfNumber.UNKNOWN,
+ NumberingPlanIndicator.UNKNOWN,
+ "");
+ BindParameter headerBindParameter = new BindParameter(
+ BindType.BIND_TX,
+ "smppclient2",
+ "password2",
+ "cp",
+ TypeOfNumber.UNKNOWN,
+ NumberingPlanIndicator.UNKNOWN,
+ "");
+ when(session.connectAndBind("localhost", Integer.valueOf(2775),
expectedBindParameter))
+ .thenReturn("1");
+ SmppBinding binding = mock(SmppBinding.class);
+ Exchange exchange = mock(Exchange.class);
+ Message in = mock(Message.class);
+ SmppCommand command = mock(SmppCommand.class);
+ when(endpoint.getBinding()).thenReturn(binding);
+ when(endpoint.isSingleton()).thenReturn(true);
+ when(binding.createSmppCommand(session, exchange)).thenReturn(command);
+ when(exchange.getIn()).thenReturn(in);
+ when(in.getHeader("CamelSmppSystemId",
String.class)).thenReturn("smppclient2");
+ when(in.getHeader("CamelSmppPassword",
String.class)).thenReturn("password2");
+
+ producer.doStart();
+ producer.process(exchange);
+
+ verify(session).connectAndBind("localhost", Integer.valueOf(2775),
expectedBindParameter);
+ verify(session, never()).connectAndBind("localhost",
Integer.valueOf(2775), headerBindParameter);
+ verify(command).execute(exchange);
+ assertEquals("smppclient", configuration.getSystemId());
+ assertEquals("password", configuration.getPassword());
+ }
+
@Test
public void
processShouldCreateTheSmppSessionWithTheSystemIdAndPasswordFromTheExchange()
throws Exception {
+ configuration.setAllowSystemIdAndPasswordFromHeaders(true);
when(endpoint.getConnectionString())
.thenReturn("smpp://localhost:2775");
BindParameter expectedBindParameter = new BindParameter(
@@ -124,5 +170,7 @@ public class SmppProducerLazySessionCreationTest {
producer.process(exchange);
verify(session).connectAndBind("localhost", Integer.valueOf(2775),
expectedBindParameter);
+ assertEquals("smppclient2", configuration.getSystemId());
+ assertEquals("password2", configuration.getPassword());
}
}
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SmppComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SmppComponentBuilderFactory.java
index 20e0f19bf834..cc779c51e261 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SmppComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SmppComponentBuilderFactory.java
@@ -254,10 +254,10 @@ public interface SmppComponentBuilderFactory {
/**
* Sessions can be lazily created to avoid exceptions, if the SMSC is
- * not available when the Camel producer is started. Camel will check
- * the in message headers 'CamelSmppSystemId' and 'CamelSmppPassword'
of
- * the first exchange. If they are present, Camel will use these data
to
- * connect to the SMSC.
+ * not available when the Camel producer is started. The session is
then
+ * created when the first exchange is sent, with the systemId and
+ * password of the endpoint. See the
allowSystemIdAndPasswordFromHeaders
+ * option to take them from the message headers instead.
*
* The option is a: <code>boolean</code> type.
*
@@ -807,6 +807,30 @@ public interface SmppComponentBuilderFactory {
}
+ /**
+ * Whether a producer with lazySessionCreation=true may take the system
+ * id and the password, with which it connects to the SMSC, from the
+ * 'CamelSmppSystemId' and 'CamelSmppPassword' headers of the first
+ * exchange. When both headers are present, the producer connects with
+ * them in place of the systemId and password of the endpoint, and
keeps
+ * using them when it reconnects. This is disabled by default, and the
+ * headers are then ignored. Enable this only when the route sets these
+ * headers itself.
+ *
+ * The option is a: <code>boolean</code> type.
+ *
+ * Default: false
+ * Group: security
+ *
+ * @param allowSystemIdAndPasswordFromHeaders the value to set
+ * @return the dsl builder
+ */
+ default SmppComponentBuilder
allowSystemIdAndPasswordFromHeaders(boolean
allowSystemIdAndPasswordFromHeaders) {
+ doSetProperty("allowSystemIdAndPasswordFromHeaders",
allowSystemIdAndPasswordFromHeaders);
+ return this;
+ }
+
+
/**
* Whether to check that the certificate of the SMSC matches the host
* Camel connects to, when SSL is used. When disabled, any certificate
@@ -934,6 +958,7 @@ public interface SmppComponentBuilderFactory {
case "httpProxyPort": getOrCreateConfiguration((SmppComponent)
component).setHttpProxyPort((java.lang.Integer) value); return true;
case "httpProxyUsername": getOrCreateConfiguration((SmppComponent)
component).setHttpProxyUsername((java.lang.String) value); return true;
case "proxyHeaders": getOrCreateConfiguration((SmppComponent)
component).setProxyHeaders((java.util.Map) value); return true;
+ case "allowSystemIdAndPasswordFromHeaders":
getOrCreateConfiguration((SmppComponent)
component).setAllowSystemIdAndPasswordFromHeaders((boolean) value); return true;
case "hostnameVerification":
getOrCreateConfiguration((SmppComponent)
component).setHostnameVerification((boolean) value); return true;
case "password": getOrCreateConfiguration((SmppComponent)
component).setPassword((java.lang.String) value); return true;
case "systemId": getOrCreateConfiguration((SmppComponent)
component).setSystemId((java.lang.String) value); return true;
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SmppsComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SmppsComponentBuilderFactory.java
index 3b23e53402dd..5b30400b2d71 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SmppsComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SmppsComponentBuilderFactory.java
@@ -254,10 +254,10 @@ public interface SmppsComponentBuilderFactory {
/**
* Sessions can be lazily created to avoid exceptions, if the SMSC is
- * not available when the Camel producer is started. Camel will check
- * the in message headers 'CamelSmppSystemId' and 'CamelSmppPassword'
of
- * the first exchange. If they are present, Camel will use these data
to
- * connect to the SMSC.
+ * not available when the Camel producer is started. The session is
then
+ * created when the first exchange is sent, with the systemId and
+ * password of the endpoint. See the
allowSystemIdAndPasswordFromHeaders
+ * option to take them from the message headers instead.
*
* The option is a: <code>boolean</code> type.
*
@@ -807,6 +807,30 @@ public interface SmppsComponentBuilderFactory {
}
+ /**
+ * Whether a producer with lazySessionCreation=true may take the system
+ * id and the password, with which it connects to the SMSC, from the
+ * 'CamelSmppSystemId' and 'CamelSmppPassword' headers of the first
+ * exchange. When both headers are present, the producer connects with
+ * them in place of the systemId and password of the endpoint, and
keeps
+ * using them when it reconnects. This is disabled by default, and the
+ * headers are then ignored. Enable this only when the route sets these
+ * headers itself.
+ *
+ * The option is a: <code>boolean</code> type.
+ *
+ * Default: false
+ * Group: security
+ *
+ * @param allowSystemIdAndPasswordFromHeaders the value to set
+ * @return the dsl builder
+ */
+ default SmppsComponentBuilder
allowSystemIdAndPasswordFromHeaders(boolean
allowSystemIdAndPasswordFromHeaders) {
+ doSetProperty("allowSystemIdAndPasswordFromHeaders",
allowSystemIdAndPasswordFromHeaders);
+ return this;
+ }
+
+
/**
* Whether to check that the certificate of the SMSC matches the host
* Camel connects to, when SSL is used. When disabled, any certificate
@@ -934,6 +958,7 @@ public interface SmppsComponentBuilderFactory {
case "httpProxyPort": getOrCreateConfiguration((SmppComponent)
component).setHttpProxyPort((java.lang.Integer) value); return true;
case "httpProxyUsername": getOrCreateConfiguration((SmppComponent)
component).setHttpProxyUsername((java.lang.String) value); return true;
case "proxyHeaders": getOrCreateConfiguration((SmppComponent)
component).setProxyHeaders((java.util.Map) value); return true;
+ case "allowSystemIdAndPasswordFromHeaders":
getOrCreateConfiguration((SmppComponent)
component).setAllowSystemIdAndPasswordFromHeaders((boolean) value); return true;
case "hostnameVerification":
getOrCreateConfiguration((SmppComponent)
component).setHostnameVerification((boolean) value); return true;
case "password": getOrCreateConfiguration((SmppComponent)
component).setPassword((java.lang.String) value); return true;
case "systemId": getOrCreateConfiguration((SmppComponent)
component).setSystemId((java.lang.String) value); return true;
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SmppEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SmppEndpointBuilderFactory.java
index 806c9fd636b0..ced7b0a6c48b 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SmppEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SmppEndpointBuilderFactory.java
@@ -1122,10 +1122,10 @@ public interface SmppEndpointBuilderFactory {
}
/**
* Sessions can be lazily created to avoid exceptions, if the SMSC is
- * not available when the Camel producer is started. Camel will check
- * the in message headers 'CamelSmppSystemId' and 'CamelSmppPassword'
of
- * the first exchange. If they are present, Camel will use these data
to
- * connect to the SMSC.
+ * not available when the Camel producer is started. The session is
then
+ * created when the first exchange is sent, with the systemId and
+ * password of the endpoint. See the
allowSystemIdAndPasswordFromHeaders
+ * option to take them from the message headers instead.
*
* The option is a: <code>boolean</code> type.
*
@@ -1141,10 +1141,10 @@ public interface SmppEndpointBuilderFactory {
}
/**
* Sessions can be lazily created to avoid exceptions, if the SMSC is
- * not available when the Camel producer is started. Camel will check
- * the in message headers 'CamelSmppSystemId' and 'CamelSmppPassword'
of
- * the first exchange. If they are present, Camel will use these data
to
- * connect to the SMSC.
+ * not available when the Camel producer is started. The session is
then
+ * created when the first exchange is sent, with the systemId and
+ * password of the endpoint. See the
allowSystemIdAndPasswordFromHeaders
+ * option to take them from the message headers instead.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -1681,6 +1681,50 @@ public interface SmppEndpointBuilderFactory {
doSetProperty("proxyHeaders", proxyHeaders);
return this;
}
+ /**
+ * Whether a producer with lazySessionCreation=true may take the system
+ * id and the password, with which it connects to the SMSC, from the
+ * 'CamelSmppSystemId' and 'CamelSmppPassword' headers of the first
+ * exchange. When both headers are present, the producer connects with
+ * them in place of the systemId and password of the endpoint, and
keeps
+ * using them when it reconnects. This is disabled by default, and the
+ * headers are then ignored. Enable this only when the route sets these
+ * headers itself.
+ *
+ * The option is a: <code>boolean</code> type.
+ *
+ * Default: false
+ * Group: security
+ *
+ * @param allowSystemIdAndPasswordFromHeaders the value to set
+ * @return the dsl builder
+ */
+ default SmppEndpointProducerBuilder
allowSystemIdAndPasswordFromHeaders(boolean
allowSystemIdAndPasswordFromHeaders) {
+ doSetProperty("allowSystemIdAndPasswordFromHeaders",
allowSystemIdAndPasswordFromHeaders);
+ return this;
+ }
+ /**
+ * Whether a producer with lazySessionCreation=true may take the system
+ * id and the password, with which it connects to the SMSC, from the
+ * 'CamelSmppSystemId' and 'CamelSmppPassword' headers of the first
+ * exchange. When both headers are present, the producer connects with
+ * them in place of the systemId and password of the endpoint, and
keeps
+ * using them when it reconnects. This is disabled by default, and the
+ * headers are then ignored. Enable this only when the route sets these
+ * headers itself.
+ *
+ * The option will be converted to a <code>boolean</code> type.
+ *
+ * Default: false
+ * Group: security
+ *
+ * @param allowSystemIdAndPasswordFromHeaders the value to set
+ * @return the dsl builder
+ */
+ default SmppEndpointProducerBuilder
allowSystemIdAndPasswordFromHeaders(String allowSystemIdAndPasswordFromHeaders)
{
+ doSetProperty("allowSystemIdAndPasswordFromHeaders",
allowSystemIdAndPasswordFromHeaders);
+ return this;
+ }
/**
* Whether to check that the certificate of the SMSC matches the host
* Camel connects to, when SSL is used. When disabled, any certificate
@@ -3391,7 +3435,10 @@ public interface SmppEndpointBuilderFactory {
return "CamelSmppSubmitDate";
}
/**
- * The system id.
+ * The system id to connect to the SMSC with. Used only by the first
+ * exchange of a producer with lazySessionCreation=true and
+ * allowSystemIdAndPasswordFromHeaders=true, together with the
+ * CamelSmppPassword header; otherwise ignored.
*
* The option is a: {@code String} type.
*
@@ -3403,7 +3450,10 @@ public interface SmppEndpointBuilderFactory {
return "CamelSmppSystemId";
}
/**
- * The password.
+ * The password to connect to the SMSC with. Used only by the first
+ * exchange of a producer with lazySessionCreation=true and
+ * allowSystemIdAndPasswordFromHeaders=true, together with the
+ * CamelSmppSystemId header; otherwise ignored.
*
* The option is a: {@code String} type.
*