This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 877f9316c1f0 CAMEL-27227: camel-smpp - the system id and password
headers are used only when allowSystemIdAndPasswordFromHeaders is enabled
(#30371)
877f9316c1f0 is described below
commit 877f9316c1f0a0dfe395acf7a31912b9537bb6a7
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Nov 19 13:02:56 2026 +0100
CAMEL-27227: camel-smpp - the system id and password headers are used only
when allowSystemIdAndPasswordFromHeaders is enabled (#30371)
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]>
---
.../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 +++++++++++++++
.../ROOT/pages/camel-4x-upgrade-guide-4_24.adoc | 9 +++
.../component/dsl/SmppComponentBuilderFactory.java | 33 ++++++++--
.../dsl/SmppsComponentBuilderFactory.java | 33 ++++++++--
.../endpoint/dsl/SmppEndpointBuilderFactory.java | 70 ++++++++++++++++++----
18 files changed, 320 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 7b583a4bd342..ea82745d57ce 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, "autowired": false, "secret": false,
"description": "For SubmitSm, SubmitMulti and ReplaceSm* The alphabet according
to the SMPP 3.4 specification, section 5.2.19, which is bits 0-3 of the data
coding. Use the URI option alphabet settings above.", "constantName":
"org.apache.camel.component.smpp.SmppConstants#ALP [...]
@@ -107,8 +108,8 @@
"CamelSmppSourceAddrTon": { "index": 33, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "Byte",
"deprecated": false, "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 in the SME origina [...]
"CamelSmppSubmitted": { "index": 34, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"Integer", "deprecated": false, "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": "org.apache.camel.comp [...]
"CamelSmppSubmitDate": { "index": 35, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"Date", "deprecated": false, "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.", "constantName": "org [...]
- "CamelSmppSystemId": { "index": 36, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "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, "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, "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.", "constantName": "org.apache. [...]
+ "CamelSmppPassword": { "index": 37, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "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.", "constantName": "org.apache.ca [...]
"CamelSmppValidityPeriod": { "index": 38, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "String or
Date", "deprecated": false, "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's
interpreted as abs [...]
"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, "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.bean.OptionalParamete [...]
@@ -134,7 +135,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 [...]
@@ -162,9 +163,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 1538ba59afce..bbc9ff6554b0 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, "autowired": false, "secret": false,
"description": "For SubmitSm, SubmitMulti and ReplaceSm* The alphabet according
to the SMPP 3.4 specification, section 5.2.19, which is bits 0-3 of the data
coding. Use the URI option alphabet settings above.", "constantName":
"org.apache.camel.component.smpp.SmppConstants#ALP [...]
@@ -107,8 +108,8 @@
"CamelSmppSourceAddrTon": { "index": 33, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "Byte",
"deprecated": false, "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 in the SME origina [...]
"CamelSmppSubmitted": { "index": 34, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"Integer", "deprecated": false, "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": "org.apache.camel.comp [...]
"CamelSmppSubmitDate": { "index": 35, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"Date", "deprecated": false, "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.", "constantName": "org [...]
- "CamelSmppSystemId": { "index": 36, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "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, "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, "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.", "constantName": "org.apache. [...]
+ "CamelSmppPassword": { "index": 37, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "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.", "constantName": "org.apache.ca [...]
"CamelSmppValidityPeriod": { "index": 38, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "String or
Date", "deprecated": false, "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's
interpreted as abs [...]
"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, "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.bean.OptionalParamete [...]
@@ -134,7 +135,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 [...]
@@ -162,9 +163,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 d875709b8c4d..634e7a21bd89 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
@@ -217,6 +217,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 366cc67bc81d..393b4e67e0cb 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
@@ -33,6 +33,8 @@ public class SmppComponentConfigurer extends
PropertyConfigurerSupport implement
switch (ignoreCase ? name.toLowerCase(Locale.ROOT) : 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;
@@ -124,6 +126,8 @@ public class SmppComponentConfigurer extends
PropertyConfigurerSupport implement
switch (ignoreCase ? name.toLowerCase(Locale.ROOT) : 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;
@@ -216,6 +220,8 @@ public class SmppComponentConfigurer extends
PropertyConfigurerSupport implement
switch (ignoreCase ? name.toLowerCase(Locale.ROOT) : 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 fcfde6d18fe5..0ac2676616d9 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
@@ -26,6 +26,8 @@ public class SmppEndpointConfigurer extends
PropertyConfigurerSupport implements
switch (ignoreCase ? name.toLowerCase(Locale.ROOT) : 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;
@@ -118,6 +120,8 @@ public class SmppEndpointConfigurer extends
PropertyConfigurerSupport implements
switch (ignoreCase ? name.toLowerCase(Locale.ROOT) : 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;
@@ -211,6 +215,8 @@ public class SmppEndpointConfigurer extends
PropertyConfigurerSupport implements
switch (ignoreCase ? name.toLowerCase(Locale.ROOT) : 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 e7ea820cb2e0..3b721581c9c3 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 7b583a4bd342..ea82745d57ce 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, "autowired": false, "secret": false,
"description": "For SubmitSm, SubmitMulti and ReplaceSm* The alphabet according
to the SMPP 3.4 specification, section 5.2.19, which is bits 0-3 of the data
coding. Use the URI option alphabet settings above.", "constantName":
"org.apache.camel.component.smpp.SmppConstants#ALP [...]
@@ -107,8 +108,8 @@
"CamelSmppSourceAddrTon": { "index": 33, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "Byte",
"deprecated": false, "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 in the SME origina [...]
"CamelSmppSubmitted": { "index": 34, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"Integer", "deprecated": false, "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": "org.apache.camel.comp [...]
"CamelSmppSubmitDate": { "index": 35, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"Date", "deprecated": false, "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.", "constantName": "org [...]
- "CamelSmppSystemId": { "index": 36, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "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, "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, "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.", "constantName": "org.apache. [...]
+ "CamelSmppPassword": { "index": 37, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "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.", "constantName": "org.apache.ca [...]
"CamelSmppValidityPeriod": { "index": 38, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "String or
Date", "deprecated": false, "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's
interpreted as abs [...]
"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, "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.bean.OptionalParamete [...]
@@ -134,7 +135,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 [...]
@@ -162,9 +163,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 1538ba59afce..bbc9ff6554b0 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, "autowired": false, "secret": false,
"description": "For SubmitSm, SubmitMulti and ReplaceSm* The alphabet according
to the SMPP 3.4 specification, section 5.2.19, which is bits 0-3 of the data
coding. Use the URI option alphabet settings above.", "constantName":
"org.apache.camel.component.smpp.SmppConstants#ALP [...]
@@ -107,8 +108,8 @@
"CamelSmppSourceAddrTon": { "index": 33, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "Byte",
"deprecated": false, "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 in the SME origina [...]
"CamelSmppSubmitted": { "index": 34, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"Integer", "deprecated": false, "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": "org.apache.camel.comp [...]
"CamelSmppSubmitDate": { "index": 35, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"Date", "deprecated": false, "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.", "constantName": "org [...]
- "CamelSmppSystemId": { "index": 36, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "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, "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, "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.", "constantName": "org.apache. [...]
+ "CamelSmppPassword": { "index": 37, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "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.", "constantName": "org.apache.ca [...]
"CamelSmppValidityPeriod": { "index": 38, "kind": "header", "displayName":
"", "group": "common", "label": "", "required": false, "javaType": "String or
Date", "deprecated": false, "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's
interpreted as abs [...]
"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, "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.bean.OptionalParamete [...]
@@ -134,7 +135,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 [...]
@@ -162,9 +163,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 d875709b8c4d..634e7a21bd89 100644
--- a/components/camel-smpp/src/main/docs/smpp-component.adoc
+++ b/components/camel-smpp/src/main/docs/smpp-component.adoc
@@ -217,6 +217,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 79d3a0e46e01..8332b82b40f2 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 22eb33fe7c0f..a08bd196b915 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
@@ -234,9 +234,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 a556e6867e4d..1ec4c3554b99 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
@@ -158,14 +158,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 c7461b0ce228..a7f84629a7c5 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
@@ -230,6 +230,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/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
index f1f516359024..98f7994bc4a8 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
@@ -2411,6 +2411,15 @@ with `defaultFrom`.
When the validation of an `SMSMessage` fails, the
`InvalidPayloadRuntimeException` now names the invalid fields in its
message, and its cause is an `org.apache.camel.ValidationException`.
+=== camel-smpp - the system id and password headers need the
allowSystemIdAndPasswordFromHeaders option
+
+A producer with `lazySessionCreation=true` took the system id and the
password, with which it connects to the SMSC,
+from the `CamelSmppSystemId` and `CamelSmppPassword` headers of the first
message when both were set, over the
+`systemId` and `password` options of the endpoint. It now connects with the
`systemId` and `password` of the endpoint,
+and ignores these headers, unless the endpoint sets the new
`allowSystemIdAndPasswordFromHeaders=true` option (disabled
+by default), or the component sets
`camel.component.smpp.allowSystemIdAndPasswordFromHeaders=true`. A route that
+relies on these headers must set this option.
+
=== camel-coap - a body that does not convert to a byte array fails
The `coap` producer sent a `POST` or `PUT` body that has no conversion to
`byte[]`, such as a `Map`, a POJO or a
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 276f7076ae83..774b0ea01a51 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
@@ -3395,7 +3439,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.
*
@@ -3407,7 +3454,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.
*