Spring Integration

org.springframework.integration.xml.router
Class XmlPayloadValidatingRouter

java.lang.Object
  extended by org.springframework.integration.context.IntegrationObjectSupport
      extended by org.springframework.integration.handler.AbstractMessageHandler
          extended by org.springframework.integration.router.AbstractMessageRouter
              extended by org.springframework.integration.router.AbstractChannelNameResolvingMessageRouter
                  extended by org.springframework.integration.router.AbstractSingleChannelNameRouter
                      extended by org.springframework.integration.xml.router.XmlPayloadValidatingRouter
All Implemented Interfaces:
BeanFactoryAware, BeanNameAware, InitializingBean, Ordered, NamedComponent, MessageHandler, TrackableComponent

public class XmlPayloadValidatingRouter
extends AbstractSingleChannelNameRouter


Field Summary
 
Fields inherited from class org.springframework.integration.handler.AbstractMessageHandler
logger
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
XmlPayloadValidatingRouter(String validMessageChannelName, String invalidMessageChannelName, XmlValidator xmlValidator)
           
 
Method Summary
protected  String determineTargetChannelName(Message<?> message)
          Subclasses must implement this method to return the channel name.
 void setConverter(XmlPayloadConverter converter)
          Converter used to convert payloads prior to validation
 
Methods inherited from class org.springframework.integration.router.AbstractSingleChannelNameRouter
getChannelIndicatorList
 
Methods inherited from class org.springframework.integration.router.AbstractChannelNameResolvingMessageRouter
determineTargetChannels, onInit, setChannelResolver, setIgnoreChannelNameResolutionFailures, setPrefix, setSuffix
 
Methods inherited from class org.springframework.integration.router.AbstractMessageRouter
getComponentType, getMessagingTemplate, handleMessageInternal, setApplySequence, setDefaultOutputChannel, setIgnoreSendFailures, setResolutionRequired, setTimeout
 
Methods inherited from class org.springframework.integration.handler.AbstractMessageHandler
getOrder, handleMessage, setOrder, setShouldTrack
 
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getRequiredMetadataPersister, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.integration.context.NamedComponent
getComponentName
 

Constructor Detail

XmlPayloadValidatingRouter

public XmlPayloadValidatingRouter(String validMessageChannelName,
                                  String invalidMessageChannelName,
                                  XmlValidator xmlValidator)
Method Detail

setConverter

public void setConverter(XmlPayloadConverter converter)
Converter used to convert payloads prior to validation

Parameters:
converter -

determineTargetChannelName

protected String determineTargetChannelName(Message<?> message)
Description copied from class: AbstractSingleChannelNameRouter
Subclasses must implement this method to return the channel name.

Specified by:
determineTargetChannelName in class AbstractSingleChannelNameRouter

Spring Integration

Copyright © 2010. All Rights Reserved.