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 boolean asMap()  
    org.springframework.messaging.Message<?> fromSyslog​(org.springframework.messaging.Message<?> message)  
    protected org.springframework.integration.support.MessageBuilderFactory getMessageBuilderFactory()  
    void setAsMap​(boolean asMap)
    Set false will leave the payload as the original complete syslog.
    void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • 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:
      setBeanFactory in interface org.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:
      fromSyslog in interface MessageConverter