Package com.biglybt.core.proxy
Class AEProxyFactory
- java.lang.Object
-
- com.biglybt.core.proxy.AEProxyFactory
-
public class AEProxyFactory extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AEProxyFactory.PluginHTTPProxy
static interface
AEProxyFactory.PluginProxy
static class
AEProxyFactory.UnknownHostException
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DP_DOWNLOAD
static java.lang.String
DP_NETWORKS
static java.lang.String
PO_EXPLICIT_BIND
static java.lang.String
PO_LOCAL_PORT
static java.lang.String
PO_PEER_NETWORKS
static java.lang.String
SP_HOST
static java.lang.String
SP_PORT
-
Constructor Summary
Constructors Constructor Description AEProxyFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.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 AEProxyFactory.PluginProxy
getPluginProxy(java.net.Proxy proxy)
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 void
initialise(Core core)
static boolean
isPluginProxy(java.net.SocketAddress address)
static java.lang.Boolean
testPluginHTTPProxy(java.net.URL target, boolean can_wait, java.lang.String reason)
-
-
-
Field Detail
-
PO_PEER_NETWORKS
public static final java.lang.String PO_PEER_NETWORKS
- See Also:
- Constant Field Values
-
PO_LOCAL_PORT
public static final java.lang.String PO_LOCAL_PORT
- See Also:
- Constant Field Values
-
PO_EXPLICIT_BIND
public static final java.lang.String PO_EXPLICIT_BIND
- 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
-
-
Method Detail
-
initialise
public static void initialise(Core core)
-
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, java.lang.String reason)
-
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)
-
-