Class RFC5424MessageConverter
java.lang.Object
org.springframework.integration.syslog.DefaultMessageConverter
org.springframework.integration.syslog.RFC5424MessageConverter
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,MessageConverter
MessageConverter
; delegates to a RFC5424SyslogParser
if
necessary (TCP will have already done the syslog conversion because it needs
to handle different message framing). Copies the resulting Map
to
the message headers if DefaultMessageConverter.asMap()
is false.- Since:
- 4.1.1
- Author:
- Gary Russell
-
Field Summary
Fields inherited from class org.springframework.integration.syslog.DefaultMessageConverter
SYSLOG_PAYLOAD_ENTRIES
-
Constructor Summary
ConstructorDescriptionConstruct an instance with a defaultRFC5424SyslogParser
.Construct an instance with a non-standard parser. -
Method Summary
Modifier and TypeMethodDescriptionMessage<?>
fromSyslog
(Message<?> message) protected void
setCharset
(String charset) Methods inherited from class org.springframework.integration.syslog.DefaultMessageConverter
asMap, getMessageBuilderFactory, setAsMap, setBeanFactory
-
Constructor Details
-
RFC5424MessageConverter
public RFC5424MessageConverter()Construct an instance with a defaultRFC5424SyslogParser
. -
RFC5424MessageConverter
Construct an instance with a non-standard parser.- Parameters:
parser
- the parser.
-
-
Method Details
-
setCharset
- Parameters:
charset
- the charset to set
-
fromSyslog
- Specified by:
fromSyslog
in interfaceMessageConverter
- Overrides:
fromSyslog
in classDefaultMessageConverter
-