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-spring-boot.git
The following commit(s) were added to refs/heads/main by this push: new 9ab2fb924fa CAMEL-19601: StreamCaching can configure allow/deny list of classes to control what can be cached or not. 9ab2fb924fa is described below commit 9ab2fb924fa9fd4f2d14b2045ee459c5d8664b23 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Thu Jul 13 13:54:45 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 | 2 ++ .../camel/spring/boot/CamelConfigurationProperties.java | 12 ++++++++++++ 2 files changed, 14 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 cdc579c9c2c..0c421d333fd 100644 --- a/core/camel-spring-boot/src/main/docs/spring-boot.json +++ b/core/camel-spring-boot/src/main/docs/spring-boot.json @@ -1070,6 +1070,7 @@ { "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" }, { @@ -1089,6 +1090,7 @@ { "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" }, { 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 7519d37526a..3bf4fda6a70 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