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 b9166b7f8a4b0d928b1f36e65137758e9f9252a0
Author: Andrea Cosentino <ancosen@gmail.com>
AuthorDate: Tue Nov 7 13:37:30 2017 +0100
CAMEL-11982 - Regen
---
.../src/main/docs/json-fastjson-dataformat.adoc | 3 ++-
.../camel-gson/src/main/docs/json-gson-dataformat.adoc | 3 ++-
.../src/main/docs/json-johnzon-dataformat.adoc | 3 ++-
.../src/main/docs/json-xstream-dataformat.adoc | 3 ++-
.../springboot/FastjsonDataFormatConfiguration.java | 14 ++++++++++++++
.../gson/springboot/GsonDataFormatConfiguration.java | 14 ++++++++++++++
.../johnzon/springboot/JohnzonDataFormatConfiguration.java | 14 ++++++++++++++
.../xstream/springboot/JsonDataFormatConfiguration.java | 14 ++++++++++++++
8 files changed, 64 insertions(+), 4 deletions(-)
diff --git a/components/camel-fastjson/src/main/docs/json-fastjson-dataformat.adoc b/components/camel-fastjson/src/main/docs/json-fastjson-dataformat.adoc
index fa2938e..2265c83 100644
--- a/components/camel-fastjson/src/main/docs/json-fastjson-dataformat.adoc
+++ b/components/camel-fastjson/src/main/docs/json-fastjson-dataformat.adoc
@@ -16,7 +16,7 @@ from("activemq:My.Queue").
// dataformat options: START
-The JSon Fastjson dataformat supports 17 options which are listed below.
+The JSon Fastjson dataformat supports 18 options which are listed below.
@@ -39,6 +39,7 @@ The JSon Fastjson dataformat supports 17 options which are listed below.
| disableFeatures | | String | Set of features to disable on the Jackson com.fasterxml.jackson.databind.ObjectMapper.
The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature
com.fasterxml.jackson.databind.DeserializationFeature or com.fasterxml.jackson.databind.MapperFeature
Multiple features can be separated by comma
| permissions | | String | Adds permissions that controls which Java packages and classes
XStream is allowed to use during unmarshal from xml/json to Java beans. A permission must
be configured either here or globally using a JVM system property. The permission can be specified
in a syntax where a plus sign is allow and minus sign is deny. Wildcards is supported by using
. as prefix. For example to allow com.foo and all subpackages then specfy com.foo.. Multiple
permissions can be confi [...]
| allowUnmarshallType | false | Boolean | If enabled then Jackson is allowed to attempt to
use the CamelJacksonUnmarshalType header during the unmarshalling. This should only be enabled
when desired to be used.
+| timezone | | String | If set then Jackson will use the Timezone when marshalling/unmarshalling.
This option will have no effect on the others Json DataFormat like gson fastjson and xstream.
| 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.
|===
// dataformat options: END
diff --git a/components/camel-gson/src/main/docs/json-gson-dataformat.adoc b/components/camel-gson/src/main/docs/json-gson-dataformat.adoc
index 7a302c7..3495261 100644
--- a/components/camel-gson/src/main/docs/json-gson-dataformat.adoc
+++ b/components/camel-gson/src/main/docs/json-gson-dataformat.adoc
@@ -16,7 +16,7 @@ from("activemq:My.Queue").
// dataformat options: START
-The JSon GSon dataformat supports 17 options which are listed below.
+The JSon GSon dataformat supports 18 options which are listed below.
@@ -39,6 +39,7 @@ The JSon GSon dataformat supports 17 options which are listed below.
| disableFeatures | | String | Set of features to disable on the Jackson com.fasterxml.jackson.databind.ObjectMapper.
The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature
com.fasterxml.jackson.databind.DeserializationFeature or com.fasterxml.jackson.databind.MapperFeature
Multiple features can be separated by comma
| permissions | | String | Adds permissions that controls which Java packages and classes
XStream is allowed to use during unmarshal from xml/json to Java beans. A permission must
be configured either here or globally using a JVM system property. The permission can be specified
in a syntax where a plus sign is allow and minus sign is deny. Wildcards is supported by using
. as prefix. For example to allow com.foo and all subpackages then specfy com.foo.. Multiple
permissions can be confi [...]
| allowUnmarshallType | false | Boolean | If enabled then Jackson is allowed to attempt to
use the CamelJacksonUnmarshalType header during the unmarshalling. This should only be enabled
when desired to be used.
+| timezone | | String | If set then Jackson will use the Timezone when marshalling/unmarshalling.
This option will have no effect on the others Json DataFormat like gson fastjson and xstream.
| 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.
|===
// dataformat options: END
diff --git a/components/camel-johnzon/src/main/docs/json-johnzon-dataformat.adoc b/components/camel-johnzon/src/main/docs/json-johnzon-dataformat.adoc
index 13e6b80..824f7da 100644
--- a/components/camel-johnzon/src/main/docs/json-johnzon-dataformat.adoc
+++ b/components/camel-johnzon/src/main/docs/json-johnzon-dataformat.adoc
@@ -17,7 +17,7 @@ from("activemq:My.Queue").
// dataformat options: START
-The JSon Johnzon dataformat supports 17 options which are listed below.
+The JSon Johnzon dataformat supports 18 options which are listed below.
@@ -40,6 +40,7 @@ The JSon Johnzon dataformat supports 17 options which are listed below.
| disableFeatures | | String | Set of features to disable on the Jackson com.fasterxml.jackson.databind.ObjectMapper.
The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature
com.fasterxml.jackson.databind.DeserializationFeature or com.fasterxml.jackson.databind.MapperFeature
Multiple features can be separated by comma
| permissions | | String | Adds permissions that controls which Java packages and classes
XStream is allowed to use during unmarshal from xml/json to Java beans. A permission must
be configured either here or globally using a JVM system property. The permission can be specified
in a syntax where a plus sign is allow and minus sign is deny. Wildcards is supported by using
. as prefix. For example to allow com.foo and all subpackages then specfy com.foo.. Multiple
permissions can be confi [...]
| allowUnmarshallType | false | Boolean | If enabled then Jackson is allowed to attempt to
use the CamelJacksonUnmarshalType header during the unmarshalling. This should only be enabled
when desired to be used.
+| timezone | | String | If set then Jackson will use the Timezone when marshalling/unmarshalling.
This option will have no effect on the others Json DataFormat like gson fastjson and xstream.
| 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.
|===
// dataformat options: END
diff --git a/components/camel-xstream/src/main/docs/json-xstream-dataformat.adoc b/components/camel-xstream/src/main/docs/json-xstream-dataformat.adoc
index 89102c1..eb0af75 100644
--- a/components/camel-xstream/src/main/docs/json-xstream-dataformat.adoc
+++ b/components/camel-xstream/src/main/docs/json-xstream-dataformat.adoc
@@ -25,7 +25,7 @@ Maven users will need to add the following dependency to their
### Options
// dataformat options: START
-The JSon XStream dataformat supports 17 options which are listed below.
+The JSon XStream dataformat supports 18 options which are listed below.
@@ -48,6 +48,7 @@ The JSon XStream dataformat supports 17 options which are listed below.
| disableFeatures | | String | Set of features to disable on the Jackson com.fasterxml.jackson.databind.ObjectMapper.
The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature
com.fasterxml.jackson.databind.DeserializationFeature or com.fasterxml.jackson.databind.MapperFeature
Multiple features can be separated by comma
| permissions | | String | Adds permissions that controls which Java packages and classes
XStream is allowed to use during unmarshal from xml/json to Java beans. A permission must
be configured either here or globally using a JVM system property. The permission can be specified
in a syntax where a plus sign is allow and minus sign is deny. Wildcards is supported by using
. as prefix. For example to allow com.foo and all subpackages then specfy com.foo.. Multiple
permissions can be confi [...]
| allowUnmarshallType | false | Boolean | If enabled then Jackson is allowed to attempt to
use the CamelJacksonUnmarshalType header during the unmarshalling. This should only be enabled
when desired to be used.
+| timezone | | String | If set then Jackson will use the Timezone when marshalling/unmarshalling.
This option will have no effect on the others Json DataFormat like gson fastjson and xstream.
| 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.
|===
// dataformat options: END
diff --git a/platforms/spring-boot/components-starter/camel-fastjson-starter/src/main/java/org/apache/camel/component/fastjson/springboot/FastjsonDataFormatConfiguration.java
b/platforms/spring-boot/components-starter/camel-fastjson-starter/src/main/java/org/apache/camel/component/fastjson/springboot/FastjsonDataFormatConfiguration.java
index 68aeb30..0119549 100644
--- a/platforms/spring-boot/components-starter/camel-fastjson-starter/src/main/java/org/apache/camel/component/fastjson/springboot/FastjsonDataFormatConfiguration.java
+++ b/platforms/spring-boot/components-starter/camel-fastjson-starter/src/main/java/org/apache/camel/component/fastjson/springboot/FastjsonDataFormatConfiguration.java
@@ -135,6 +135,12 @@ public class FastjsonDataFormatConfiguration
*/
private Boolean allowUnmarshallType = false;
/**
+ * If set then Jackson will use the Timezone when marshalling/unmarshalling.
+ * This option will have no effect on the others Json DataFormat like gson
+ * fastjson and xstream.
+ */
+ private String timezone;
+ /**
* 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
@@ -270,6 +276,14 @@ public class FastjsonDataFormatConfiguration
this.allowUnmarshallType = allowUnmarshallType;
}
+ public String getTimezone() {
+ return timezone;
+ }
+
+ public void setTimezone(String timezone) {
+ this.timezone = timezone;
+ }
+
public Boolean getContentTypeHeader() {
return contentTypeHeader;
}
diff --git a/platforms/spring-boot/components-starter/camel-gson-starter/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatConfiguration.java
b/platforms/spring-boot/components-starter/camel-gson-starter/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatConfiguration.java
index 8595161..b36be9a 100644
--- a/platforms/spring-boot/components-starter/camel-gson-starter/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatConfiguration.java
+++ b/platforms/spring-boot/components-starter/camel-gson-starter/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatConfiguration.java
@@ -135,6 +135,12 @@ public class GsonDataFormatConfiguration
*/
private Boolean allowUnmarshallType = false;
/**
+ * If set then Jackson will use the Timezone when marshalling/unmarshalling.
+ * This option will have no effect on the others Json DataFormat like gson
+ * fastjson and xstream.
+ */
+ private String timezone;
+ /**
* 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
@@ -270,6 +276,14 @@ public class GsonDataFormatConfiguration
this.allowUnmarshallType = allowUnmarshallType;
}
+ public String getTimezone() {
+ return timezone;
+ }
+
+ public void setTimezone(String timezone) {
+ this.timezone = timezone;
+ }
+
public Boolean getContentTypeHeader() {
return contentTypeHeader;
}
diff --git a/platforms/spring-boot/components-starter/camel-johnzon-starter/src/main/java/org/apache/camel/component/johnzon/springboot/JohnzonDataFormatConfiguration.java
b/platforms/spring-boot/components-starter/camel-johnzon-starter/src/main/java/org/apache/camel/component/johnzon/springboot/JohnzonDataFormatConfiguration.java
index 8458727..101f78d 100644
--- a/platforms/spring-boot/components-starter/camel-johnzon-starter/src/main/java/org/apache/camel/component/johnzon/springboot/JohnzonDataFormatConfiguration.java
+++ b/platforms/spring-boot/components-starter/camel-johnzon-starter/src/main/java/org/apache/camel/component/johnzon/springboot/JohnzonDataFormatConfiguration.java
@@ -135,6 +135,12 @@ public class JohnzonDataFormatConfiguration
*/
private Boolean allowUnmarshallType = false;
/**
+ * If set then Jackson will use the Timezone when marshalling/unmarshalling.
+ * This option will have no effect on the others Json DataFormat like gson
+ * fastjson and xstream.
+ */
+ private String timezone;
+ /**
* 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
@@ -270,6 +276,14 @@ public class JohnzonDataFormatConfiguration
this.allowUnmarshallType = allowUnmarshallType;
}
+ public String getTimezone() {
+ return timezone;
+ }
+
+ public void setTimezone(String timezone) {
+ this.timezone = timezone;
+ }
+
public Boolean getContentTypeHeader() {
return contentTypeHeader;
}
diff --git a/platforms/spring-boot/components-starter/camel-xstream-starter/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatConfiguration.java
b/platforms/spring-boot/components-starter/camel-xstream-starter/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatConfiguration.java
index 109bcb9..26c21ee 100644
--- a/platforms/spring-boot/components-starter/camel-xstream-starter/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatConfiguration.java
+++ b/platforms/spring-boot/components-starter/camel-xstream-starter/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatConfiguration.java
@@ -135,6 +135,12 @@ public class JsonDataFormatConfiguration
*/
private Boolean allowUnmarshallType = false;
/**
+ * If set then Jackson will use the Timezone when marshalling/unmarshalling.
+ * This option will have no effect on the others Json DataFormat like gson
+ * fastjson and xstream.
+ */
+ private String timezone;
+ /**
* 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
@@ -270,6 +276,14 @@ public class JsonDataFormatConfiguration
this.allowUnmarshallType = allowUnmarshallType;
}
+ public String getTimezone() {
+ return timezone;
+ }
+
+ public void setTimezone(String timezone) {
+ this.timezone = timezone;
+ }
+
public Boolean getContentTypeHeader() {
return contentTypeHeader;
}
--
To stop receiving notification emails like this one, please contact
"commits@camel.apache.org" <commits@camel.apache.org>.
|