com.aelitis.azureus.core.proxy
Class AEProxyFactory
java.lang.Object
com.aelitis.azureus.core.proxy.AEProxyFactory
public class AEProxyFactory
- extends java.lang.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(java.lang.String reason,
java.lang.String network,
java.util.Map<java.lang.String,java.lang.Object> options)
|
static AEProxyFactory.PluginHTTPProxy |
getPluginHTTPProxy(java.lang.String reason,
java.net.URL target,
boolean can_wait)
|
static java.util.List<PluginInterface> |
getPluginHTTPProxyProviders(boolean can_wait)
|
static AEProxyFactory.PluginProxy |
getPluginProxy(java.net.Proxy proxy)
|
static AEProxyFactory.PluginProxy |
getPluginProxy(java.lang.String reason,
java.lang.String host,
int port)
|
static AEProxyFactory.PluginProxy |
getPluginProxy(java.lang.String reason,
java.lang.String host,
int port,
java.util.Map<java.lang.String,java.lang.Object> proxy_options)
|
static AEProxyFactory.PluginProxy |
getPluginProxy(java.lang.String reason,
java.net.URL target)
|
static AEProxyFactory.PluginProxy |
getPluginProxy(java.lang.String reason,
java.net.URL target,
boolean can_wait)
|
static AEProxyFactory.PluginProxy |
getPluginProxy(java.lang.String reason,
java.net.URL target,
java.util.Map<java.lang.String,java.lang.Object> proxy_options,
boolean can_wait)
|
static java.util.Map<java.lang.String,java.lang.Object> |
getPluginServerProxy(java.lang.String reason,
java.lang.String network,
java.lang.String server_uid,
java.util.Map<java.lang.String,java.lang.Object> options)
|
static boolean |
hasPluginProxy()
|
static boolean |
isPluginProxy(java.net.SocketAddress address)
|
static java.lang.Boolean |
testPluginHTTPProxy(java.net.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 java.lang.String PO_PEER_NETWORKS
- See Also:
- Constant Field Values
SP_HOST
public static final java.lang.String SP_HOST
- See Also:
- Constant Field Values
SP_PORT
public static final java.lang.String SP_PORT
- See Also:
- Constant Field Values
DP_DOWNLOAD
public static final java.lang.String DP_DOWNLOAD
- See Also:
- Constant Field Values
DP_NETWORKS
public static final java.lang.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(java.lang.String reason,
java.net.URL target)
getPluginProxy
public static AEProxyFactory.PluginProxy getPluginProxy(java.lang.String reason,
java.net.URL target,
boolean can_wait)
getPluginProxy
public static AEProxyFactory.PluginProxy getPluginProxy(java.lang.String reason,
java.net.URL target,
java.util.Map<java.lang.String,java.lang.Object> proxy_options,
boolean can_wait)
getPluginProxy
public static AEProxyFactory.PluginProxy getPluginProxy(java.lang.String reason,
java.lang.String host,
int port)
getPluginProxy
public static AEProxyFactory.PluginProxy getPluginProxy(java.lang.String reason,
java.lang.String host,
int port,
java.util.Map<java.lang.String,java.lang.Object> proxy_options)
getPluginProxy
public static AEProxyFactory.PluginProxy getPluginProxy(java.net.Proxy proxy)
isPluginProxy
public static boolean isPluginProxy(java.net.SocketAddress address)
testPluginHTTPProxy
public static java.lang.Boolean testPluginHTTPProxy(java.net.URL target,
boolean can_wait)
getPluginHTTPProxy
public static AEProxyFactory.PluginHTTPProxy getPluginHTTPProxy(java.lang.String reason,
java.net.URL target,
boolean can_wait)
getPluginHTTPProxyProviders
public static java.util.List<PluginInterface> getPluginHTTPProxyProviders(boolean can_wait)
hasPluginProxy
public static boolean hasPluginProxy()
getPluginServerProxy
public static java.util.Map<java.lang.String,java.lang.Object> getPluginServerProxy(java.lang.String reason,
java.lang.String network,
java.lang.String server_uid,
java.util.Map<java.lang.String,java.lang.Object> options)
getPluginDHTProxy
public static DHTPluginInterface getPluginDHTProxy(java.lang.String reason,
java.lang.String network,
java.util.Map<java.lang.String,java.lang.Object> options)