Class RFC6587SyslogDeserializer

java.lang.Object
org.springframework.integration.syslog.inbound.RFC6587SyslogDeserializer
All Implemented Interfaces:
org.springframework.core.serializer.Deserializer<java.util.Map<java.lang.String,​?>>

public class RFC6587SyslogDeserializer
extends java.lang.Object
implements org.springframework.core.serializer.Deserializer<java.util.Map<java.lang.String,​?>>
RFC5424/6587 Deserializer. Implemented as a Deserializer instead of a transformer because we may receive a mixture of octet counting and non-transparent framing - see RFC 6587.
Since:
4.1.1
  • Constructor Summary

    Constructors 
    Constructor Description
    RFC6587SyslogDeserializer()
    Construct an instance using a ByteArrayLfSerializer for non-transparent frames.
    RFC6587SyslogDeserializer​(org.springframework.core.serializer.Deserializer<byte[]> delimitedDeserializer)
    Construct an instance using the specified Deserializer for non-transparent frames.
  • Method Summary

    Modifier and Type Method Description
    java.util.Map<java.lang.String,​?> deserialize​(java.io.InputStream inputStream)  
    protected java.lang.String getCharset()  
    void setParser​(RFC5424SyslogParser parser)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.core.serializer.Deserializer

    deserializeFromByteArray
  • Constructor Details

    • RFC6587SyslogDeserializer

      public RFC6587SyslogDeserializer()
      Construct an instance using a ByteArrayLfSerializer for non-transparent frames.
    • RFC6587SyslogDeserializer

      public RFC6587SyslogDeserializer​(org.springframework.core.serializer.Deserializer<byte[]> delimitedDeserializer)
      Construct an instance using the specified Deserializer for non-transparent frames.
      Parameters:
      delimitedDeserializer - the Deserializer.
  • Method Details

    • setParser

      public void setParser​(RFC5424SyslogParser parser)
      Parameters:
      parser - the parser to set
    • deserialize

      public java.util.Map<java.lang.String,​?> deserialize​(java.io.InputStream inputStream) throws java.io.IOException
      Specified by:
      deserialize in interface org.springframework.core.serializer.Deserializer<java.util.Map<java.lang.String,​?>>
      Throws:
      java.io.IOException
    • getCharset

      protected java.lang.String getCharset()