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.com5 *6 * The software in this package is published under the terms of the MuleSource MPL7 * license, a copy of which has been included with this distribution in the8 * 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 ;19 20 /**21 * <code>InboundRouterCollection</code> manages a collection of inbound routers22 * 23 * @author <a HREF="mailto:ross.mason@symphonysoft.com">Ross Mason</a>24 * @version $Revision: 3798 $25 */26 27 public interface UMOInboundMessageRouter extends UMORouterCollection28 {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 getEndpoints();40 41 /**42 * @param name the Endpoint identifier43 * @return the Endpoint or null if the endpointUri is not registered44 * @see UMOInboundMessageRouter45 */46 UMOEndpoint getEndpoint(String name);47 48 void setEndpoints(List endpoints);49 }50