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 Details

    • SYSLOG_PAYLOAD_ENTRIES

      public static final Set<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(BeanFactory beanFactory)
      Specified by:
      setBeanFactory in interface BeanFactoryAware
    • getMessageBuilderFactory

      protected MessageBuilderFactory getMessageBuilderFactory()
    • fromSyslog

      public Message<?> fromSyslog(Message<?> message)
      Specified by:
      fromSyslog in interface MessageConverter