INT-909 Added support for the 'extract-payload' attribute on the 'marshalling-transformer' element. The default value is "true".
This commit is contained in:
@@ -46,6 +46,10 @@ public class MarshallingTransformerParser extends AbstractTransformerParser {
|
||||
if (StringUtils.hasText(resultTransformer)) {
|
||||
builder.addConstructorArgReference(resultTransformer);
|
||||
}
|
||||
String extractPayload = element.getAttribute("extract-payload");
|
||||
if (StringUtils.hasText(extractPayload)) {
|
||||
builder.addPropertyValue("extractPayload", extractPayload);
|
||||
}
|
||||
XmlNamespaceUtils.configureResultFactory(builder, resultType, resultFactory);
|
||||
}
|
||||
|
||||
|
||||
@@ -62,6 +62,14 @@
|
||||
</xsd:appinfo>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
<xsd:attribute name="extract-payload" type="xsd:string" default="true">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Specify whether to extract the payload before passing to the Marshaller. By default, this
|
||||
value is "true". To have the full Message passed instead, set this to "false".
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
</xsd:extension>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
|
||||
Reference in New Issue
Block a user