This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-4.8.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-4.8.x by this push:
     new 714dba75ce0 CAMEL-21300: camel-platform-http - Consumer should have 
option to control if writing response failing should cause Exchange to fail
714dba75ce0 is described below

commit 714dba75ce04f01f8901d56c8315d79f0a96f713
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Wed Oct 2 12:45:00 2024 +0200

    CAMEL-21300: camel-platform-http - Consumer should have option to control 
if writing response failing should cause Exchange to fail
---
 .../camel/kotlin/components/PlatformHttpUriDsl.kt    | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git 
a/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/PlatformHttpUriDsl.kt
 
b/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/PlatformHttpUriDsl.kt
index 21c0ab1180d..67fc288caec 100644
--- 
a/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/PlatformHttpUriDsl.kt
+++ 
b/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/PlatformHttpUriDsl.kt
@@ -122,6 +122,26 @@ public class PlatformHttpUriDsl(
     it.property("cookieSecure", cookieSecure.toString())
   }
 
+  /**
+   * When Camel is complete processing the message, and the HTTP server is 
writing response. This
+   * option controls whether Camel should catch any failure during writing 
response and store this on
+   * the Exchange, which allows onCompletion/UnitOfWork to regard the Exchange 
as failed and have
+   * access to the caused exception from the HTTP server.
+   */
+  public fun handleWriteResponseError(handleWriteResponseError: String) {
+    it.property("handleWriteResponseError", handleWriteResponseError)
+  }
+
+  /**
+   * When Camel is complete processing the message, and the HTTP server is 
writing response. This
+   * option controls whether Camel should catch any failure during writing 
response and store this on
+   * the Exchange, which allows onCompletion/UnitOfWork to regard the Exchange 
as failed and have
+   * access to the caused exception from the HTTP server.
+   */
+  public fun handleWriteResponseError(handleWriteResponseError: Boolean) {
+    it.property("handleWriteResponseError", 
handleWriteResponseError.toString())
+  }
+
   /**
    * A comma separated list of HTTP methods to serve, e.g. GET,POST . If no 
methods are specified,
    * all methods will be served.

Reply via email to