Package com.biglybt.core.proxy.impl
Class AEPluginProxyHandler.PluginProxyImpl
- java.lang.Object
-
- com.biglybt.core.proxy.impl.AEPluginProxyHandler.PluginProxyImpl
-
- All Implemented Interfaces:
AEProxyFactory.PluginProxy
- Enclosing class:
- AEPluginProxyHandler
private static class AEPluginProxyHandler.PluginProxyImpl extends java.lang.Object implements AEProxyFactory.PluginProxy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.biglybt.core.proxy.AEProxyFactory.PluginProxy
AEProxyFactory.PluginProxy.PluginProxyStatusListener
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<AEPluginProxyHandler.PluginProxyImpl>
children
private long
create_time
private IPCInterface
ipc
private CopyOnWriteList<AEProxyFactory.PluginProxy.PluginProxyStatusListener>
listeners
private java.lang.Object[]
proxy_details
private java.util.Map<java.lang.String,java.lang.Object>
proxy_options
private java.lang.String
reason
private int
status
private java.lang.String
target
-
Fields inherited from interface com.biglybt.core.proxy.AEProxyFactory.PluginProxy
ST_BAD, ST_OK, ST_UNKNOWN
-
-
Constructor Summary
Constructors Modifier Constructor Description private
PluginProxyImpl(java.lang.String _target, java.lang.String _reason, IPCInterface _ipc, java.util.Map<java.lang.String,java.lang.Object> _proxy_options, java.lang.Object[] _proxy_details)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(AEProxyFactory.PluginProxy.PluginProxyStatusListener l)
AEProxyFactory.PluginProxy
getChildProxy(java.lang.String child_reason, java.net.URL url)
boolean
getConnected()
java.lang.Throwable
getError()
java.lang.String
getHost()
int
getPort()
java.net.Proxy
getProxy()
int
getStatus()
java.lang.String
getTarget()
java.net.URL
getURL()
java.lang.String
getURLHostRewrite()
void
setOK(boolean good)
-
-
-
Field Detail
-
create_time
private final long create_time
-
target
private final java.lang.String target
-
reason
private final java.lang.String reason
-
ipc
private final IPCInterface ipc
-
proxy_options
private final java.util.Map<java.lang.String,java.lang.Object> proxy_options
-
proxy_details
private final java.lang.Object[] proxy_details
-
children
private final java.util.List<AEPluginProxyHandler.PluginProxyImpl> children
-
status
private volatile int status
-
listeners
private CopyOnWriteList<AEProxyFactory.PluginProxy.PluginProxyStatusListener> listeners
-
-
Constructor Detail
-
PluginProxyImpl
private PluginProxyImpl(java.lang.String _target, java.lang.String _reason, IPCInterface _ipc, java.util.Map<java.lang.String,java.lang.Object> _proxy_options, java.lang.Object[] _proxy_details)
-
-
Method Detail
-
getTarget
public java.lang.String getTarget()
- Specified by:
getTarget
in interfaceAEProxyFactory.PluginProxy
-
getChildProxy
public AEProxyFactory.PluginProxy getChildProxy(java.lang.String child_reason, java.net.URL url)
- Specified by:
getChildProxy
in interfaceAEProxyFactory.PluginProxy
-
getProxy
public java.net.Proxy getProxy()
- Specified by:
getProxy
in interfaceAEProxyFactory.PluginProxy
-
getURL
public java.net.URL getURL()
- Specified by:
getURL
in interfaceAEProxyFactory.PluginProxy
-
getURLHostRewrite
public java.lang.String getURLHostRewrite()
- Specified by:
getURLHostRewrite
in interfaceAEProxyFactory.PluginProxy
-
getHost
public java.lang.String getHost()
- Specified by:
getHost
in interfaceAEProxyFactory.PluginProxy
-
getPort
public int getPort()
- Specified by:
getPort
in interfaceAEProxyFactory.PluginProxy
-
getError
public java.lang.Throwable getError()
- Specified by:
getError
in interfaceAEProxyFactory.PluginProxy
-
getConnected
public boolean getConnected()
- Specified by:
getConnected
in interfaceAEProxyFactory.PluginProxy
-
setOK
public void setOK(boolean good)
- Specified by:
setOK
in interfaceAEProxyFactory.PluginProxy
-
getStatus
public int getStatus()
- Specified by:
getStatus
in interfaceAEProxyFactory.PluginProxy
-
addListener
public void addListener(AEProxyFactory.PluginProxy.PluginProxyStatusListener l)
- Specified by:
addListener
in interfaceAEProxyFactory.PluginProxy
-
-