org.siebengeisslein.net
Class ConnectionHandler

java.lang.Object
  extended by org.siebengeisslein.util.HasLog
      extended by org.siebengeisslein.net.ConnectionHandler

public class ConnectionHandler
extends HasLog


Constructor Summary
ConnectionHandler(int port, Server server, MessageDispatcher dispatcher, Authenticator authenticator)
           
 
Method Summary
 void close()
           
protected  java.nio.channels.Selector getSelector(int port)
           
protected  void readDataFromSocket(java.nio.channels.SelectionKey key)
           
protected  void setServerChannel(java.nio.channels.ServerSocketChannel serverChannel)
           
 
Methods inherited from class org.siebengeisslein.util.HasLog
getLog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionHandler

public ConnectionHandler(int port,
                         Server server,
                         MessageDispatcher dispatcher,
                         Authenticator authenticator)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

setServerChannel

protected void setServerChannel(java.nio.channels.ServerSocketChannel serverChannel)

getSelector

protected java.nio.channels.Selector getSelector(int port)
                                          throws java.io.IOException
Throws:
java.io.IOException

readDataFromSocket

protected void readDataFromSocket(java.nio.channels.SelectionKey key)
                           throws java.io.IOException
Throws:
java.io.IOException

close

public void close()