KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > umo > routing > UMOInboundMessageRouter


1 /*
2  * $Id: UMOInboundMessageRouter.java 3798 2006-11-04 04:07:14Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.umo.routing;
12
13 import org.mule.umo.MessagingException;
14 import org.mule.umo.UMOEvent;
15 import org.mule.umo.UMOMessage;
16 import org.mule.umo.endpoint.UMOEndpoint;
17
18 import java.util.List JavaDoc;
19
20 /**
21  * <code>InboundRouterCollection</code> manages a collection of inbound routers
22  *
23  * @author <a HREF="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
24  * @version $Revision: 3798 $
25  */

26
27 public interface UMOInboundMessageRouter extends UMORouterCollection
28 {
29     UMOMessage route(UMOEvent event) throws MessagingException;
30
31     void addRouter(UMOInboundRouter router);
32
33     UMOInboundRouter removeRouter(UMOInboundRouter router);
34
35     void addEndpoint(UMOEndpoint endpoint);
36
37     boolean removeEndpoint(UMOEndpoint endpoint);
38
39     List JavaDoc getEndpoints();
40
41     /**
42      * @param name the Endpoint identifier
43      * @return the Endpoint or null if the endpointUri is not registered
44      * @see UMOInboundMessageRouter
45      */

46     UMOEndpoint getEndpoint(String JavaDoc name);
47
48     void setEndpoints(List JavaDoc endpoints);
49 }
50
Popular Tags