Class DefaultMessageConverter
java.lang.Object
org.springframework.integration.syslog.DefaultMessageConverter
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,MessageConverter
- Direct Known Subclasses:
RFC5424MessageConverter
Default
MessageConverter
; delegates to a SyslogToMapTransformer
to
convert the payload to a map of values and also provides some of the map contents as
message headers. See @link SyslogHeaders
for the headers that are mapped.- Since:
- 3.0
- Author:
- Gary Russell, David Liu
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
asMap()
Message<?>
fromSyslog
(Message<?> message) protected MessageBuilderFactory
void
setAsMap
(boolean asMap) Set false will leave the payload as the original complete syslog.final void
setBeanFactory
(BeanFactory beanFactory)
-
Field Details
-
SYSLOG_PAYLOAD_ENTRIES
-
-
Constructor Details
-
DefaultMessageConverter
public DefaultMessageConverter()
-
-
Method Details
-
setAsMap
public void setAsMap(boolean asMap) Set false will leave the payload as the original complete syslog.- Parameters:
asMap
- boolean flag.
-
asMap
protected boolean asMap() -
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
-
getMessageBuilderFactory
-
fromSyslog
- Specified by:
fromSyslog
in interfaceMessageConverter
-