This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 053cff00b3c7061f05e46ab1e91986d5dedd01b9 Author: Claus Ibsen <[email protected]> AuthorDate: Fri Apr 3 08:19:21 2020 +0200 CAMEL-14835: json dataformats should expose unmarshal and collection type in configurer --- docs/components/modules/dataformats/pages/jaxb-dataformat.adoc | 3 ++- .../modules/dataformats/pages/json-fastjson-dataformat.adoc | 3 ++- docs/components/modules/dataformats/pages/json-gson-dataformat.adoc | 3 ++- .../components/modules/dataformats/pages/json-jackson-dataformat.adoc | 4 +++- .../components/modules/dataformats/pages/json-johnzon-dataformat.adoc | 3 ++- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/docs/components/modules/dataformats/pages/jaxb-dataformat.adoc b/docs/components/modules/dataformats/pages/jaxb-dataformat.adoc index 6d1713b..3243cc9 100644 --- a/docs/components/modules/dataformats/pages/jaxb-dataformat.adoc +++ b/docs/components/modules/dataformats/pages/jaxb-dataformat.adoc @@ -12,7 +12,7 @@ payload. == Options // dataformat options: START -The JAXB dataformat supports 18 options, which are listed below. +The JAXB dataformat supports 19 options, which are listed below. @@ -20,6 +20,7 @@ The JAXB dataformat supports 18 options, which are listed below. |=== | Name | Default | Java Type | Description | contextPath | | String | Package name where your JAXB classes are located. +| contextPathIsClassName | false | Boolean | This can be set to true to mark that the contextPath is referring to a classname and not a package name. | schema | | String | To validate against an existing schema. Your can use the prefix classpath:, file: or http: to specify how the resource should by resolved. You can separate multiple schema files by using the ',' character. | schemaSeverityLevel | 0 | Integer | Sets the schema severity level to use when validating against a schema. This level determines the minimum severity error that triggers JAXB to stop continue parsing. The default value of 0 (warning) means that any error (warning, error or fatal error) will trigger JAXB to stop. There are the following three levels: 0=warning, 1=error, 2=fatal error. The value can be one of: 0, 1, 2 | prettyPrint | false | Boolean | To enable pretty printing output nicely formatted. Is by default false. diff --git a/docs/components/modules/dataformats/pages/json-fastjson-dataformat.adoc b/docs/components/modules/dataformats/pages/json-fastjson-dataformat.adoc index 3e68e71..6fe4b1d 100644 --- a/docs/components/modules/dataformats/pages/json-fastjson-dataformat.adoc +++ b/docs/components/modules/dataformats/pages/json-fastjson-dataformat.adoc @@ -18,13 +18,14 @@ from("activemq:My.Queue"). // dataformat options: START -The JSon Fastjson dataformat supports 1 options, which are listed below. +The JSon Fastjson dataformat supports 2 options, which are listed below. [width="100%",cols="2s,1m,1m,6",options="header"] |=== | Name | Default | Java Type | Description +| unmarshalTypeName | | String | Class name of the java type to use when unmarshalling | 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/docs/components/modules/dataformats/pages/json-gson-dataformat.adoc b/docs/components/modules/dataformats/pages/json-gson-dataformat.adoc index 75a3788..c200950 100644 --- a/docs/components/modules/dataformats/pages/json-gson-dataformat.adoc +++ b/docs/components/modules/dataformats/pages/json-gson-dataformat.adoc @@ -18,7 +18,7 @@ from("activemq:My.Queue"). // dataformat options: START -The JSon GSon dataformat supports 2 options, which are listed below. +The JSon GSon dataformat supports 3 options, which are listed below. @@ -26,6 +26,7 @@ The JSon GSon dataformat supports 2 options, which are listed below. |=== | Name | Default | Java Type | Description | prettyPrint | false | Boolean | To enable pretty printing output nicely formatted. Is by default false. +| unmarshalTypeName | | String | Class name of the java type to use when unmarshalling | 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/docs/components/modules/dataformats/pages/json-jackson-dataformat.adoc b/docs/components/modules/dataformats/pages/json-jackson-dataformat.adoc index 9e806c3..a56ede0 100644 --- a/docs/components/modules/dataformats/pages/json-jackson-dataformat.adoc +++ b/docs/components/modules/dataformats/pages/json-jackson-dataformat.adoc @@ -19,7 +19,7 @@ from("activemq:My.Queue"). // dataformat options: START -The JSon Jackson dataformat supports 16 options, which are listed below. +The JSon Jackson dataformat supports 18 options, which are listed below. @@ -29,9 +29,11 @@ The JSon Jackson dataformat supports 16 options, which are listed below. | objectMapper | | String | Lookup and use the existing ObjectMapper with the given id when using Jackson. | useDefaultObjectMapper | true | Boolean | Whether to lookup and use default Jackson ObjectMapper from the registry. | prettyPrint | false | Boolean | To enable pretty printing output nicely formatted. Is by default false. +| unmarshalTypeName | | String | Class name of the java type to use when unmarshalling | jsonView | | Class | When marshalling a POJO to JSON you might want to exclude certain fields from the JSON output. With Jackson you can use JSON views to accomplish this. This option is to refer to the class which has JsonView annotations | include | | String | If you want to marshal a pojo to JSON, and the pojo has some fields with null values. And you want to skip these null values, you can set this option to NON_NULL | allowJmsType | false | Boolean | Used for JMS users to allow the JMSType header from the JMS spec to specify a FQN classname to use to unmarshal to. +| collectionTypeName | | String | Refers to a custom collection type to lookup in the registry to use. This option should rarely be used, but allows to use different collection types than java.util.Collection based as default. | useList | false | Boolean | To unmarshal to a List of Map or a List of Pojo. | enableJaxbAnnotationModule | false | Boolean | Whether to enable the JAXB annotations module when using jackson. When enabled then JAXB annotations can be used by Jackson. | moduleClassNames | | String | To use custom Jackson modules com.fasterxml.jackson.databind.Module specified as a String with FQN class names. Multiple classes can be separated by comma. diff --git a/docs/components/modules/dataformats/pages/json-johnzon-dataformat.adoc b/docs/components/modules/dataformats/pages/json-johnzon-dataformat.adoc index a36ad95..1f0ad2e 100644 --- a/docs/components/modules/dataformats/pages/json-johnzon-dataformat.adoc +++ b/docs/components/modules/dataformats/pages/json-johnzon-dataformat.adoc @@ -19,7 +19,7 @@ from("activemq:My.Queue"). // dataformat options: START -The JSon Johnzon dataformat supports 2 options, which are listed below. +The JSon Johnzon dataformat supports 3 options, which are listed below. @@ -28,6 +28,7 @@ The JSon Johnzon dataformat supports 2 options, which are listed below. | Name | Default | Java Type | Description | objectMapper | | String | Lookup and use the existing ObjectMapper with the given id when using Jackson. | prettyPrint | false | Boolean | To enable pretty printing output nicely formatted. Is by default false. +| unmarshalTypeName | | String | Class name of the java type to use when unmarshalling |=== // dataformat options: END
