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
public class SyslogToMapTransformer extends AbstractPayloadTransformer<Object,Map<String,?>>
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
Fields Modifier and Type Field Description static String
FACILITY
static String
HOST
static String
MESSAGE
static String
SEVERITY
static String
TAG
static String
TIMESTAMP
static String
UNDECODED
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
EXPRESSION_PARSER, logger
-
Constructor Summary
Constructors Constructor Description SyslogToMapTransformer()
-
Method Summary
Modifier and Type Method Description protected Map<String,?>
transformPayload(Object payload)
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:
- Constant Field Values
-
SEVERITY
- See Also:
- Constant Field Values
-
TIMESTAMP
- See Also:
- Constant Field Values
-
HOST
- See Also:
- Constant Field Values
-
TAG
- See Also:
- Constant Field Values
-
MESSAGE
- See Also:
- Constant Field Values
-
UNDECODED
- See Also:
- Constant Field Values
-
-
Constructor Details
-
SyslogToMapTransformer
public SyslogToMapTransformer()
-
-
Method Details
-
transformPayload
- Specified by:
transformPayload
in classAbstractPayloadTransformer<Object,Map<String,?>>
-