nu.najt.kecon.jsocksproxy
Class SocksImplementationFactory

java.lang.Object
  extended by nu.najt.kecon.jsocksproxy.SocksImplementationFactory

public class SocksImplementationFactory
extends java.lang.Object

The SocksImplementationFactory return a SocksImplementation depending on what the client request to use. Current supported versions are v4 and v5.

Author:
Kenny Colliander Nordin

Constructor Summary
SocksImplementationFactory()
           
 
Method Summary
static SocksImplementation getSocksServer(JSocksProxy jSocksProxy, java.net.Socket socket)
          Return a SOCKS implementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocksImplementationFactory

public SocksImplementationFactory()
Method Detail

getSocksServer

public static final SocksImplementation getSocksServer(JSocksProxy jSocksProxy,
                                                       java.net.Socket socket)
                                                throws java.io.IOException
Return a SOCKS implementation

Parameters:
socket - the incoming socket
Returns:
SOCKS implementation
Throws:
java.io.IOException