1 20 package org.apache.mina.common.support; 21 22 import java.io.IOException ; 23 import java.net.SocketAddress ; 24 25 import org.apache.mina.common.IoAcceptor; 26 import org.apache.mina.common.IoHandler; 27 import org.apache.mina.common.IoSession; 28 29 35 public abstract class BaseIoAcceptor extends BaseIoService implements 36 IoAcceptor { 37 protected BaseIoAcceptor() { 38 } 39 40 public void bind(SocketAddress address, IoHandler handler) 41 throws IOException { 42 this.bind(address, handler, getDefaultConfig()); 43 } 44 45 public IoSession newSession(SocketAddress remoteAddress, 46 SocketAddress localAddress) { 47 throw new UnsupportedOperationException (); 48 } 49 } 50 | Popular Tags |