org.mule.module.sxc
Class SxcFilteringOutboundRouter
java.lang.Object
org.mule.routing.outbound.AbstractOutboundRouter
org.mule.routing.outbound.FilteringOutboundRouter
org.mule.module.sxc.SxcFilteringOutboundRouter
- All Implemented Interfaces:
- FlowConstructAware, MuleContextAware, Disposable, Initialisable, Lifecycle, Startable, Stoppable, MessageProcessor, MessageRouter, Matchable, MatchableMessageProcessor, MatchableMessageRouter, OutboundRouter, RouterStatisticsRecorder, TransformingMatchable
public class SxcFilteringOutboundRouter
- extends FilteringOutboundRouter
FilteringRouter
is a router that accepts events based on a filter
set.
Fields inherited from class org.mule.routing.outbound.AbstractOutboundRouter |
enableCorrelation, flowConstruct, initialised, logger, magicProperties, muleContext, replyTo, resultsHandler, routes, started, transactionConfig |
Methods inherited from class org.mule.routing.outbound.AbstractOutboundRouter |
dispose, getEnableCorrelation, getMuleContext, getReplyTo, getResultsHandler, getRoute, getRouterStatistics, getRoutes, getTransactionConfig, isDynamicRoutes, process, propagateMagicProperties, removeRoute, sendRequest, sendRequestEvent, setEnableCorrelation, setEnableCorrelationAsString, setFlowConstruct, setMessageProcessors, setMessageProperties, setReplyTo, setResultsHandler, setRouterStatistics, setRoutes, setTransactionConfig, start, stop |
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 AbstractOutboundRouter
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 java.lang.Exception
- Throws:
java.lang.Exception
isMatch
public boolean isMatch(MuleMessage message)
throws MuleException
- Description copied from interface:
Matchable
- Determines if the event should be processed
- Specified by:
isMatch
in interface Matchable
- Overrides:
isMatch
in class FilteringOutboundRouter
- Returns:
- true if the event should be processed by this router
- Throws:
MuleException
- if the event cannot be evaluated
testMatch
public boolean testMatch(MuleMessage message)
throws MuleException
- Throws:
MuleException
getXMLStreamReader
protected ReversibleXMLStreamReader getXMLStreamReader(MuleMessage message)
throws TransformerException
- Gets an XMLStreamReader for this message.
- Parameters:
message
-
- Throws:
TransformerException
getNamespaces
public java.util.Map<java.lang.String,java.lang.String> getNamespaces()
setNamespaces
public void setNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)
getCurrentMessage
public static MuleMessage getCurrentMessage()
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.