|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.routing.AbstractMatchingRouter
public class AbstractMatchingRouter
AbstractRouterCollection provides common method implementations of router collections for in
and outbound routers.
| Field Summary | |
|---|---|
protected MessageProcessor |
defaultRoute
|
protected org.apache.commons.logging.Log |
logger
logger used by this class |
protected List<MatchableMessageProcessor> |
matchableRoutes
|
protected boolean |
matchAll
|
| Fields inherited from interface org.mule.api.AnnotatedObject |
|---|
PROPERTY_NAME |
| Constructor Summary | |
|---|---|
AbstractMatchingRouter()
|
|
| Method Summary | |
|---|---|
void |
addRoute(MatchableMessageProcessor matchable)
|
void |
dispose()
|
Object |
getAnnotation(QName name)
Gets the value of specified annotation. |
Map<QName,Object> |
getAnnotations()
Gets all annotations. |
MessageProcessor |
getDefaultRoute()
|
List<MatchableMessageProcessor> |
getRoutes()
|
void |
initialise()
|
boolean |
isMatchAll()
|
MuleEvent |
process(MuleEvent event)
Invokes the MessageProcessor. |
protected MuleEvent |
processDefaultRoute(MuleEvent event)
|
void |
removeRoute(MatchableMessageProcessor matchable)
|
void |
setAnnotations(Map<QName,Object> newAnnotations)
Sets annotations to the object. |
void |
setDefaultRoute(MessageProcessor defaultRoute)
|
void |
setMatchAll(boolean matchAll)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final transient org.apache.commons.logging.Log logger
protected List<MatchableMessageProcessor> matchableRoutes
protected boolean matchAll
protected MessageProcessor defaultRoute
| Constructor Detail |
|---|
public AbstractMatchingRouter()
| Method Detail |
|---|
public MuleEvent process(MuleEvent event)
throws MuleException
MessageProcessor
process in interface MessageProcessorevent - MuleEvent to be processed
MuleException
protected MuleEvent processDefaultRoute(MuleEvent event)
throws MuleException
MuleExceptionpublic boolean isMatchAll()
public void setMatchAll(boolean matchAll)
public void addRoute(MatchableMessageProcessor matchable)
addRoute in interface MatchingRouterpublic void removeRoute(MatchableMessageProcessor matchable)
removeRoute in interface MatchingRouterpublic void setDefaultRoute(MessageProcessor defaultRoute)
public List<MatchableMessageProcessor> getRoutes()
public MessageProcessor getDefaultRoute()
public void initialise()
throws InitialisationException
InitialisationExceptionpublic void dispose()
public final Object getAnnotation(QName name)
AnnotatedObject
getAnnotation in interface AnnotatedObjectpublic final Map<QName,Object> getAnnotations()
AnnotatedObject
getAnnotations in interface AnnotatedObjectpublic final void setAnnotations(Map<QName,Object> newAnnotations)
AnnotatedObject
setAnnotations in interface AnnotatedObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||