Class DefaultMessageConverter
java.lang.Object
org.springframework.integration.syslog.DefaultMessageConverter
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,MessageConverter
- Direct Known Subclasses:
RFC5424MessageConverter
public class DefaultMessageConverter extends Object implements MessageConverter, BeanFactoryAware
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
Fields Modifier and Type Field Description static Set<String>
SYSLOG_PAYLOAD_ENTRIES
-
Constructor Summary
Constructors Constructor Description DefaultMessageConverter()
-
Method Summary
Modifier and Type Method Description protected boolean
asMap()
Message<?>
fromSyslog(Message<?> message)
protected MessageBuilderFactory
getMessageBuilderFactory()
void
setAsMap(boolean asMap)
Set false will leave the payload as the original complete syslog.void
setBeanFactory(BeanFactory beanFactory)
-
Field Details
-
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
-