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 2023/07/13 12:26:48 UTC

[camel-spring-boot] branch camel-spring-boot-3.x updated: CAMEL-19601: StreamCaching can configure allow/deny list of classes to control what can be cached or not.

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

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


The following commit(s) were added to refs/heads/camel-spring-boot-3.x by this push:
     new 01bd2624890 CAMEL-19601: StreamCaching can configure allow/deny list of classes to control what can be cached or not.
01bd2624890 is described below

commit 01bd262489080c5e7b9652cdd123a526ecf32f30
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Jul 13 14:26:39 2023 +0200

    CAMEL-19601: StreamCaching can configure allow/deny list of classes to control what can be cached or not.
---
 core/camel-spring-boot/src/main/docs/spring-boot.json        | 12 ++++++++++++
 .../camel/spring/boot/CamelConfigurationProperties.java      | 12 ++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/core/camel-spring-boot/src/main/docs/spring-boot.json b/core/camel-spring-boot/src/main/docs/spring-boot.json
index dd63989d835..2e07e694ef8 100644
--- a/core/camel-spring-boot/src/main/docs/spring-boot.json
+++ b/core/camel-spring-boot/src/main/docs/spring-boot.json
@@ -1068,6 +1068,12 @@
       "description": "Controls the level of information logged during startup (and shutdown) of CamelContext.",
       "sourceType": "org.apache.camel.spring.boot.CamelConfigurationProperties"
     },
+    {
+      "name": "camel.springboot.stream-caching-allow-classes",
+      "type": "java.lang.String",
+      "description": "To filter stream caching of a given set of allowed\/denied classes. By default, all classes that are {@link java.io.InputStream} is allowed. Multiple class names can be separated by comma.",
+      "sourceType": "org.apache.camel.spring.boot.CamelConfigurationProperties"
+    },
     {
       "name": "camel.springboot.stream-caching-any-spool-rules",
       "type": "java.lang.Boolean",
@@ -1082,6 +1088,12 @@
       "sourceType": "org.apache.camel.spring.boot.CamelConfigurationProperties",
       "defaultValue": 0
     },
+    {
+      "name": "camel.springboot.stream-caching-deny-classes",
+      "type": "java.lang.String",
+      "description": "To filter stream caching of a given set of allowed\/denied classes. By default, all classes that are {@link java.io.InputStream} is allowed. Multiple class names can be separated by comma.",
+      "sourceType": "org.apache.camel.spring.boot.CamelConfigurationProperties"
+    },
     {
       "name": "camel.springboot.stream-caching-enabled",
       "type": "java.lang.Boolean",
diff --git a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
index e146aea331f..59b48406156 100644
--- a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
+++ b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
@@ -297,6 +297,18 @@ public class CamelConfigurationProperties extends DefaultConfigurationProperties
      */
     private boolean streamCachingEnabled = true;
 
+    /**
+     * To filter stream caching of a given set of allowed/denied classes. By default, all classes that are
+     * {@link java.io.InputStream} is allowed. Multiple class names can be separated by comma.
+     */
+    private String streamCachingAllowClasses;
+
+    /**
+     * To filter stream caching of a given set of allowed/denied classes. By default, all classes that are
+     * {@link java.io.InputStream} is allowed. Multiple class names can be separated by comma.
+     */
+    private String streamCachingDenyClasses;
+
     /**
      * To enable stream caching spooling to disk. This means, for large stream messages (over 128 KB by default) will be cached in a
      * temporary file instead, and Camel will handle deleting the temporary file once the cached stream is no longer