You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2024/04/19 11:53:39 UTC
(camel) branch main updated: CAMEL-20695: camel-kotlin-api - Add setHeaders/setVariables EIP
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 1982baef033 CAMEL-20695: camel-kotlin-api - Add setHeaders/setVariables EIP
1982baef033 is described below
commit 1982baef0334dc22035bbed8a86eb3bcf19f887f
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Apr 19 13:53:24 2024 +0200
CAMEL-20695: camel-kotlin-api - Add setHeaders/setVariables EIP
---
.../src/main/kotlin/org/apache/camel/kotlin/StepsDsl.kt | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/dsl/camel-kotlin-api/src/main/kotlin/org/apache/camel/kotlin/StepsDsl.kt b/dsl/camel-kotlin-api/src/main/kotlin/org/apache/camel/kotlin/StepsDsl.kt
index ec943cc9bdd..501c28a2cc2 100644
--- a/dsl/camel-kotlin-api/src/main/kotlin/org/apache/camel/kotlin/StepsDsl.kt
+++ b/dsl/camel-kotlin-api/src/main/kotlin/org/apache/camel/kotlin/StepsDsl.kt
@@ -305,6 +305,10 @@ class StepsDsl(
def.setHeader(setHeader, expression)
}
+ fun setHeaders(setHeader: String, vararg variableNamesAndValues: Any) {
+ def.setHeaders(setHeader, variableNamesAndValues)
+ }
+
fun setHeader(setHeader: String, function: () -> Any) {
def.setHeader(setHeader, function)
}
@@ -325,6 +329,10 @@ class StepsDsl(
def.setVariable(setVariable, expression)
}
+ fun setVariables(setHeader: String, vararg variableNamesAndValues: Any) {
+ def.setVariables(setHeader, variableNamesAndValues)
+ }
+
fun setVariable(setVariable: String, function: () -> Any) {
def.setVariable(setVariable, function)
}