org.springframework.integration.router
Class ErrorMessageExceptionTypeRouter

java.lang.Object
  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:
org.springframework.core.Ordered, MessageHandler

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(java.util.Map<java.lang.Class<? extends java.lang.Throwable>,MessageChannel> exceptionTypeChannelMap)
           
 
Methods inherited from class org.springframework.integration.router.AbstractSingleChannelRouter
determineTargetChannels
 
Methods inherited from class org.springframework.integration.router.AbstractMessageRouter
handleMessageInternal, setDefaultOutputChannel, setResolutionRequired, setTimeout
 
Methods inherited from class org.springframework.integration.handler.AbstractMessageHandler
getOrder, handleMessage, setOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorMessageExceptionTypeRouter

public ErrorMessageExceptionTypeRouter()
Method Detail

setExceptionTypeChannelMap

public void setExceptionTypeChannelMap(java.util.Map<java.lang.Class<? extends java.lang.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