Class RFC6587SyslogDeserializer
java.lang.Object
org.springframework.integration.syslog.inbound.RFC6587SyslogDeserializer
- All Implemented Interfaces:
Deserializer<Map<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
- Author:
- Duncan McIntyre, Gary Russell, Uwez Khan
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct an instance using aByteArrayLfSerializerfor non-transparent frames.RFC6587SyslogDeserializer(Deserializer<byte[]> delimitedDeserializer) Construct an instance using the specifiedDeserializerfor non-transparent frames. -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(InputStream inputStream) protected StringvoidsetMaxMessageSize(int maxMessageSize) Set the maximum frame size accepted for an octet-counted frame.voidsetParser(RFC5424SyslogParser parser) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Deserializer
deserializeFromByteArray
-
Constructor Details
-
RFC6587SyslogDeserializer
public RFC6587SyslogDeserializer()Construct an instance using aByteArrayLfSerializerfor non-transparent frames. -
RFC6587SyslogDeserializer
Construct an instance using the specifiedDeserializerfor non-transparent frames.- Parameters:
delimitedDeserializer- the Deserializer.
-
-
Method Details
-
setParser
- Parameters:
parser- the parser to set
-
setMaxMessageSize
public void setMaxMessageSize(int maxMessageSize) Set the maximum frame size accepted for an octet-counted frame. A frame whose declared octet count exceeds this value is rejected with anIOExceptionbefore any buffer is allocated, mirroring themaxMessageSizeceiling the non-transparent (LF-delimited) framing path already enforces. Defaults to themaxMessageSizeof the delimited deserializer when it is anAbstractByteArraySerializer, otherwiseAbstractByteArraySerializer.DEFAULT_MAX_MESSAGE_SIZE.- Parameters:
maxMessageSize- the maximum octet count to accept.- Since:
- 5.5.22
-
deserialize
- Specified by:
deserializein interfaceDeserializer<Map<String,?>> - Throws:
IOException
-
getCharset
-