diff --git a/spring-integration-reference/src/xml.xml b/spring-integration-reference/src/xml.xml
index 643dc0af3f..ef2d39f171 100644
--- a/spring-integration-reference/src/xml.xml
+++ b/spring-integration-reference/src/xml.xml
@@ -25,22 +25,22 @@
Transforming xml payloads
This section will explain the workings of
- XmlPayloadUnmarshallingTransformer,
- XmlPayloadMarshallingTransformer,
+ UnmarshallingTransformer,
+ MarshallingTransformer,
XsltPayloadTransformer
and how to configure them as
beans. All of the provided xml transformers extend
- AbstractPayloadTransformer and therefore implement
- Transformer. When configuring xml transformers as beans in
- Spring Integration you would normally configure the transformer in conjunction with either
- a MessageTransformingChannelInterceptor or a
+ AbstractTransformer or AbstractPayloadTransformer
+ and therefore implement Transformer. When configuring xml
+ transformers as beans in Spring Integration you would normally configure the transformer
+ in conjunction with either a MessageTransformingChannelInterceptor or a
MessageTransformingHandler. This allows the transformer to be used as either an interceptor,
which transforms the message as it is sent or received to the channel, or as an endpoint. Finally the
namespace support will be discussed which allows for the simple configuration of the transformers as
elements in XML.
- XmlPayloadUnmarshallingTransformer allows an xml Source
+ UnmarshallingTransformer allows an xml Source
to be unmarshalled using implementations of Spring OXM Unmarshaller.
Spring OXM provides several implementations supporting marshalling and unmarshalling using JAXB,
Castor and JiBX amongst others. Since the unmarshaller requires an instance of
@@ -50,7 +50,7 @@
Source is also supported by injecting an implementation of
SourceFactory.
+ class="org.springframework.integration.xml.transformer.UnmarshallingTransformer">
@@ -59,16 +59,16 @@
]]>
- The XmlPayloadMarshallingTransformer allows an object graph to be converted
+ The MarshallingTransformer allows an object graph to be converted
into xml using a Spring OXM Marshaller. By default the
- XmlPayloadMarshallingTransformer will return a DomResult.
+ MarshallingTransformer will return a DomResult.
However the type of result can be controlled by configuring an alternative ResultFactory
such as StringResultFactory. In many cases it will be more convenient to transform
the payload into an alternative xml format. To achieve this configure a
ResultTransformer. Two implementations are provided, one which converts to
String and another which converts to Document.
+ class="org.springframework.integration.xml.transformer.MarshallingTransformer">
@@ -79,6 +79,15 @@
]]>
+
+ By default, the MarshallingTransformer will pass the payload Object
+ to the Marshaller, but if its boolean "extractPayload" property
+ is set to "false", the entire Message instance will be passed
+ to the Marshaller instead. That may be useful for certain custom
+ implementations of the Marshaller interface, but typically the
+ payload is the appropriate source Object for marshalling when delegating to any of the various
+ out-of-the-box Marshaller implementations.
+
XsltPayloadTransformer transforms xml payloads using xsl.
The transformer requires an instance of either Resource or
@@ -119,9 +128,9 @@
http://www.springframework.org/schema/integration/xml
http://www.springframework.org/schema/integration/xml/spring-integration-xml-1.0.xsd">
]]>
- The namespace support for XmlPayloadUnmarshallingTransformer is shown below.
- Since the namespace is now creating an instance of MessageEndpoint rather
- than a transformer a poller can also be nested within the element to control the polling of the input channel.
+ The namespace support for UnmarshallingTransformer is shown below.
+ Since the namespace is now creating an endpoint instance rather than a transformer,
+ a poller can also be nested within the element to control the polling of the input channel.
]]>
-
-
\ No newline at end of file