org.mule.routing
Class LoggingCatchAllStrategy

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

public class LoggingCatchAllStrategy
extends AbstractCatchAllStrategy

LoggingCatchAllStrategy is a simple strategy that only logs any events not caught by the router associated with this strategy. This should not be used in production unless it is acceptible for events to be disposing.


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

Constructor Detail

LoggingCatchAllStrategy

public LoggingCatchAllStrategy()
Method Detail

setEndpoint

public void setEndpoint(OutboundEndpoint endpoint)
Specified by:
setEndpoint in interface RouterCatchAllStrategy
Overrides:
setEndpoint in class AbstractCatchAllStrategy

setEndpoint

public void setEndpoint(String endpoint)

getEndpoint

public OutboundEndpoint getEndpoint()
Specified by:
getEndpoint in interface RouterCatchAllStrategy
Overrides:
getEndpoint in class AbstractCatchAllStrategy

catchMessage

public MuleMessage catchMessage(MuleMessage message,
                                MuleSession session,
                                boolean synchronous)
                         throws RoutingException
Throws:
RoutingException


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