INT-3369: Syslog Converter asMap Option
JIRA: https://jira.spring.io/browse/INT-3369 INT-3369: add option asMap in DefaultMessageConverter * add test GH-1250
This commit is contained in:
@@ -28,6 +28,13 @@
|
||||
being the <code>Map</code> of Syslog fields. In addition, all fields except the message
|
||||
are also made available as headers in the message, prefixed with <code>syslog_</code>.
|
||||
</para>
|
||||
<para>
|
||||
Since <emphasis>version 4.1</emphasis>,
|
||||
the <classname>DefaultMessageConverter</classname> has a property <code>asMap</code>
|
||||
(default <code>true</code>); when it is <code>false</code>, the converter will leave
|
||||
the message payload as the original complete syslog message, in a <code>byte[]</code>,
|
||||
while still setting the headers.
|
||||
</para>
|
||||
<section id="syslog-inbound-examplers">
|
||||
<title>Example Configuration</title>
|
||||
<programlisting language="xml"><![CDATA[<int-syslog:inbound-channel-adapter id="syslogIn" port="1514" />]]></programlisting>
|
||||
|
||||
@@ -169,6 +169,13 @@
|
||||
for the JSON transformers. See <xref linkend="transformer"/> for more information.
|
||||
</para>
|
||||
</section>
|
||||
|
||||
<section id="4.1-syslog">
|
||||
<title>Syslog Adapter</title>
|
||||
<para>
|
||||
The default syslog message converter now has an option to retain the original message in
|
||||
the payload, while still setting the headers.
|
||||
See <xref linkend="syslog-inbound-adapter"/> for more information.
|
||||
</para>
|
||||
</section>
|
||||
</section>
|
||||
</chapter>
|
||||
|
||||
Reference in New Issue
Block a user