Spring Integration

org.springframework.integration.router
Class ErrorMessageExceptionTypeRouter

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.AbstractSingleChannelRouter
                  extended by org.springframework.integration.router.ErrorMessageExceptionTypeRouter
All Implemented Interfaces:
BeanFactoryAware, BeanNameAware, InitializingBean, Ordered, MessageHandler, NamedComponent

public class ErrorMessageExceptionTypeRouter
extends AbstractSingleChannelRouter

A Message Router that resolves the target MessageChannel for messages whose payload is an Exception. The channel resolution is based upon the most specific cause of the error for which a channel-mapping exists.

Author:
Mark Fisher

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
ErrorMessageExceptionTypeRouter()
           
 
Method Summary
protected  MessageChannel determineTargetChannel(Message<?> message)
          Subclasses must implement this method to return the target channel.
 void setExceptionTypeChannelMap(Map<Class<? extends Throwable>,MessageChannel> exceptionTypeChannelMap)
           
 
Methods inherited from class org.springframework.integration.router.AbstractSingleChannelRouter
determineTargetChannels
 
Methods inherited from class org.springframework.integration.router.AbstractMessageRouter
getComponentType, handleMessageInternal, setApplySequence, setDefaultOutputChannel, setIgnoreSendFailures, setResolutionRequired, setTimeout
 
Methods inherited from class org.springframework.integration.handler.AbstractMessageHandler
getOrder, handleMessage, resolveReplyChannel, setOrder
 
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getTaskScheduler, onInit, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setTaskScheduler, toString, writeMessageHistory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErrorMessageExceptionTypeRouter

public ErrorMessageExceptionTypeRouter()
Method Detail

setExceptionTypeChannelMap

public void setExceptionTypeChannelMap(Map<Class<? extends Throwable>,MessageChannel> exceptionTypeChannelMap)

determineTargetChannel

protected MessageChannel determineTargetChannel(Message<?> message)
Description copied from class: AbstractSingleChannelRouter
Subclasses must implement this method to return the target channel.

Specified by:
determineTargetChannel in class AbstractSingleChannelRouter

Spring Integration

Copyright © 2010. All Rights Reserved.