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:
David Liu
2014-08-08 10:06:59 +08:00
committed by Gary Russell
parent 9766c8b4e7
commit e3644d8792
4 changed files with 60 additions and 6 deletions

View File

@@ -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>