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 b46ce3092f8 CAMEL-21571: camel-mina - Upgrade to 2.2.4 and add option to configure codec allow pattern for object serialization. b46ce3092f8 is described below commit b46ce3092f80f3bf27553a5d75b429e2bc4f1138 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Fri Dec 27 10:10:07 2024 +0100 CAMEL-21571: camel-mina - Upgrade to 2.2.4 and add option to configure codec allow pattern for object serialization. --- .../org/apache/camel/kotlin/components/MinaUriDsl.kt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/MinaUriDsl.kt b/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/MinaUriDsl.kt index 07057fa1acc..9b3fd6fc3e4 100644 --- a/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/MinaUriDsl.kt +++ b/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/MinaUriDsl.kt @@ -330,7 +330,8 @@ public class MinaUriDsl( * Only used for TCP. You can transfer the exchange over the wire instead of just the body. The * following fields are transferred: In body, Out body, fault body, In headers, Out headers, fault * headers, exchange properties, exchange exception. This requires that the objects are serializable. - * Camel will exclude any non-serializable objects and log it at WARN level. + * Camel will exclude any non-serializable objects and log it at WARN level. Also make sure to + * configure objectCodecPattern to (star) to allow transferring java objects. */ public fun transferExchange(transferExchange: String) { it.property("transferExchange", transferExchange) @@ -340,7 +341,8 @@ public class MinaUriDsl( * Only used for TCP. You can transfer the exchange over the wire instead of just the body. The * following fields are transferred: In body, Out body, fault body, In headers, Out headers, fault * headers, exchange properties, exchange exception. This requires that the objects are serializable. - * Camel will exclude any non-serializable objects and log it at WARN level. + * Camel will exclude any non-serializable objects and log it at WARN level. Also make sure to + * configure objectCodecPattern to (star) to allow transferring java objects. */ public fun transferExchange(transferExchange: Boolean) { it.property("transferExchange", transferExchange.toString()) @@ -420,6 +422,14 @@ public class MinaUriDsl( it.property("filters", filters) } + /** + * Accept the wildcard specified classes for Object deserialization, unless they are otherwise + * rejected. Multiple patterns can be separated by comma. + */ + public fun objectCodecPattern(objectCodecPattern: String) { + it.property("objectCodecPattern", objectCodecPattern) + } + /** * Only used for TCP. If no codec is specified, you can use this flag to indicate a text line * based codec; if not specified or the value is false, then Object Serialization is assumed over