com.aelitis.azureus.core.proxy
Class AEProxyFactory
java.lang.Object
com.aelitis.azureus.core.proxy.AEProxyFactory
public class AEProxyFactory
- extends Object
- Author:
- parg
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 |
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
AEProxyFactory
public AEProxyFactory()
create
public static AEProxy create(int port,
long connect_timeout,
long read_timeout,
AEProxyHandler state_factory)
throws AEProxyException
- Parameters:
port
- 0 = free portconnect_timeout
- 0 = no timeoutread_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)