DefaultRouter.java :  » Messenger » smslib » org » smslib » routing » Java Open Source

Java Open Source » Messenger » smslib 
smslib » org » smslib » routing » DefaultRouter.java
/**
 * 
 */
package org.smslib.routing;

import java.util.Collection;

import org.smslib.AGateway;
import org.smslib.OutboundMessage;

/**
 * Default Router implementation which actually doesn't perform any custom routing, instead relies on basic routing of ARouter.
 * 
 * @author Bassam Al-Sarori
 *
 */
public class DefaultRouter extends ARouter {

  /* (non-Javadoc)
   * @see org.smslib.routing.ARouter#route(org.smslib.OutboundMessage, java.util.Collection)
   */
  @Override
  public Collection<AGateway> customRoute(OutboundMessage msg,
      Collection<AGateway> gateways) {
    
    return gateways;
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.