01: /*
02: * $Id: InboundRouterCollection.java 10961 2008-02-22 19:01:02Z dfeist $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
10:
11: package org.mule.api.routing;
12:
13: import org.mule.api.MessagingException;
14: import org.mule.api.MuleEvent;
15: import org.mule.api.MuleMessage;
16: import org.mule.api.endpoint.InboundEndpoint;
17:
18: import java.util.List;
19:
20: /**
21: * <code>DefaultInboundRouterCollection</code> manages a collection of inbound routers.
22: */
23:
24: public interface InboundRouterCollection extends RouterCollection {
25: MuleMessage route(MuleEvent event) throws MessagingException;
26:
27: void addRouter(InboundRouter router);
28:
29: InboundRouter removeRouter(InboundRouter router);
30:
31: void addEndpoint(InboundEndpoint endpoint);
32:
33: boolean removeEndpoint(InboundEndpoint endpoint);
34:
35: List getEndpoints();
36:
37: /**
38: * @param name the Endpoint identifier
39: * @return the Endpoint or null if the endpointUri is not registered
40: * @see InboundRouterCollection
41: */
42: InboundEndpoint getEndpoint(String name);
43:
44: void setEndpoints(List endpoints);
45: }
|