|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aelitis.azureus.core.versioncheck.VersionCheckClient
public class VersionCheckClient
Client for checking version information from a remote server.
Field Summary | |
---|---|
static java.lang.String |
AZ_MSG_SERVER_ADDRESS_V6
|
static java.lang.String |
HTTP_SERVER_ADDRESS_V4
|
static java.lang.String |
HTTP_SERVER_ADDRESS_V6
|
static int |
HTTP_SERVER_PORT
|
static java.lang.String |
REASON_CHECK_SWT
|
static java.lang.String |
REASON_DHT_BOOTSTRAP
|
static java.lang.String |
REASON_DHT_ENABLE_ALLOWED
|
static java.lang.String |
REASON_DHT_EXTENDED_ALLOWED
|
static java.lang.String |
REASON_DHT_FLAGS
|
static java.lang.String |
REASON_EXTERNAL_IP
|
static java.lang.String |
REASON_PLUGIN_UPDATE
|
static java.lang.String |
REASON_RECOMMENDED_PLUGINS
|
static java.lang.String |
REASON_SECONDARY_CHECK
|
static java.lang.String |
REASON_UPDATE_CHECK_PERIODIC
|
static java.lang.String |
REASON_UPDATE_CHECK_START
|
static java.lang.String |
TCP_SERVER_ADDRESS_V4
|
static java.lang.String |
TCP_SERVER_ADDRESS_V6
|
static int |
TCP_SERVER_PORT
|
static java.lang.String |
UDP_SERVER_ADDRESS_V4
|
static java.lang.String |
UDP_SERVER_ADDRESS_V6
|
static int |
UDP_SERVER_PORT
|
Method Summary | |
---|---|
void |
addVersionCheckClientListener(boolean triggerStartListener,
VersionCheckClientListener l)
|
void |
clearCache()
|
static java.util.Map<java.lang.String,java.lang.Object> |
constructVersionCheckMessage(java.lang.String reason)
Construct the default version check message. |
boolean |
DHTEnableAllowed()
Is the DHT plugin allowed to be enabled. |
boolean |
DHTExtendedUseAllowed()
Is the DHT allowed to be used by external plugins. |
java.util.Set<java.lang.String> |
getAutoInstallPluginIDs()
|
long |
getCacheTime(boolean v6)
|
java.util.Map<java.lang.String,java.lang.Object> |
getCountryInfo()
|
java.util.List<java.net.InetSocketAddress> |
getDHTBootstrap(boolean ipv4)
|
byte |
getDHTFlags()
|
java.util.Set<java.lang.String> |
getDisabledPluginIDs()
|
java.lang.String |
getExternalIpAddress(boolean only_if_cached,
boolean v6)
Get the ip address seen by the version check server. |
java.lang.String |
getExternalIpAddress(boolean only_if_cached,
boolean v6,
boolean force)
|
java.net.InetAddress |
getExternalIpAddressHTTP(boolean v6)
|
java.net.InetAddress |
getExternalIpAddressTCP(java.net.InetAddress bind_ip,
int bind_port,
boolean v6)
|
java.net.InetAddress |
getExternalIpAddressUDP(java.net.InetAddress bind_ip,
int bind_port,
boolean v6)
|
long |
getFeatureFlags()
|
protected java.lang.String |
getHost(boolean v6,
java.lang.String v6_address,
java.lang.String v4_address)
|
java.lang.String |
getHTTPGetString(boolean for_proxy,
boolean v6)
|
java.util.Map |
getMostRecentVersionCheckData()
|
java.lang.String[] |
getRecommendedPlugins()
|
static VersionCheckClient |
getSingleton()
Get the singleton instance of the version check client. |
java.util.Map |
getVersionCheckInfo(java.lang.String reason)
Get the version check reply info. |
java.util.Map |
getVersionCheckInfo(java.lang.String reason,
int address_type)
|
protected java.util.Map |
getVersionCheckInfoSupport(java.lang.String reason,
boolean only_if_cached,
boolean force,
boolean v6)
|
void |
initialise()
|
static void |
main(java.lang.String[] args)
|
protected void |
preProcessReply(java.util.Map reply,
boolean v6)
|
void |
removeVersionCheckClientListener(VersionCheckClientListener l)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String REASON_UPDATE_CHECK_START
public static final java.lang.String REASON_UPDATE_CHECK_PERIODIC
public static final java.lang.String REASON_CHECK_SWT
public static final java.lang.String REASON_DHT_FLAGS
public static final java.lang.String REASON_DHT_EXTENDED_ALLOWED
public static final java.lang.String REASON_DHT_ENABLE_ALLOWED
public static final java.lang.String REASON_EXTERNAL_IP
public static final java.lang.String REASON_RECOMMENDED_PLUGINS
public static final java.lang.String REASON_SECONDARY_CHECK
public static final java.lang.String REASON_PLUGIN_UPDATE
public static final java.lang.String REASON_DHT_BOOTSTRAP
public static final java.lang.String HTTP_SERVER_ADDRESS_V4
public static final int HTTP_SERVER_PORT
public static final java.lang.String TCP_SERVER_ADDRESS_V4
public static final int TCP_SERVER_PORT
public static final java.lang.String UDP_SERVER_ADDRESS_V4
public static final int UDP_SERVER_PORT
public static final java.lang.String AZ_MSG_SERVER_ADDRESS_V6
public static final java.lang.String HTTP_SERVER_ADDRESS_V6
public static final java.lang.String TCP_SERVER_ADDRESS_V6
public static final java.lang.String UDP_SERVER_ADDRESS_V6
Method Detail |
---|
public static VersionCheckClient getSingleton()
public void initialise()
public java.util.Map getVersionCheckInfo(java.lang.String reason)
public java.util.Map getVersionCheckInfo(java.lang.String reason, int address_type)
protected java.util.Map getVersionCheckInfoSupport(java.lang.String reason, boolean only_if_cached, boolean force, boolean v6)
public java.util.Map getMostRecentVersionCheckData()
public long getCacheTime(boolean v6)
public void clearCache()
public long getFeatureFlags()
public java.util.Set<java.lang.String> getDisabledPluginIDs()
public java.util.Set<java.lang.String> getAutoInstallPluginIDs()
public java.lang.String getExternalIpAddress(boolean only_if_cached, boolean v6)
public java.lang.String getExternalIpAddress(boolean only_if_cached, boolean v6, boolean force)
public boolean DHTEnableAllowed()
public boolean DHTExtendedUseAllowed()
public byte getDHTFlags()
public java.lang.String[] getRecommendedPlugins()
public java.util.List<java.net.InetSocketAddress> getDHTBootstrap(boolean ipv4)
public java.util.Map<java.lang.String,java.lang.Object> getCountryInfo()
public java.lang.String getHTTPGetString(boolean for_proxy, boolean v6)
protected void preProcessReply(java.util.Map reply, boolean v6)
public java.net.InetAddress getExternalIpAddressHTTP(boolean v6) throws java.lang.Exception
java.lang.Exception
public java.net.InetAddress getExternalIpAddressTCP(java.net.InetAddress bind_ip, int bind_port, boolean v6) throws java.lang.Exception
java.lang.Exception
public java.net.InetAddress getExternalIpAddressUDP(java.net.InetAddress bind_ip, int bind_port, boolean v6) throws java.lang.Exception
java.lang.Exception
protected java.lang.String getHost(boolean v6, java.lang.String v6_address, java.lang.String v4_address)
public static java.util.Map<java.lang.String,java.lang.Object> constructVersionCheckMessage(java.lang.String reason)
public void addVersionCheckClientListener(boolean triggerStartListener, VersionCheckClientListener l)
public void removeVersionCheckClientListener(VersionCheckClientListener l)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |