rabbit.proxy
Class ProxyConnectionAcceptor

java.lang.Object
  extended by rabbit.proxy.ProxyConnectionAcceptor
All Implemented Interfaces:
AcceptorListener

public class ProxyConnectionAcceptor
extends Object
implements AcceptorListener

An acceptor handler that creates proxy client connection

Author:
Robert Olofsson

Constructor Summary
ProxyConnectionAcceptor(int id, HttpProxy proxy)
           
 
Method Summary
 void connectionAccepted(SocketChannel sc)
          A conneciton has been accepted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyConnectionAcceptor

public ProxyConnectionAcceptor(int id,
                               HttpProxy proxy)
Method Detail

connectionAccepted

public void connectionAccepted(SocketChannel sc)
                        throws IOException
Description copied from interface: AcceptorListener
A conneciton has been accepted

Specified by:
connectionAccepted in interface AcceptorListener
Parameters:
sc - the new socket channel, will already be set to non blocking mode
Throws:
IOException