Add component definition: cm-sms

This commit is contained in:
gitea_admin 2026-03-11 14:26:22 +00:00
parent 34a86e23db
commit e4bd2b4af1

126
component.json Normal file
View File

@ -0,0 +1,126 @@
{
"component": {
"kind": "component",
"name": "cm-sms",
"title": "CM SMS Gateway",
"description": "Send SMS messages via CM SMS Gateway.",
"deprecated": false,
"firstVersion": "2.18.0",
"label": "mobile",
"javaType": "org.apache.camel.component.cm.CMComponent",
"supportLevel": "Stable",
"groupId": "org.apache.camel",
"artifactId": "camel-cm-sms",
"version": "4.10.2",
"scheme": "cm-sms",
"extendsScheme": "",
"syntax": "cm-sms:host",
"async": false,
"api": false,
"consumerOnly": false,
"producerOnly": true,
"lenientProperties": false,
"browsable": false,
"remote": true
},
"properties": {
"host": {
"index": 0,
"kind": "path",
"displayName": "Host",
"group": "producer",
"label": "",
"required": true,
"type": "string",
"javaType": "java.lang.String",
"deprecated": false,
"deprecationNote": "",
"autowired": false,
"secret": false,
"description": "SMS Provider HOST with scheme"
},
"defaultFrom": {
"index": 1,
"kind": "parameter",
"displayName": "Default From",
"group": "producer",
"label": "",
"required": true,
"type": "string",
"javaType": "java.lang.String",
"deprecated": false,
"deprecationNote": "",
"autowired": false,
"secret": false,
"configurationClass": "org.apache.camel.component.cm.CMConfiguration",
"configurationField": "configuration",
"description": "This is the sender name. The maximum length is 11 characters."
},
"defaultMaxNumberOfParts": {
"index": 2,
"kind": "parameter",
"displayName": "Default Max Number Of Parts",
"group": "producer",
"label": "",
"required": false,
"type": "integer",
"javaType": "int",
"deprecated": false,
"autowired": false,
"secret": false,
"defaultValue": 8,
"configurationClass": "org.apache.camel.component.cm.CMConfiguration",
"configurationField": "configuration",
"description": "If it is a multipart message forces the max number. Message can be truncated. Technically the gateway will first check if a message is larger than 160 characters, if so, the message will be cut into multiple 153 characters parts limited by these parameters."
},
"productToken": {
"index": 3,
"kind": "parameter",
"displayName": "Product Token",
"group": "producer",
"label": "",
"required": true,
"type": "string",
"javaType": "java.lang.String",
"deprecated": false,
"deprecationNote": "",
"autowired": false,
"secret": false,
"configurationClass": "org.apache.camel.component.cm.CMConfiguration",
"configurationField": "configuration",
"description": "The unique token to use"
},
"testConnectionOnStartup": {
"index": 4,
"kind": "parameter",
"displayName": "Test Connection On Startup",
"group": "producer",
"label": "",
"required": false,
"type": "boolean",
"javaType": "boolean",
"deprecated": false,
"autowired": false,
"secret": false,
"defaultValue": false,
"configurationClass": "org.apache.camel.component.cm.CMConfiguration",
"configurationField": "configuration",
"description": "Whether to test the connection to the SMS Gateway on startup"
},
"lazyStartProducer": {
"index": 5,
"kind": "parameter",
"displayName": "Lazy Start Producer",
"group": "producer (advanced)",
"label": "producer,advanced",
"required": false,
"type": "boolean",
"javaType": "boolean",
"deprecated": false,
"autowired": false,
"secret": false,
"defaultValue": false,
"description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing."
}
}
}