public class FilteringOutboundRouter extends AbstractOutboundRouter implements TransformingMatchable
FilteringRouter is a router that accepts events based on a filter set.ReactiveProcessor.ProcessingType| Modifier and Type | Field and Description |
|---|---|
protected org.mule.runtime.api.el.MuleExpressionLanguage |
expressionManager |
protected TemplateParser |
parser |
initialised, logger, resultsHandler, routes, started, transactionConfigflowConstruct, messagingExceptionHandler, muleContext| Constructor and Description |
|---|
FilteringOutboundRouter() |
| Modifier and Type | Method and Description |
|---|---|
Filter |
getFilter() |
Processor |
getRoute(int index,
Event event)
Will Return the target at the given index and will resolve any template tags on the Endpoint URI if necessary
|
protected Processor |
getTemplateRoute(int index,
Event event) |
List<Transformer> |
getTransformers() |
void |
initialise() |
boolean |
isMatch(Event event,
Event.Builder builder)
Determines if the event should be processed
|
boolean |
isTransformBeforeMatch() |
boolean |
isUseTemplates() |
Event |
route(Event event) |
void |
setFilter(Filter filter) |
void |
setTransformers(List<Transformer> transformers) |
void |
setUseTemplates(boolean useTemplates) |
addRoute, createEventToRoute, dispose, doProcessRoute, getMuleContext, getOwnedMessageProcessors, getResultsHandler, getRouterStatistics, getRoutes, getTransactionConfig, isDynamicRoutes, process, removeRoute, sendRequest, sendRequestEvent, setFlowConstruct, setMessageProcessors, setMuleContext, setResultsHandler, setRouterStatistics, setRoutes, setTransactionConfig, start, stopgetOwnedObjectsgetFlowConstruct, setMessagingExceptionHandlergetAnnotation, getAnnotations, getLocation, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProcessingTypeprotected org.mule.runtime.api.el.MuleExpressionLanguage expressionManager
protected TemplateParser parser
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableinitialise in class AbstractOutboundRouterorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic Event route(Event event) throws RoutingException
route in class AbstractOutboundRouterRoutingExceptionpublic Filter getFilter()
public void setFilter(Filter filter)
public boolean isMatch(Event event, Event.Builder builder) throws org.mule.runtime.api.exception.MuleException
MatchableisMatch in interface Matchableevent - the current event to evaluatebuilder - an event builder in case the filter needs to make changes to the event.org.mule.runtime.api.exception.MuleException - if the event cannot be evaluatedpublic List<Transformer> getTransformers()
public void setTransformers(List<Transformer> transformers)
public Processor getRoute(int index, Event event) throws CouldNotRouteOutboundMessageException
index - the index of the endpoint to getevent - the current event. This is required if template matching is being usedCouldNotRouteOutboundMessageException - if the template causs the endpoint to become illegal or malformedprotected Processor getTemplateRoute(int index, Event event) throws CouldNotRouteOutboundMessageException
public boolean isUseTemplates()
public void setUseTemplates(boolean useTemplates)
public boolean isTransformBeforeMatch()
isTransformBeforeMatch in interface TransformingMatchableCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.