Commit 6293988
authored
Use Map for header in Expression Languages (#2386)
* refactor: replace return-Exchange style of HttpClient.call with updated void-return approach and simplify response handling across multiple classes and tests
* refactor: introduce `HeaderMap` to unify header handling, adjust related tests and update SpEL/Groovy behavior
* refactor: introduce `HeaderMap` to unify header handling, adjust related tests and update SpEL/Groovy behavior
* refactor: replace deprecated header handling methods with updated APIs in examples, templates, and tests
* refactor: add @NotNull annotations and remove unnecessary `throws` declarations in HeaderMap and related tests
* refactor: fix header handling inconsistencies, update examples and tests, and simplify stream operations
* refactor: remove `SpELHeader` and `SpELHeaderToStringTypeConverter`, update header handling to use `HeaderMap`, and adjust related examples and tests
* refactor: simplify header initialization in tests, enhance type safety in SpELMap, and optimize import usage across classes
* refactor: enhance header handling consistency, improve case-insensitivity in tests, and update `splitByComma` for empty input handling
* refactor: simplify `getMethodSetter` usage in `MethodSetterTest` and clean up Javadoc in `StringUtil`
* refactor: streamline header case-insensitivity handling, simplify `getUniqueHeaderNames`, and improve related tests
* refactor: remove camelCase-to-kebab-case conversion logic, update header handling and related tests, and simplify file replacement operations in examples
* refactor: remove camelCase-to-kebab-case conversion logic, update header handling and related tests, and simplify file replacement operations in examples
* refactor: simplify header access logic in `SpELExchangeEvaluationContextTest`, remove unused import in `SpELCookie`1 parent 7340929 commit 6293988
50 files changed
Lines changed: 725 additions & 303 deletions
File tree
- annot/src/test/java/com/predic8/membrane/annot
- util
- yaml
- core/src
- main/java/com/predic8/membrane/core
- http
- lang
- spel
- spelable
- typeconverters
- util
- json
- test/java/com/predic8/membrane/core
- http
- interceptor
- flow
- javascript
- lang
- lang
- groovy
- spel
- spelable
- util
- json
- distribution
- examples
- extending-membrane/error-handling/custom-error-messages
- logging/access
- monitoring-tracing/opentelemetry
- routing-traffic/outgoing-api-gateway
- scripting
- groovy
- javascript
- router/conf
- src
- main/java/com/predic8/membrane/core
- test/java/com/predic8/membrane/examples
- util
- withinternet
- config
- test
- withoutinternet
- opentelemetry
- test
- docs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
1 | 15 | | |
2 | 16 | | |
3 | 17 | | |
4 | 18 | | |
5 | | - | |
6 | | - | |
| 19 | + | |
7 | 20 | | |
8 | 21 | | |
9 | 22 | | |
10 | 23 | | |
11 | 24 | | |
12 | | - | |
| 25 | + | |
13 | 26 | | |
14 | 27 | | |
15 | 28 | | |
| |||
Lines changed: 26 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
1 | 15 | | |
2 | 16 | | |
3 | 17 | | |
4 | 18 | | |
5 | 19 | | |
6 | 20 | | |
| 21 | + | |
7 | 22 | | |
8 | 23 | | |
9 | 24 | | |
10 | 25 | | |
11 | | - | |
| 26 | + | |
| 27 | + | |
12 | 28 | | |
13 | 29 | | |
14 | 30 | | |
15 | 31 | | |
16 | 32 | | |
17 | 33 | | |
18 | | - | |
| 34 | + | |
| 35 | + | |
19 | 36 | | |
20 | 37 | | |
21 | 38 | | |
| |||
28 | 45 | | |
29 | 46 | | |
30 | 47 | | |
31 | | - | |
| 48 | + | |
32 | 49 | | |
33 | 50 | | |
34 | 51 | | |
35 | 52 | | |
36 | 53 | | |
37 | 54 | | |
38 | 55 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
44 | 59 | | |
45 | 60 | | |
46 | 61 | | |
47 | 62 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
53 | 66 | | |
54 | 67 | | |
55 | 68 | | |
Lines changed: 58 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | | - | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
36 | 37 | | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
116 | | - | |
| 118 | + | |
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
| |||
189 | 191 | | |
190 | 192 | | |
191 | 193 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 194 | + | |
196 | 195 | | |
197 | 196 | | |
198 | 197 | | |
| |||
207 | 206 | | |
208 | 207 | | |
209 | 208 | | |
210 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
211 | 220 | | |
212 | 221 | | |
213 | 222 | | |
| |||
217 | 226 | | |
218 | 227 | | |
219 | 228 | | |
220 | | - | |
221 | | - | |
| 229 | + | |
222 | 230 | | |
223 | 231 | | |
224 | 232 | | |
| |||
233 | 241 | | |
234 | 242 | | |
235 | 243 | | |
236 | | - | |
237 | | - | |
| 244 | + | |
238 | 245 | | |
239 | 246 | | |
240 | 247 | | |
| |||
248 | 255 | | |
249 | 256 | | |
250 | 257 | | |
251 | | - | |
| 258 | + | |
252 | 259 | | |
253 | 260 | | |
254 | 261 | | |
| |||
386 | 393 | | |
387 | 394 | | |
388 | 395 | | |
389 | | - | |
| 396 | + | |
390 | 397 | | |
391 | 398 | | |
392 | 399 | | |
| |||
466 | 473 | | |
467 | 474 | | |
468 | 475 | | |
469 | | - | |
470 | | - | |
471 | | - | |
| 476 | + | |
472 | 477 | | |
473 | 478 | | |
474 | 479 | | |
| |||
514 | 519 | | |
515 | 520 | | |
516 | 521 | | |
517 | | - | |
518 | | - | |
| 522 | + | |
519 | 523 | | |
520 | | - | |
| 524 | + | |
521 | 525 | | |
522 | 526 | | |
523 | 527 | | |
| |||
601 | 605 | | |
602 | 606 | | |
603 | 607 | | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
604 | 638 | | |
0 commit comments