com.aelitis.azureus.core.proxy
Class AEProxyFactory

java.lang.Object
  extended by com.aelitis.azureus.core.proxy.AEProxyFactory

public class AEProxyFactory
extends Object

Author:
parg

Nested Class Summary
static interface AEProxyFactory.PluginHTTPProxy
           
static interface AEProxyFactory.PluginProxy
           
static class AEProxyFactory.UnknownHostException
           
 
Field Summary
static String DP_DOWNLOAD
           
static String DP_NETWORKS
           
static String PO_PEER_NETWORKS
           
static String SP_HOST
           
static String SP_PORT
           
 
Constructor Summary
AEProxyFactory()
           
 
Method Summary
static AEProxy create(int port, long connect_timeout, long read_timeout, AEProxyHandler state_factory)
           
static AEProxyAddressMapper getAddressMapper()
           
static DHTPluginInterface getPluginDHTProxy(String reason, String network, Map<String,Object> options)
           
static AEProxyFactory.PluginHTTPProxy getPluginHTTPProxy(String reason, URL target, boolean can_wait)
           
static List<PluginInterface> getPluginHTTPProxyProviders(boolean can_wait)
           
static AEProxyFactory.PluginProxy getPluginProxy(Proxy proxy)
           
static AEProxyFactory.PluginProxy getPluginProxy(String reason, String host, int port)
           
static AEProxyFactory.PluginProxy getPluginProxy(String reason, String host, int port, Map<String,Object> proxy_options)
           
static AEProxyFactory.PluginProxy getPluginProxy(String reason, URL target)
           
static AEProxyFactory.PluginProxy getPluginProxy(String reason, URL target, boolean can_wait)
           
static AEProxyFactory.PluginProxy getPluginProxy(String reason, URL target, Map<String,Object> proxy_options, boolean can_wait)
           
static Map<String,Object> getPluginServerProxy(String reason, String network, String server_uid, Map<String,Object> options)
           
static boolean hasPluginProxy()
           
static boolean isPluginProxy(SocketAddress address)
           
static Boolean testPluginHTTPProxy(URL target, boolean can_wait)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PO_PEER_NETWORKS

public static final String PO_PEER_NETWORKS
See Also:
Constant Field Values

SP_HOST

public static final String SP_HOST
See Also:
Constant Field Values

SP_PORT

public static final String SP_PORT
See Also:
Constant Field Values

DP_DOWNLOAD

public static final String DP_DOWNLOAD
See Also:
Constant Field Values

DP_NETWORKS

public static final String DP_NETWORKS
See Also:
Constant Field Values
Constructor Detail

AEProxyFactory

public AEProxyFactory()
Method Detail

create

public static AEProxy create(int port,
                             long connect_timeout,
                             long read_timeout,
                             AEProxyHandler state_factory)
                      throws AEProxyException
Parameters:
port - 0 = free port
connect_timeout - 0 = no timeout
read_timeout - 0 = no timeout
Returns:
Throws:
AEProxyException

getAddressMapper

public static AEProxyAddressMapper getAddressMapper()

getPluginProxy

public static AEProxyFactory.PluginProxy getPluginProxy(String reason,
                                                        URL target)

getPluginProxy

public static AEProxyFactory.PluginProxy getPluginProxy(String reason,
                                                        URL target,
                                                        boolean can_wait)

getPluginProxy

public static AEProxyFactory.PluginProxy getPluginProxy(String reason,
                                                        URL target,
                                                        Map<String,Object> proxy_options,
                                                        boolean can_wait)

getPluginProxy

public static AEProxyFactory.PluginProxy getPluginProxy(String reason,
                                                        String host,
                                                        int port)

getPluginProxy

public static AEProxyFactory.PluginProxy getPluginProxy(String reason,
                                                        String host,
                                                        int port,
                                                        Map<String,Object> proxy_options)

getPluginProxy

public static AEProxyFactory.PluginProxy getPluginProxy(Proxy proxy)

isPluginProxy

public static boolean isPluginProxy(SocketAddress address)

testPluginHTTPProxy

public static Boolean testPluginHTTPProxy(URL target,
                                          boolean can_wait)

getPluginHTTPProxy

public static AEProxyFactory.PluginHTTPProxy getPluginHTTPProxy(String reason,
                                                                URL target,
                                                                boolean can_wait)

getPluginHTTPProxyProviders

public static List<PluginInterface> getPluginHTTPProxyProviders(boolean can_wait)

hasPluginProxy

public static boolean hasPluginProxy()

getPluginServerProxy

public static Map<String,Object> getPluginServerProxy(String reason,
                                                      String network,
                                                      String server_uid,
                                                      Map<String,Object> options)

getPluginDHTProxy

public static DHTPluginInterface getPluginDHTProxy(String reason,
                                                   String network,
                                                   Map<String,Object> options)