com.aelitis.azureus.core.proxy.impl
Class AEProxySelectorImpl

java.lang.Object
  extended by java.net.ProxySelector
      extended by com.aelitis.azureus.core.proxy.impl.AEProxySelectorImpl
All Implemented Interfaces:
AEProxySelector

public class AEProxySelectorImpl
extends ProxySelector
implements AEProxySelector


Method Summary
 void connectFailed(Proxy proxy, Throwable error)
           
 void connectFailed(URI uri, SocketAddress sa, IOException ioe)
           
 void endNoProxy()
           
 Proxy getActiveProxy()
           
 int getConnectionCount()
           
 int getFailCount()
           
 String getInfo()
           
 long getLastConnectionTime()
           
 long getLastFailTime()
           
static AEProxySelector getSingleton()
           
 Proxy getSOCKSProxy(InetSocketAddress isa, InetSocketAddress target)
           
 Proxy getSOCKSProxy(String host, int port, InetSocketAddress target)
           
 Proxy removeProxy(InetSocketAddress address)
           
 List<Proxy> select(URI uri)
           
 Proxy setProxy(InetSocketAddress address, Proxy proxy)
           
 void startNoProxy()
           
 
Methods inherited from class java.net.ProxySelector
getDefault, setDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSingleton

public static AEProxySelector getSingleton()

startNoProxy

public void startNoProxy()
Specified by:
startNoProxy in interface AEProxySelector

endNoProxy

public void endNoProxy()
Specified by:
endNoProxy in interface AEProxySelector

setProxy

public Proxy setProxy(InetSocketAddress address,
                      Proxy proxy)
Specified by:
setProxy in interface AEProxySelector

removeProxy

public Proxy removeProxy(InetSocketAddress address)
Specified by:
removeProxy in interface AEProxySelector

select

public List<Proxy> select(URI uri)
Specified by:
select in class ProxySelector

connectFailed

public void connectFailed(URI uri,
                          SocketAddress sa,
                          IOException ioe)
Specified by:
connectFailed in class ProxySelector

getSOCKSProxy

public Proxy getSOCKSProxy(String host,
                           int port,
                           InetSocketAddress target)
Specified by:
getSOCKSProxy in interface AEProxySelector

getSOCKSProxy

public Proxy getSOCKSProxy(InetSocketAddress isa,
                           InetSocketAddress target)
Specified by:
getSOCKSProxy in interface AEProxySelector

getActiveProxy

public Proxy getActiveProxy()
Specified by:
getActiveProxy in interface AEProxySelector

connectFailed

public void connectFailed(Proxy proxy,
                          Throwable error)
Specified by:
connectFailed in interface AEProxySelector

getLastConnectionTime

public long getLastConnectionTime()
Specified by:
getLastConnectionTime in interface AEProxySelector

getLastFailTime

public long getLastFailTime()
Specified by:
getLastFailTime in interface AEProxySelector

getConnectionCount

public int getConnectionCount()
Specified by:
getConnectionCount in interface AEProxySelector

getFailCount

public int getFailCount()
Specified by:
getFailCount in interface AEProxySelector

getInfo

public String getInfo()
Specified by:
getInfo in interface AEProxySelector