You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2017/10/20 07:52:49 UTC
[camel] branch camel-2.19.x updated: CAMEL-11923 - Camel-Hessian
add metadata to whitelistEnabled option
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch camel-2.19.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.19.x by this push:
new 58eabef CAMEL-11923 - Camel-Hessian add metadata to whitelistEnabled option
58eabef is described below
commit 58eabefd2191b36a143798cb00dad67f694ad3ac
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Oct 20 09:50:06 2017 +0200
CAMEL-11923 - Camel-Hessian add metadata to whitelistEnabled option
---
.../java/org/apache/camel/model/dataformat/HessianDataFormat.java | 1 +
components/camel-hessian/src/main/docs/hessian-dataformat.adoc | 4 ++--
.../dataformat/hessian/springboot/HessianDataFormatConfiguration.java | 2 +-
3 files changed, 4 insertions(+), 3 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 8c28a68..8c5fdb9e 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 1563e02..a08153b 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.
@@ -51,4 +51,4 @@ The Hessian dataformat supports 4 options which are listed below.
<marshal ref="hessian"/>
</route>
</camelContext>
---------------------------------------------------------------------------------
\ No newline at end of file
+--------------------------------------------------------------------------------
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 ea6e84e..1cbda17 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
@@ -31,7 +31,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" <co...@camel.apache.org>'].