This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 2de79b4d0020f8a69affb35cf0458f7db983574b Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Fri Oct 20 09:50:06 2017 +0200 CAMEL-11923 - Camel-Hessian add metadata to whitelistEnabled option --- .../main/java/org/apache/camel/model/dataformat/HessianDataFormat.java | 1 + components/camel-hessian/src/main/docs/hessian-dataformat.adoc | 2 +- .../dataformat/hessian/springboot/HessianDataFormatConfiguration.java | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/camel-core/src/main/java/org/apache/camel/model/dataformat/HessianDataFormat.java b/camel-core/src/main/java/org/apache/camel/model/dataformat/HessianDataFormat.java index 06734c8..4c6a6e4 100644 --- a/camel-core/src/main/java/org/apache/camel/model/dataformat/HessianDataFormat.java +++ b/camel-core/src/main/java/org/apache/camel/model/dataformat/HessianDataFormat.java @@ -33,6 +33,7 @@ import org.apache.camel.spi.Metadata; @Deprecated public class HessianDataFormat extends DataFormatDefinition { @XmlAttribute + @Metadata(defaultValue = "true") private Boolean whitelistEnabled = true; @XmlAttribute diff --git a/components/camel-hessian/src/main/docs/hessian-dataformat.adoc b/components/camel-hessian/src/main/docs/hessian-dataformat.adoc index 2db0087..6c3629c 100644 --- a/components/camel-hessian/src/main/docs/hessian-dataformat.adoc +++ b/components/camel-hessian/src/main/docs/hessian-dataformat.adoc @@ -26,7 +26,7 @@ The Hessian dataformat supports 4 options which are listed below. [width="100%",cols="2s,1m,1m,6",options="header"] |=== | Name | Default | Java Type | Description -| whitelistEnabled | false | Boolean | Define if Whitelist feature is enabled or not +| whitelistEnabled | true | Boolean | Define if Whitelist feature is enabled or not | allowedUnmarshallObjects | | String | Define the allowed objects to be unmarshalled | deniedUnmarshallObjects | | String | Define the denied objects to be unmarshalled | contentTypeHeader | false | Boolean | Whether the data format should set the Content-Type header with the type from the data format if the data format is capable of doing so. For example application/xml for data formats marshalling to XML or application/json for data formats marshalling to JSon etc. diff --git a/platforms/spring-boot/components-starter/camel-hessian-starter/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatConfiguration.java b/platforms/spring-boot/components-starter/camel-hessian-starter/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatConfiguration.java index 552521d..8a8e1fc 100644 --- a/platforms/spring-boot/components-starter/camel-hessian-starter/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatConfiguration.java +++ b/platforms/spring-boot/components-starter/camel-hessian-starter/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatConfiguration.java @@ -35,7 +35,7 @@ public class HessianDataFormatConfiguration /** * Define if Whitelist feature is enabled or not */ - private Boolean whitelistEnabled = false; + private Boolean whitelistEnabled = true; /** * Define the allowed objects to be unmarshalled */ -- To stop receiving notification emails like this one, please contact "commits@camel.apache.org" <commits@camel.apache.org>.