INT-3465:Content Enricher Improvements
JIRA: https://jira.spring.io/browse/INT-3465 Add support for adding/removing individual recipients to the RecipientListRouter Modify documentation in what's new and spring-integration-4.1.xsd Polishing `AbstractRemoteFileOutboundGateway`: close `outputStream` before `file.delete()` to release exclusive file-lock
This commit is contained in:
@@ -273,10 +273,10 @@
|
||||
send-timeout="" ]]><co id="payload-enricher08-co" linkends="payload-enricher08" /><![CDATA[
|
||||
should-clone-payload="false"> ]]><co id="payload-enricher09-co" linkends="payload-enricher09" /><![CDATA[
|
||||
<int:poller></int:poller> ]]><co id="payload-enricher10-co" linkends="payload-enricher10" /><![CDATA[
|
||||
<int:property name="" expression=""/> ]]><co id="payload-enricher11-co" linkends="payload-enricher11" /><![CDATA[
|
||||
<int:property name="" value="23" type="java.lang.Integer"/>
|
||||
<int:header name="" expression=""/> ]]><co id="payload-enricher12-co" linkends="payload-enricher12" /><![CDATA[
|
||||
<int:header name="" value="" overwrite="" type=""/>
|
||||
<int:property name="" expression="" null-result-expression="'Could not determine the name'"/> ]]><co id="payload-enricher11-co" linkends="payload-enricher11" /><![CDATA[
|
||||
<int:property name="" value="23" type="java.lang.Integer" null-result-expression="'0'"/>
|
||||
<int:header name="" expression="" null-result-expression=""/> ]]><co id="payload-enricher12-co" linkends="payload-enricher12" /><![CDATA[
|
||||
<int:header name="" value="" overwrite="" type="" null-result-expression=""/>
|
||||
</int:enricher>]]></programlisting>
|
||||
|
||||
<para>
|
||||
@@ -408,7 +408,7 @@
|
||||
application context (using the '@<beanName>.<beanProperty>'
|
||||
SpEL syntax).
|
||||
</para>
|
||||
<para>
|
||||
<para>
|
||||
Starting with <emphasis>4.0</emphasis>, when specifying
|
||||
a <code>value</code> attribute, you can also specify an optional
|
||||
<code>type</code> attribute. When the destination is a
|
||||
@@ -420,7 +420,12 @@
|
||||
<code>type</code> attribute allows you to, say, convert
|
||||
a String containing a number to an <classname>Integer</classname>
|
||||
value in the target payload.
|
||||
</para>
|
||||
</para>
|
||||
<para>
|
||||
Starting with <emphasis>4.1</emphasis>, you can also specify an optional
|
||||
<code>null-result-expression</code> attribute. When the <code>enricher</code>
|
||||
returns null, it will be evaluated and the output of the evaluation will be returned instead.
|
||||
</para>
|
||||
</callout>
|
||||
<callout arearefs="payload-enricher12-co" id="payload-enricher12">
|
||||
<para>
|
||||
@@ -435,12 +440,17 @@
|
||||
input Message if there is no request channel, or the
|
||||
application context (using the '@<beanName>.<beanProperty>'
|
||||
SpEL syntax).
|
||||
Note, similar to the <code><header-enricher></code>, the <code><enricher></code>'s
|
||||
<code>header</code> element has <code>type</code> and <code>overwrite</code> attributes.
|
||||
However, a difference is that, with the <code><enricher></code>,
|
||||
the <code>overwrite</code> attribute is <code>true</code> by default,
|
||||
to be consistent with <code><enricher></code>'s
|
||||
<code><property></code> sub-element.
|
||||
Note, similar to the <code><header-enricher></code>, the <code><enricher></code>'s
|
||||
<code>header</code> element has <code>type</code> and <code>overwrite</code> attributes.
|
||||
However, a difference is that, with the <code><enricher></code>,
|
||||
the <code>overwrite</code> attribute is <code>true</code> by default,
|
||||
to be consistent with <code><enricher></code>'s
|
||||
<code><property></code> sub-element.
|
||||
</para>
|
||||
<para>
|
||||
Starting with <emphasis>4.1</emphasis>, you can also specify an optional
|
||||
<code>null-result-expression</code> attribute. When the <code>enricher</code>
|
||||
returns null, it will be evaluated and the output of the evaluation will be returned instead.
|
||||
</para>
|
||||
</callout>
|
||||
</calloutlist>
|
||||
|
||||
@@ -89,5 +89,13 @@
|
||||
See <xref linkend="aggregator-config"/> for more information.
|
||||
</para>
|
||||
</section>
|
||||
<section id="4.1-content-enricher-improvement">
|
||||
<title>Content Enricher Improvements</title>
|
||||
<para>
|
||||
Add null-result-expression attribute, which will be evaluated and returned if <code><enricher></code> returns null.
|
||||
It can be added in <code><header></code> and <code><property></code>.
|
||||
See <xref linkend="content-enricher"/> for more information.
|
||||
</para>
|
||||
</section>
|
||||
</section>
|
||||
</chapter>
|
||||
|
||||
Reference in New Issue
Block a user