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