Class HeaderEnricherParserSupport
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.integration.config.xml.AbstractConsumerEndpointParser
org.springframework.integration.config.xml.AbstractTransformerParser
org.springframework.integration.config.xml.HeaderEnricherParserSupport
- All Implemented Interfaces:
BeanDefinitionParser
- Direct Known Subclasses:
JmsHeaderEnricherParser
,MailHeaderEnricherParser
,StandardHeaderEnricherParser
,WebServiceHeaderEnricherParser
,XmppHeaderEnricherParser
Base support class for 'header-enricher' parsers.
- Since:
- 2.0
- Author:
- Mark Fisher, Oleg Zhurakousky, Artem Bilan, Gary Russell
-
Field Summary
Fields inherited from class org.springframework.integration.config.xml.AbstractConsumerEndpointParser
EXPRESSION_ATTRIBUTE, METHOD_ATTRIBUTE, REF_ATTRIBUTE
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final void
addElementToHeaderMapping
(String elementName, String headerName) protected final void
addElementToHeaderMapping
(String elementName, String headerName, String headerType) protected final String
protected void
parseTransformer
(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) protected void
postProcessHeaderEnricher
(BeanDefinitionBuilder builder, Element element, ParserContext parserContext) Subclasses may override this method to provide any additional processing.protected void
processHeaders
(Element element, ManagedMap<String, Object> headers, ParserContext parserContext) Methods inherited from class org.springframework.integration.config.xml.AbstractTransformerParser
parseHandler
Methods inherited from class org.springframework.integration.config.xml.AbstractConsumerEndpointParser
getInputChannelAttributeName, parseInternal, replyChannelInChainAllowed, resolveId
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
-
Constructor Details
-
HeaderEnricherParserSupport
public HeaderEnricherParserSupport()
-
-
Method Details
-
getTransformerClassName
- Specified by:
getTransformerClassName
in classAbstractTransformerParser
-
addElementToHeaderMapping
-
addElementToHeaderMapping
-
parseTransformer
protected void parseTransformer(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) - Specified by:
parseTransformer
in classAbstractTransformerParser
-
processHeaders
protected void processHeaders(Element element, ManagedMap<String, Object> headers, ParserContext parserContext) -
postProcessHeaderEnricher
protected void postProcessHeaderEnricher(BeanDefinitionBuilder builder, Element element, ParserContext parserContext) Subclasses may override this method to provide any additional processing.- Parameters:
builder
- The builder.element
- The element.parserContext
- The parser context.
-