Class RFC5424SyslogParser
java.lang.Object
org.springframework.integration.syslog.RFC5424SyslogParser
Parse for RFC 5424 syslog messages; when used with TCP, requires the use
 of a 
RFC6587SyslogDeserializer which decodes the framing.- Since:
- 4.1.1
- Author:
- Duncan McIntyre, Gary Russell, Artem Bilan
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static classprotected static enum
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final charprotected final booleanprotected static final char
- 
Constructor SummaryConstructorsConstructorDescriptionConstruct a default parser; do not retain the original message content unless there is an error.RFC5424SyslogParser(boolean retainOriginal) 
- 
Method Summary
- 
Field Details- 
NILVALUEprotected static final char NILVALUE- See Also:
 
- 
SPACEprotected static final char SPACE- See Also:
 
- 
retainOriginalprotected final boolean retainOriginal
 
- 
- 
Constructor Details- 
RFC5424SyslogParserpublic RFC5424SyslogParser()Construct a default parser; do not retain the original message content unless there is an error.
- 
RFC5424SyslogParserpublic RFC5424SyslogParser(boolean retainOriginal) - Parameters:
- retainOriginal- when true, include the original message content intact in the map.
 
 
- 
- 
Method Details- 
parse
- 
getTimestampDefault implementation returns the date as a String (if present).- Parameters:
- r- the reader.
- Returns:
- the timestamp.
 
- 
parseStructuredDataElementsDefault implementation returns a list of structured data elements with no internal parsing.- Parameters:
- r- the reader.
- Returns:
- the structured data.
 
 
-