Spring Integration

org.springframework.integration.config.xml
Class HeaderEnricherParserSupport

java.lang.Object
  extended by org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
      extended by org.springframework.integration.config.xml.AbstractConsumerEndpointParser
          extended by org.springframework.integration.config.xml.AbstractTransformerParser
              extended by org.springframework.integration.config.xml.HeaderEnricherParserSupport
All Implemented Interfaces:
org.springframework.beans.factory.xml.BeanDefinitionParser
Direct Known Subclasses:
JmsHeaderEnricherParser, MailHeaderEnricherParser, StandardHeaderEnricherParser, WebServiceHeaderEnricherParser, XmppHeaderEnricherParser

public abstract class HeaderEnricherParserSupport
extends AbstractTransformerParser

Base support class for 'header-enricher' parsers.

Since:
2.0
Author:
Mark Fisher, Oleg Zhurakousky, Artem Bilan

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
HeaderEnricherParserSupport()
           
 
Method Summary
protected  void addElementToHeaderMapping(java.lang.String elementName, java.lang.String headerName)
           
protected  void addElementToHeaderMapping(java.lang.String elementName, java.lang.String headerName, java.lang.Class<?> headerType)
           
protected  java.lang.String getTransformerClassName()
           
protected  void parseTransformer(org.w3c.dom.Element element, org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
           
protected  void postProcessHeaderEnricher(org.springframework.beans.factory.support.BeanDefinitionBuilder builder, org.w3c.dom.Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
          Subclasses may override this method to provide any additional processing.
protected  void processHeaders(org.w3c.dom.Element element, org.springframework.beans.factory.support.ManagedMap<java.lang.String,java.lang.Object> headers, org.springframework.beans.factory.xml.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, resolveId
 
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeaderEnricherParserSupport

public HeaderEnricherParserSupport()
Method Detail

getTransformerClassName

protected final java.lang.String getTransformerClassName()
Specified by:
getTransformerClassName in class AbstractTransformerParser

addElementToHeaderMapping

protected final void addElementToHeaderMapping(java.lang.String elementName,
                                               java.lang.String headerName)

addElementToHeaderMapping

protected final void addElementToHeaderMapping(java.lang.String elementName,
                                               java.lang.String headerName,
                                               java.lang.Class<?> headerType)

parseTransformer

protected void parseTransformer(org.w3c.dom.Element element,
                                org.springframework.beans.factory.xml.ParserContext parserContext,
                                org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
Specified by:
parseTransformer in class AbstractTransformerParser

processHeaders

protected void processHeaders(org.w3c.dom.Element element,
                              org.springframework.beans.factory.support.ManagedMap<java.lang.String,java.lang.Object> headers,
                              org.springframework.beans.factory.xml.ParserContext parserContext)

postProcessHeaderEnricher

protected void postProcessHeaderEnricher(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
                                         org.w3c.dom.Element element,
                                         org.springframework.beans.factory.xml.ParserContext parserContext)
Subclasses may override this method to provide any additional processing.


Spring Integration