org.mule.routing
Class ForwardingCatchAllStrategy

java.lang.Object
  extended by org.mule.routing.AbstractCatchAllStrategy
      extended by org.mule.routing.ForwardingCatchAllStrategy
All Implemented Interfaces:
RouterCatchAllStrategy

public class ForwardingCatchAllStrategy
extends AbstractCatchAllStrategy

ForwardingCatchAllStrategy acts as a catch and forward router for any events not caught by the router this strategy is associated with. Users can assign an endpoint to this strategy to forward all events to. This can be used as a dead letter/error queue.


Field Summary
protected  OutboundEndpoint endpoint
           
 
Fields inherited from class org.mule.routing.AbstractCatchAllStrategy
logger, statistics
 
Constructor Summary
ForwardingCatchAllStrategy()
           
 
Method Summary
 MuleMessage doCatchMessage(MuleMessage message, MuleSession session)
           
 OutboundEndpoint getEndpoint()
           
 boolean isSendTransformed()
           
 void setEndpoint(OutboundEndpoint endpoint)
           
 void setSendTransformed(boolean sendTransformed)
           
 
Methods inherited from class org.mule.routing.AbstractCatchAllStrategy
catchMessage, getStatistics, setStatistics
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

endpoint

protected OutboundEndpoint endpoint
Constructor Detail

ForwardingCatchAllStrategy

public ForwardingCatchAllStrategy()
Method Detail

setEndpoint

public void setEndpoint(OutboundEndpoint endpoint)

getEndpoint

public OutboundEndpoint getEndpoint()

doCatchMessage

public MuleMessage doCatchMessage(MuleMessage message,
                                  MuleSession session)
                           throws RoutingException
Specified by:
doCatchMessage in class AbstractCatchAllStrategy
Throws:
RoutingException

isSendTransformed

public boolean isSendTransformed()

setSendTransformed

public void setSendTransformed(boolean sendTransformed)


Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.