Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mule.routing
Class AbstractMatchingRouter

    java.lang.Object
      org.mule.routing.AbstractMatchingRouter

All Implemented Interfaces:
  MessageProcessor, MatchingRouter

    public class AbstractMatchingRouter

extends Object
implements MatchingRouter

`AbstractRouterCollection` provides common method implementations of router collections for in and outbound routers.

Field Summary
`protected MessageProcessor` | `defaultRoute`
`protected Log` | `logger` logger used by this class
`protected List<MatchableMessageProcessor>` | `matchableRoutes`
`protected boolean` | `matchAll`

Constructor Summary
`AbstractMatchingRouter()`

Method Summary
`void` | `addRoute(MatchableMessageProcessor matchable)`
`void` | `dispose()`
`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` | `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

### logger

    protected final transient Log logger

  logger used by this class

### matchableRoutes

    protected List<MatchableMessageProcessor> matchableRoutes

### matchAll

    protected boolean matchAll

### defaultRoute

    protected MessageProcessor defaultRoute

Constructor Detail

### AbstractMatchingRouter

    public AbstractMatchingRouter()

Method Detail

### process

    public MuleEvent process(MuleEvent event)
                      throws MuleException

  Description copied from interface: `MessageProcessor`
  Invokes the MessageProcessor.

  Specified by:
    `process` in interface `MessageProcessor`
  Parameters:
    `event` - MuleEvent to be processed
  Returns:
    optional response MuleEvent
  Throws:
    `MuleException`

### processDefaultRoute

    protected MuleEvent processDefaultRoute(MuleEvent event)
                                     throws MuleException

  Throws:
    `MuleException`

### isMatchAll

    public boolean isMatchAll()

### setMatchAll

    public void setMatchAll(boolean matchAll)

### addRoute

    public void addRoute(MatchableMessageProcessor matchable)

  Specified by:
    `addRoute` in interface `MatchingRouter`

### removeRoute

    public void removeRoute(MatchableMessageProcessor matchable)

  Specified by:
    `removeRoute` in interface `MatchingRouter`

### setDefaultRoute

    public void setDefaultRoute(MessageProcessor defaultRoute)

### getRoutes

    public List<MatchableMessageProcessor> getRoutes()

### getDefaultRoute

    public MessageProcessor getDefaultRoute()

### initialise

    public void initialise()
                    throws InitialisationException

  Throws:
    `InitialisationException`

### dispose

    public void dispose()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.