karavan-core 4.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. package/.bebelrc +3 -0
  2. package/.mocharc.json +11 -0
  3. package/.prettierignore +9 -0
  4. package/.prettierrc +14 -0
  5. package/package.json +62 -0
  6. package/src/core/api/CamelDefinitionApi.ts +3271 -0
  7. package/src/core/api/CamelDefinitionApiExt.ts +757 -0
  8. package/src/core/api/CamelDefinitionYaml.ts +412 -0
  9. package/src/core/api/CamelDefinitionYamlStep.ts +4733 -0
  10. package/src/core/api/CamelDisplayUtil.ts +143 -0
  11. package/src/core/api/CamelUtil.ts +360 -0
  12. package/src/core/api/ComponentApi.ts +368 -0
  13. package/src/core/api/KameletApi.ts +147 -0
  14. package/src/core/api/MainConfigurationApi.ts +47 -0
  15. package/src/core/api/ProjectModelApi.ts +75 -0
  16. package/src/core/api/SpiBeanApi.ts +104 -0
  17. package/src/core/api/TemplateApi.ts +58 -0
  18. package/src/core/api/TopologyUtils.ts +392 -0
  19. package/src/core/api/VariableUtil.ts +104 -0
  20. package/src/core/model/CamelDefinition.ts +3783 -0
  21. package/src/core/model/CamelMetadata.ts +2714 -0
  22. package/src/core/model/ComponentModels.ts +106 -0
  23. package/src/core/model/IntegrationDefinition.ts +188 -0
  24. package/src/core/model/KameletModels.ts +223 -0
  25. package/src/core/model/MainConfigurationModel.ts +37 -0
  26. package/src/core/model/ProjectModel.ts +43 -0
  27. package/src/core/model/SpiBeanModels.ts +53 -0
  28. package/src/core/model/TopologyDefinition.ts +117 -0
  29. package/test/addStep.spec.ts +124 -0
  30. package/test/addStep1.yaml +27 -0
  31. package/test/allowableValues.camel.yaml +19 -0
  32. package/test/allowableValues.spec.ts +30 -0
  33. package/test/avro-serialize-action.kamelet.yaml +70 -0
  34. package/test/beans.spec.ts +92 -0
  35. package/test/beans1.yaml +36 -0
  36. package/test/beans2.yaml +42 -0
  37. package/test/beans3.yaml +7 -0
  38. package/test/checkRequired.spec.ts +53 -0
  39. package/test/circuitBreaker.spec.ts +57 -0
  40. package/test/circuitBreaker.yaml +19 -0
  41. package/test/cloneDefinition.spec.ts +106 -0
  42. package/test/createKamelet.spec.ts +38 -0
  43. package/test/cxf.json +615 -0
  44. package/test/cxf.spec.ts +44 -0
  45. package/test/cxf.yaml +15 -0
  46. package/test/deleteStep.spec.ts +74 -0
  47. package/test/demo.spec.ts +49 -0
  48. package/test/demo.yaml +32 -0
  49. package/test/doCatchOnWhen.camel.yaml +20 -0
  50. package/test/doCatchOnWhen.spec.ts +36 -0
  51. package/test/errorHandler.spec.ts +38 -0
  52. package/test/errorHandler1.yaml +27 -0
  53. package/test/expression.spec.ts +55 -0
  54. package/test/findStep.spec.ts +112 -0
  55. package/test/findStep.yaml +65 -0
  56. package/test/getElementProperties.spec.ts +32 -0
  57. package/test/getElementPropertiesByName.spec.ts +31 -0
  58. package/test/getExpressionLanguage.spec.ts +40 -0
  59. package/test/hasElementWithId.camel.yaml +98 -0
  60. package/test/hasElementWithId.spec.ts +57 -0
  61. package/test/hasElementWithId1.camel.yaml +16 -0
  62. package/test/hasElementWithIdError.camel.yaml +98 -0
  63. package/test/integration.spec.ts +60 -0
  64. package/test/integration1.yaml +24 -0
  65. package/test/integration2.yaml +23 -0
  66. package/test/integrationToYaml.spec.ts +51 -0
  67. package/test/intercept.spec.ts +62 -0
  68. package/test/intercept.yaml +19 -0
  69. package/test/is-not-integration.yaml +5114 -0
  70. package/test/isIntegration.spec.ts +45 -0
  71. package/test/kamelet.spec.ts +61 -0
  72. package/test/metadata/components.json +697 -0
  73. package/test/metadata/kamelets.yaml +23414 -0
  74. package/test/metadata/spiBeans.json +3094 -0
  75. package/test/multiObjectProperties.spec.ts +46 -0
  76. package/test/multiObjectProperties1.yaml +19 -0
  77. package/test/multiple.spec.ts +38 -0
  78. package/test/multiple.yaml +29 -0
  79. package/test/openapi.spec.ts +48 -0
  80. package/test/openapi.yaml +7 -0
  81. package/test/placeholder.spec.ts +32 -0
  82. package/test/placeholder.yaml +133 -0
  83. package/test/plain-try-catch.yaml +31 -0
  84. package/test/plain.spec.ts +72 -0
  85. package/test/plain1.yaml +22 -0
  86. package/test/plain2.yaml +13 -0
  87. package/test/plain3.yaml +5 -0
  88. package/test/plain4.yaml +5 -0
  89. package/test/postgresql-source.kamelet.yaml +113 -0
  90. package/test/restConfigDsl.yaml +15 -0
  91. package/test/restDsl.spec.ts +83 -0
  92. package/test/restDsl.yaml +29 -0
  93. package/test/routes.spec.ts +37 -0
  94. package/test/routes1.yaml +31 -0
  95. package/test/supported-components.json +1221 -0
  96. package/test/supportedComponents.spec.ts +34 -0
  97. package/test/template1.AggregationStrategy.java +21 -0
  98. package/test/template1.Processor.java +13 -0
  99. package/test/template2.AggregationStrategy.java +21 -0
  100. package/test/template2.Processor.java +13 -0
  101. package/test/templateApi.spec.ts +45 -0
  102. package/test/timer-source.kamelet.yaml +75 -0
  103. package/test/tod.spec.ts +31 -0
  104. package/test/tod.yaml +9 -0
  105. package/test/topology.spec.ts +51 -0
  106. package/test/topology1.camel.yaml +56 -0
  107. package/test/topology2.camel.yaml +44 -0
  108. package/test/topology3.camel.yaml +27 -0
  109. package/test/tsconfig.testing.json +14 -0
  110. package/test/updateStep.spec.ts +72 -0
  111. package/test/variable1.camel.yaml +42 -0
  112. package/test/variable2.camel.yaml +42 -0
  113. package/test/variables.spec.ts +34 -0
  114. package/tsconfig.json +34 -0
package/test/cxf.json ADDED
@@ -0,0 +1,615 @@
1
+ {
2
+ "component": {
3
+ "kind": "component",
4
+ "name": "cxf",
5
+ "title": "CXF",
6
+ "description": "Expose SOAP WebServices using Apache CXF or connect to external WebServices using CXF WS client.",
7
+ "deprecated": false,
8
+ "firstVersion": "1.0.0",
9
+ "label": "soap,webservice",
10
+ "javaType": "org.apache.camel.component.cxf.CxfComponent",
11
+ "supportLevel": "Stable",
12
+ "groupId": "org.apache.camel",
13
+ "artifactId": "camel-cxf",
14
+ "version": "3.16.0",
15
+ "scheme": "cxf",
16
+ "extendsScheme": "",
17
+ "syntax": "cxf:beanId:address",
18
+ "async": true,
19
+ "api": false,
20
+ "consumerOnly": false,
21
+ "producerOnly": false,
22
+ "lenientProperties": false
23
+ },
24
+ "headers": {
25
+ "operationName": {
26
+ "kind": "header",
27
+ "displayName": "",
28
+ "group": "common",
29
+ "label": "",
30
+ "required": false,
31
+ "javaType": "String",
32
+ "deprecated": false,
33
+ "deprecationNote": "",
34
+ "autowired": false,
35
+ "secret": false,
36
+ "description": "The name of the operation."
37
+ },
38
+ "operationNamespace": {
39
+ "kind": "header",
40
+ "displayName": "",
41
+ "group": "common",
42
+ "label": "",
43
+ "required": false,
44
+ "javaType": "String",
45
+ "deprecated": false,
46
+ "deprecationNote": "",
47
+ "autowired": false,
48
+ "secret": false,
49
+ "description": "The operation namespace."
50
+ },
51
+ "CamelDestinationOverrideUrl": {
52
+ "kind": "header",
53
+ "displayName": "",
54
+ "group": "common",
55
+ "label": "",
56
+ "required": false,
57
+ "javaType": "String",
58
+ "deprecated": false,
59
+ "deprecationNote": "",
60
+ "autowired": false,
61
+ "secret": false,
62
+ "description": "The destination override url"
63
+ },
64
+ "ResponseContext": {
65
+ "kind": "header",
66
+ "displayName": "",
67
+ "group": "common",
68
+ "label": "",
69
+ "required": false,
70
+ "javaType": "Map<String, Object>",
71
+ "deprecated": false,
72
+ "deprecationNote": "",
73
+ "autowired": false,
74
+ "secret": false,
75
+ "description": "The response context"
76
+ },
77
+ "CamelAuthentication": {
78
+ "kind": "header",
79
+ "displayName": "",
80
+ "group": "common",
81
+ "label": "",
82
+ "required": false,
83
+ "javaType": "javax.security.auth.Subject",
84
+ "deprecated": false,
85
+ "deprecationNote": "",
86
+ "autowired": false,
87
+ "secret": false,
88
+ "description": "The authentication"
89
+ },
90
+ "RequestContext": {
91
+ "kind": "header",
92
+ "displayName": "",
93
+ "group": "common",
94
+ "label": "",
95
+ "required": false,
96
+ "javaType": "Object",
97
+ "deprecated": false,
98
+ "deprecationNote": "",
99
+ "autowired": false,
100
+ "secret": false,
101
+ "description": "The request context"
102
+ }
103
+ },
104
+ "properties": {
105
+ "beanId": {
106
+ "kind": "path",
107
+ "displayName": "Bean Id",
108
+ "group": "common",
109
+ "label": "",
110
+ "required": false,
111
+ "type": "string",
112
+ "javaType": "java.lang.String",
113
+ "deprecated": false,
114
+ "autowired": false,
115
+ "secret": false,
116
+ "description": "To lookup an existing configured CxfEndpoint. Must used bean: as prefix."
117
+ },
118
+ "address": {
119
+ "kind": "path",
120
+ "displayName": "Address",
121
+ "group": "service",
122
+ "label": "service",
123
+ "required": false,
124
+ "type": "string",
125
+ "javaType": "java.lang.String",
126
+ "deprecated": false,
127
+ "autowired": false,
128
+ "secret": false,
129
+ "description": "The service publish address."
130
+ },
131
+ "dataFormat": {
132
+ "kind": "parameter",
133
+ "displayName": "Data Format",
134
+ "group": "common",
135
+ "label": "",
136
+ "required": false,
137
+ "type": "object",
138
+ "javaType": "org.apache.camel.component.cxf.DataFormat",
139
+ "enum": [
140
+ "PAYLOAD",
141
+ "RAW",
142
+ "MESSAGE",
143
+ "CXF_MESSAGE",
144
+ "POJO"
145
+ ],
146
+ "deprecated": false,
147
+ "autowired": false,
148
+ "secret": false,
149
+ "defaultValue": "POJO",
150
+ "description": "The data type messages supported by the CXF endpoint."
151
+ },
152
+ "wrappedStyle": {
153
+ "kind": "parameter",
154
+ "displayName": "Wrapped Style",
155
+ "group": "common",
156
+ "label": "",
157
+ "required": false,
158
+ "type": "boolean",
159
+ "javaType": "java.lang.Boolean",
160
+ "deprecated": false,
161
+ "autowired": false,
162
+ "secret": false,
163
+ "description": "The WSDL style that describes how parameters are represented in the SOAP body. If the value is false, CXF will chose the document-literal unwrapped style, If the value is true, CXF will chose the document-literal wrapped style"
164
+ },
165
+ "bridgeErrorHandler": {
166
+ "kind": "parameter",
167
+ "displayName": "Bridge Error Handler",
168
+ "group": "consumer",
169
+ "label": "consumer",
170
+ "required": false,
171
+ "type": "boolean",
172
+ "javaType": "boolean",
173
+ "deprecated": false,
174
+ "autowired": false,
175
+ "secret": false,
176
+ "defaultValue": false,
177
+ "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored."
178
+ },
179
+ "exceptionHandler": {
180
+ "kind": "parameter",
181
+ "displayName": "Exception Handler",
182
+ "group": "consumer (advanced)",
183
+ "label": "consumer,advanced",
184
+ "required": false,
185
+ "type": "object",
186
+ "javaType": "org.apache.camel.spi.ExceptionHandler",
187
+ "optionalPrefix": "consumer.",
188
+ "deprecated": false,
189
+ "autowired": false,
190
+ "secret": false,
191
+ "description": "To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored."
192
+ },
193
+ "exchangePattern": {
194
+ "kind": "parameter",
195
+ "displayName": "Exchange Pattern",
196
+ "group": "consumer (advanced)",
197
+ "label": "consumer,advanced",
198
+ "required": false,
199
+ "type": "object",
200
+ "javaType": "org.apache.camel.ExchangePattern",
201
+ "enum": [
202
+ "InOnly",
203
+ "InOut",
204
+ "InOptionalOut"
205
+ ],
206
+ "deprecated": false,
207
+ "autowired": false,
208
+ "secret": false,
209
+ "description": "Sets the exchange pattern when the consumer creates an exchange."
210
+ },
211
+ "cookieHandler": {
212
+ "kind": "parameter",
213
+ "displayName": "Cookie Handler",
214
+ "group": "producer",
215
+ "label": "producer",
216
+ "required": false,
217
+ "type": "object",
218
+ "javaType": "org.apache.camel.http.base.cookie.CookieHandler",
219
+ "deprecated": false,
220
+ "autowired": false,
221
+ "secret": false,
222
+ "description": "Configure a cookie handler to maintain a HTTP session"
223
+ },
224
+ "defaultOperationName": {
225
+ "kind": "parameter",
226
+ "displayName": "Default Operation Name",
227
+ "group": "producer",
228
+ "label": "producer",
229
+ "required": false,
230
+ "type": "string",
231
+ "javaType": "java.lang.String",
232
+ "deprecated": false,
233
+ "autowired": false,
234
+ "secret": false,
235
+ "description": "This option will set the default operationName that will be used by the CxfProducer which invokes the remote service."
236
+ },
237
+ "defaultOperationNamespace": {
238
+ "kind": "parameter",
239
+ "displayName": "Default Operation Namespace",
240
+ "group": "producer",
241
+ "label": "producer",
242
+ "required": false,
243
+ "type": "string",
244
+ "javaType": "java.lang.String",
245
+ "deprecated": false,
246
+ "autowired": false,
247
+ "secret": false,
248
+ "description": "This option will set the default operationNamespace that will be used by the CxfProducer which invokes the remote service."
249
+ },
250
+ "hostnameVerifier": {
251
+ "kind": "parameter",
252
+ "displayName": "Hostname Verifier",
253
+ "group": "producer",
254
+ "label": "producer",
255
+ "required": false,
256
+ "type": "object",
257
+ "javaType": "javax.net.ssl.HostnameVerifier",
258
+ "deprecated": false,
259
+ "autowired": false,
260
+ "secret": false,
261
+ "description": "The hostname verifier to be used. Use the # notation to reference a HostnameVerifier from the registry."
262
+ },
263
+ "lazyStartProducer": {
264
+ "kind": "parameter",
265
+ "displayName": "Lazy Start Producer",
266
+ "group": "producer",
267
+ "label": "producer",
268
+ "required": false,
269
+ "type": "boolean",
270
+ "javaType": "boolean",
271
+ "deprecated": false,
272
+ "autowired": false,
273
+ "secret": false,
274
+ "defaultValue": false,
275
+ "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."
276
+ },
277
+ "sslContextParameters": {
278
+ "kind": "parameter",
279
+ "displayName": "Ssl Context Parameters",
280
+ "group": "producer",
281
+ "label": "producer",
282
+ "required": false,
283
+ "type": "object",
284
+ "javaType": "org.apache.camel.support.jsse.SSLContextParameters",
285
+ "deprecated": false,
286
+ "autowired": false,
287
+ "secret": false,
288
+ "description": "The Camel SSL setting reference. Use the # notation to reference the SSL Context."
289
+ },
290
+ "wrapped": {
291
+ "kind": "parameter",
292
+ "displayName": "Wrapped",
293
+ "group": "producer",
294
+ "label": "producer",
295
+ "required": false,
296
+ "type": "boolean",
297
+ "javaType": "boolean",
298
+ "deprecated": false,
299
+ "autowired": false,
300
+ "secret": false,
301
+ "defaultValue": false,
302
+ "description": "Which kind of operation that CXF endpoint producer will invoke"
303
+ },
304
+ "synchronous": {
305
+ "kind": "parameter",
306
+ "displayName": "Synchronous",
307
+ "group": "producer (advanced)",
308
+ "label": "producer,advanced",
309
+ "required": false,
310
+ "type": "boolean",
311
+ "javaType": "boolean",
312
+ "deprecated": false,
313
+ "autowired": false,
314
+ "secret": false,
315
+ "defaultValue": false,
316
+ "description": "Sets whether synchronous processing should be strictly used"
317
+ },
318
+ "allowStreaming": {
319
+ "kind": "parameter",
320
+ "displayName": "Allow Streaming",
321
+ "group": "advanced",
322
+ "label": "advanced",
323
+ "required": false,
324
+ "type": "boolean",
325
+ "javaType": "java.lang.Boolean",
326
+ "deprecated": false,
327
+ "autowired": false,
328
+ "secret": false,
329
+ "description": "This option controls whether the CXF component, when running in PAYLOAD mode, will DOM parse the incoming messages into DOM Elements or keep the payload as a javax.xml.transform.Source object that would allow streaming in some cases."
330
+ },
331
+ "bus": {
332
+ "kind": "parameter",
333
+ "displayName": "Bus",
334
+ "group": "advanced",
335
+ "label": "advanced",
336
+ "required": false,
337
+ "type": "object",
338
+ "javaType": "org.apache.cxf.Bus",
339
+ "deprecated": false,
340
+ "autowired": false,
341
+ "secret": false,
342
+ "description": "To use a custom configured CXF Bus."
343
+ },
344
+ "continuationTimeout": {
345
+ "kind": "parameter",
346
+ "displayName": "Continuation Timeout",
347
+ "group": "advanced",
348
+ "label": "advanced",
349
+ "required": false,
350
+ "type": "duration",
351
+ "javaType": "long",
352
+ "deprecated": false,
353
+ "autowired": false,
354
+ "secret": false,
355
+ "defaultValue": "30000",
356
+ "description": "This option is used to set the CXF continuation timeout which could be used in CxfConsumer by default when the CXF server is using Jetty or Servlet transport."
357
+ },
358
+ "cxfBinding": {
359
+ "kind": "parameter",
360
+ "displayName": "Cxf Binding",
361
+ "group": "advanced",
362
+ "label": "advanced",
363
+ "required": false,
364
+ "type": "object",
365
+ "javaType": "org.apache.camel.component.cxf.CxfBinding",
366
+ "deprecated": false,
367
+ "autowired": false,
368
+ "secret": false,
369
+ "description": "To use a custom CxfBinding to control the binding between Camel Message and CXF Message."
370
+ },
371
+ "cxfConfigurer": {
372
+ "kind": "parameter",
373
+ "displayName": "Cxf Configurer",
374
+ "group": "advanced",
375
+ "label": "advanced",
376
+ "required": false,
377
+ "type": "object",
378
+ "javaType": "org.apache.camel.component.cxf.CxfConfigurer",
379
+ "deprecated": false,
380
+ "autowired": false,
381
+ "secret": false,
382
+ "description": "This option could apply the implementation of org.apache.camel.component.cxf.CxfEndpointConfigurer which supports to configure the CXF endpoint in programmatic way. User can configure the CXF server and client by implementing configure{ServerClient} method of CxfEndpointConfigurer."
383
+ },
384
+ "defaultBus": {
385
+ "kind": "parameter",
386
+ "displayName": "Default Bus",
387
+ "group": "advanced",
388
+ "label": "advanced",
389
+ "required": false,
390
+ "type": "boolean",
391
+ "javaType": "boolean",
392
+ "deprecated": false,
393
+ "autowired": false,
394
+ "secret": false,
395
+ "defaultValue": false,
396
+ "description": "Will set the default bus when CXF endpoint create a bus by itself"
397
+ },
398
+ "headerFilterStrategy": {
399
+ "kind": "parameter",
400
+ "displayName": "Header Filter Strategy",
401
+ "group": "advanced",
402
+ "label": "advanced",
403
+ "required": false,
404
+ "type": "object",
405
+ "javaType": "org.apache.camel.spi.HeaderFilterStrategy",
406
+ "deprecated": false,
407
+ "autowired": false,
408
+ "secret": false,
409
+ "description": "To use a custom HeaderFilterStrategy to filter header to and from Camel message."
410
+ },
411
+ "mergeProtocolHeaders": {
412
+ "kind": "parameter",
413
+ "displayName": "Merge Protocol Headers",
414
+ "group": "advanced",
415
+ "label": "advanced",
416
+ "required": false,
417
+ "type": "boolean",
418
+ "javaType": "boolean",
419
+ "deprecated": false,
420
+ "autowired": false,
421
+ "secret": false,
422
+ "defaultValue": false,
423
+ "description": "Whether to merge protocol headers. If enabled then propagating headers between Camel and CXF becomes more consistent and similar. For more details see CAMEL-6393."
424
+ },
425
+ "mtomEnabled": {
426
+ "kind": "parameter",
427
+ "displayName": "Mtom Enabled",
428
+ "group": "advanced",
429
+ "label": "advanced",
430
+ "required": false,
431
+ "type": "boolean",
432
+ "javaType": "boolean",
433
+ "deprecated": false,
434
+ "autowired": false,
435
+ "secret": false,
436
+ "defaultValue": false,
437
+ "description": "To enable MTOM (attachments). This requires to use POJO or PAYLOAD data format mode."
438
+ },
439
+ "properties": {
440
+ "kind": "parameter",
441
+ "displayName": "Properties",
442
+ "group": "advanced",
443
+ "label": "advanced",
444
+ "required": false,
445
+ "type": "object",
446
+ "javaType": "java.util.Map<java.lang.String, java.lang.Object>",
447
+ "prefix": "properties.",
448
+ "multiValue": true,
449
+ "deprecated": false,
450
+ "autowired": false,
451
+ "secret": false,
452
+ "description": "To set additional CXF options using the key/value pairs from the Map. For example to turn on stacktraces in SOAP faults, properties.faultStackTraceEnabled=true"
453
+ },
454
+ "skipPayloadMessagePartCheck": {
455
+ "kind": "parameter",
456
+ "displayName": "Skip Payload Message Part Check",
457
+ "group": "advanced",
458
+ "label": "advanced",
459
+ "required": false,
460
+ "type": "boolean",
461
+ "javaType": "boolean",
462
+ "deprecated": false,
463
+ "autowired": false,
464
+ "secret": false,
465
+ "defaultValue": false,
466
+ "description": "Sets whether SOAP message validation should be disabled."
467
+ },
468
+ "loggingFeatureEnabled": {
469
+ "kind": "parameter",
470
+ "displayName": "Logging Feature Enabled",
471
+ "group": "logging",
472
+ "label": "logging",
473
+ "required": false,
474
+ "type": "boolean",
475
+ "javaType": "boolean",
476
+ "deprecated": false,
477
+ "autowired": false,
478
+ "secret": false,
479
+ "defaultValue": false,
480
+ "description": "This option enables CXF Logging Feature which writes inbound and outbound SOAP messages to log."
481
+ },
482
+ "loggingSizeLimit": {
483
+ "kind": "parameter",
484
+ "displayName": "Logging Size Limit",
485
+ "group": "logging",
486
+ "label": "logging",
487
+ "required": false,
488
+ "type": "integer",
489
+ "javaType": "int",
490
+ "deprecated": false,
491
+ "autowired": false,
492
+ "secret": false,
493
+ "defaultValue": 49152,
494
+ "description": "To limit the total size of number of bytes the logger will output when logging feature has been enabled and -1 for no limit."
495
+ },
496
+ "skipFaultLogging": {
497
+ "kind": "parameter",
498
+ "displayName": "Skip Fault Logging",
499
+ "group": "logging",
500
+ "label": "logging",
501
+ "required": false,
502
+ "type": "boolean",
503
+ "javaType": "boolean",
504
+ "deprecated": false,
505
+ "autowired": false,
506
+ "secret": false,
507
+ "defaultValue": false,
508
+ "description": "This option controls whether the PhaseInterceptorChain skips logging the Fault that it catches."
509
+ },
510
+ "password": {
511
+ "kind": "parameter",
512
+ "displayName": "Password",
513
+ "group": "security",
514
+ "label": "security",
515
+ "required": false,
516
+ "type": "string",
517
+ "javaType": "java.lang.String",
518
+ "deprecated": false,
519
+ "autowired": false,
520
+ "secret": true,
521
+ "description": "This option is used to set the basic authentication information of password for the CXF client."
522
+ },
523
+ "username": {
524
+ "kind": "parameter",
525
+ "displayName": "Username",
526
+ "group": "security",
527
+ "label": "security",
528
+ "required": false,
529
+ "type": "string",
530
+ "javaType": "java.lang.String",
531
+ "deprecated": false,
532
+ "autowired": false,
533
+ "secret": true,
534
+ "description": "This option is used to set the basic authentication information of username for the CXF client."
535
+ },
536
+ "bindingId": {
537
+ "kind": "parameter",
538
+ "displayName": "Binding Id",
539
+ "group": "service",
540
+ "label": "service",
541
+ "required": false,
542
+ "type": "string",
543
+ "javaType": "java.lang.String",
544
+ "deprecated": false,
545
+ "autowired": false,
546
+ "secret": false,
547
+ "description": "The bindingId for the service model to use."
548
+ },
549
+ "portName": {
550
+ "kind": "parameter",
551
+ "displayName": "Port Name",
552
+ "group": "service",
553
+ "label": "service",
554
+ "required": false,
555
+ "type": "string",
556
+ "javaType": "java.lang.String",
557
+ "deprecated": false,
558
+ "autowired": false,
559
+ "secret": false,
560
+ "description": "The endpoint name this service is implementing, it maps to the wsdl:portname. In the format of ns:PORT_NAME where ns is a namespace prefix valid at this scope."
561
+ },
562
+ "publishedEndpointUrl": {
563
+ "kind": "parameter",
564
+ "displayName": "Published Endpoint Url",
565
+ "group": "service",
566
+ "label": "service",
567
+ "required": false,
568
+ "type": "string",
569
+ "javaType": "java.lang.String",
570
+ "deprecated": false,
571
+ "autowired": false,
572
+ "secret": false,
573
+ "description": "This option can override the endpointUrl that published from the WSDL which can be accessed with service address url plus wsd"
574
+ },
575
+ "serviceClass": {
576
+ "kind": "parameter",
577
+ "displayName": "Service Class",
578
+ "group": "service",
579
+ "label": "service",
580
+ "required": false,
581
+ "type": "string",
582
+ "javaType": "java.lang.Class<java.lang.Object>",
583
+ "deprecated": false,
584
+ "autowired": false,
585
+ "secret": false,
586
+ "description": "The class name of the SEI (Service Endpoint Interface) class which could have JSR181 annotation or not."
587
+ },
588
+ "serviceName": {
589
+ "kind": "parameter",
590
+ "displayName": "Service Name",
591
+ "group": "service",
592
+ "label": "service",
593
+ "required": false,
594
+ "type": "string",
595
+ "javaType": "java.lang.String",
596
+ "deprecated": false,
597
+ "autowired": false,
598
+ "secret": false,
599
+ "description": "The service name this service is implementing, it maps to the wsdl:servicename."
600
+ },
601
+ "wsdlURL": {
602
+ "kind": "parameter",
603
+ "displayName": "Wsdl URL",
604
+ "group": "service",
605
+ "label": "service",
606
+ "required": false,
607
+ "type": "string",
608
+ "javaType": "java.lang.String",
609
+ "deprecated": false,
610
+ "autowired": false,
611
+ "secret": false,
612
+ "description": "The location of the WSDL. Can be on the classpath, file system, or be hosted remotely."
613
+ }
614
+ }
615
+ }
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License"); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import {expect} from 'chai';
18
+ import 'mocha';
19
+ import {
20
+ FromDefinition
21
+ } from "../src/core/model/CamelDefinition";
22
+ import {CamelDefinitionApiExt} from "../src/core/api/CamelDefinitionApiExt";
23
+ import {CamelDefinitionYaml} from "../src/core/api/CamelDefinitionYaml";
24
+ import * as fs from 'fs';
25
+ import {ComponentApi} from "../src/core/api/ComponentApi";
26
+
27
+ describe('CXF Component', () => {
28
+
29
+ it('Parse URI', () => {
30
+ const json = fs.readFileSync('test/cxf.json', {encoding: 'utf8', flag: 'r'});
31
+ ComponentApi.saveComponent(json);
32
+
33
+ const yaml = fs.readFileSync('test/cxf.yaml', {encoding: 'utf8', flag: 'r'});
34
+ const i1 = CamelDefinitionYaml.yamlToIntegration("test1.yaml", yaml);
35
+
36
+ const from: FromDefinition = i1.spec.flows?.[0].from;
37
+ const to = from.steps[0]
38
+ expect(CamelDefinitionApiExt.getParametersValue(from, 'beanId', true)).to.equal(undefined);
39
+ expect(CamelDefinitionApiExt.getParametersValue(from, 'address', true)).to.equal("//{{output.url}}");
40
+ expect(CamelDefinitionApiExt.getParametersValue(to, 'beanId', true)).to.equal("bean:beanName");
41
+ expect(CamelDefinitionApiExt.getParametersValue(to, 'address', true)).to.equal(undefined);
42
+ });
43
+
44
+ });
package/test/cxf.yaml ADDED
@@ -0,0 +1,15 @@
1
+ - route:
2
+ id: exampleRoute
3
+ from:
4
+ uri: cxf://{{output.url}}
5
+ parameters:
6
+ wsdlURL: '{{input.wsdl}}'
7
+ dataFormat: PAYLOAD
8
+ address: '//{{output.url}}'
9
+ steps:
10
+ - to:
11
+ uri: cxf:bean:beanName
12
+ parameters:
13
+ beanId: bean:beanName
14
+ wsdlURL: '{{output.wsdl}}'
15
+ dataFormat: PAYLOAD