Class SyslogToMapTransformer
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.transformer.AbstractTransformer
org.springframework.integration.transformer.AbstractPayloadTransformer<Object,Map<String,?>>
org.springframework.integration.transformer.SyslogToMapTransformer
- All Implemented Interfaces:
Aware,BeanFactoryAware,BeanNameAware,InitializingBean,ApplicationContextAware,ComponentSourceAware,ExpressionCapable,GenericTransformer<Message<?>,,Message<?>> NamedComponent,Transformer
Transforms a packet in Syslog (RFC3164) format to a Map.
If the packet cannot be decoded, the entire packet
is returned as a String under the key
UNDECODED. If the date field can be
parsed, it will be returned as a Date object; otherwise it is returned as a String.- Since:
- 2.2
- Author:
- Gary Russell, Artem Bilan, Karol Dowbecki
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.springframework.integration.context.IntegrationObjectSupport
EXPRESSION_PARSER, logger -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.integration.transformer.AbstractPayloadTransformer
doTransformMethods inherited from class org.springframework.integration.transformer.AbstractTransformer
transformMethods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getComponentType, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, onInit, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
-
Field Details
-
FACILITY
- See Also:
-
SEVERITY
- See Also:
-
TIMESTAMP
- See Also:
-
HOST
- See Also:
-
TAG
- See Also:
-
MESSAGE
- See Also:
-
UNDECODED
- See Also:
-
-
Constructor Details
-
SyslogToMapTransformer
public SyslogToMapTransformer()
-
-
Method Details
-
transformPayload
- Specified by:
transformPayloadin classAbstractPayloadTransformer<Object,Map<String, ?>>
-