com.aelitis.azureus.core.proxy.socks.impl
Class AESocksProxyConnectionImpl

java.lang.Object
  extended by com.aelitis.azureus.core.proxy.socks.impl.AESocksProxyConnectionImpl
All Implemented Interfaces:
AEProxyConnectionListener, AESocksProxyConnection

public class AESocksProxyConnectionImpl
extends Object
implements AESocksProxyConnection, AEProxyConnectionListener

Author:
parg

Field Summary
static boolean TRACE
           
 
Constructor Summary
protected AESocksProxyConnectionImpl(AESocksProxyImpl _proxy, AESocksProxyPlugableConnectionFactory _connection_factory, AEProxyConnection _connection)
           
 
Method Summary
 boolean areDNSLookupsEnabled()
           
 void close()
           
 void connected()
           
 void connectionClosed(AEProxyConnection con)
           
 void disableDNSLookups()
           
 void enableDNSLookups()
           
 AEProxyConnection getConnection()
           
protected  AEProxyState getInitialState()
           
protected  String getName()
           
 String getPassword()
           
 AESocksProxy getProxy()
           
 String getUsername()
           
 boolean isClosed()
           
 void setDelegate(AESocksProxyPlugableConnection target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRACE

public static final boolean TRACE
See Also:
Constant Field Values
Constructor Detail

AESocksProxyConnectionImpl

protected AESocksProxyConnectionImpl(AESocksProxyImpl _proxy,
                                     AESocksProxyPlugableConnectionFactory _connection_factory,
                                     AEProxyConnection _connection)
                              throws IOException
Throws:
IOException
Method Detail

getProxy

public AESocksProxy getProxy()
Specified by:
getProxy in interface AESocksProxyConnection

setDelegate

public void setDelegate(AESocksProxyPlugableConnection target)
Specified by:
setDelegate in interface AESocksProxyConnection

getName

protected String getName()

getUsername

public String getUsername()
Specified by:
getUsername in interface AESocksProxyConnection

getPassword

public String getPassword()
Specified by:
getPassword in interface AESocksProxyConnection

getInitialState

protected AEProxyState getInitialState()

connectionClosed

public void connectionClosed(AEProxyConnection con)
Specified by:
connectionClosed in interface AEProxyConnectionListener

isClosed

public boolean isClosed()
Specified by:
isClosed in interface AESocksProxyConnection

getConnection

public AEProxyConnection getConnection()
Specified by:
getConnection in interface AESocksProxyConnection

disableDNSLookups

public void disableDNSLookups()
Specified by:
disableDNSLookups in interface AESocksProxyConnection

enableDNSLookups

public void enableDNSLookups()
Specified by:
enableDNSLookups in interface AESocksProxyConnection

areDNSLookupsEnabled

public boolean areDNSLookupsEnabled()
Specified by:
areDNSLookupsEnabled in interface AESocksProxyConnection

close

public void close()
           throws IOException
Specified by:
close in interface AESocksProxyConnection
Throws:
IOException

connected

public void connected()
               throws IOException
Specified by:
connected in interface AESocksProxyConnection
Throws:
IOException