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
,ExpressionCapable
,NamedComponent
,GenericTransformer<Message<?>,
,Message<?>> 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
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
EXPRESSION_PARSER, logger
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.integration.transformer.AbstractPayloadTransformer
doTransform
Methods inherited from class org.springframework.integration.transformer.AbstractTransformer
transform
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getComponentType, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, onInit, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, 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:
transformPayload
in classAbstractPayloadTransformer<Object,
Map<String, ?>>
-