INT-4451: ObjectToJsonTrans: add ResultType.BYTES

JIRA: https://jira.spring.io/browse/INT-4451
This commit is contained in:
Artem Bilan
2018-04-20 14:41:05 -04:00
committed by Gary Russell
parent 2f1b55f48c
commit 0c35310f34
5 changed files with 52 additions and 11 deletions

View File

@@ -382,6 +382,8 @@ The node JSON representation provides efficiency for using the `JsonPropertyAcce
See <<spel-property-accessors>>.
When using Boon, the `NODE` representation is a `Map<String, Object>`
Beginning with _version 5.1_, the `resultType` can be configured as `BYTES` to produce a message with the `byte[]` payload for convenience in downstream handlers which operate with this data type.
[[transformer-annotation]]
===== Configuring a Transformer with Annotations

View File

@@ -38,3 +38,9 @@ Previously:
Global channel interceptors are now applied to channels registered dynamically - such as via the `IntegrationFlowContext` when using the Java DSL, or beans that are initialized using `beanFactory.initializeBean()`.
Previously, interceptors were not applied when beans were created after the application context was refreshed.
==== ObjectToJsonTransformer
A new `ResultType.BYTES` mode is introduced for the `ObjectToJsonTransformer`.
See <<json-transformers>> for more information.