org.mule.module.sxc
Class SxcFilteringOutboundRouter
java.lang.Object
org.mule.routing.AbstractRouter
org.mule.routing.outbound.AbstractOutboundRouter
org.mule.routing.outbound.FilteringOutboundRouter
org.mule.module.sxc.SxcFilteringOutboundRouter
- All Implemented Interfaces:
- MuleContextAware, Disposable, Initialisable, OutboundRouter, Router
public class SxcFilteringOutboundRouter
- extends FilteringOutboundRouter
FilteringRouter
is a router that accepts events based on a filter
set.
Methods inherited from class org.mule.routing.outbound.AbstractOutboundRouter |
createTransactionTemplate, dispatch, getEnableCorrelation, getEndpoint, getEndpoints, getMessageInfoMapping, getReplyTo, getResultsHandler, getTransactionConfig, isDynamicEndpoints, removeEndpoint, send, setEnableCorrelation, setEnableCorrelationAsString, setEndpoints, setMessageInfoMapping, setMessageProperties, setReplyTo, setResultsHandler, setTransactionConfig |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SxcFilteringOutboundRouter
public SxcFilteringOutboundRouter()
setMuleContext
public void setMuleContext(MuleContext context)
- Specified by:
setMuleContext
in interface MuleContextAware
- Overrides:
setMuleContext
in class AbstractRouter
setFilter
public void setFilter(Filter filter)
- Overrides:
setFilter
in class FilteringOutboundRouter
addEventHandlers
protected void addEventHandlers(com.envoisolutions.sxc.xpath.XPathBuilder builder,
Filter filter)
initialize
protected void initialize()
throws Exception
- Throws:
Exception
isMatch
public boolean isMatch(MuleMessage message)
throws RoutingException
- Description copied from interface:
OutboundRouter
- Determines if the event should be processed by this router. Routers can be
selectively invoked by configuring a filter on them. Usually the filter is
applied to the message when calling this method. All core Mule outbound
routers extend the FilteringOutboundRouter router that handles this method
automatically.
- Specified by:
isMatch
in interface OutboundRouter
- Overrides:
isMatch
in class FilteringOutboundRouter
- Parameters:
message
- the current message to evaluate
- Returns:
- true if the event should be processed by this router
- Throws:
RoutingException
- See Also:
SelectiveConsumer
testMatch
public boolean testMatch(MuleMessage message)
throws RoutingException
- Throws:
RoutingException
getXMLStreamReader
protected ReversibleXMLStreamReader getXMLStreamReader(MuleMessage message)
throws TransformerException
- Gets an XMLStreamReader for this message.
- Parameters:
message
-
- Returns:
-
- Throws:
TransformerException
getNamespaces
public Map<String,String> getNamespaces()
setNamespaces
public void setNamespaces(Map<String,String> namespaces)
getCurrentMessage
public static MuleMessage getCurrentMessage()
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.