|
|||||||||
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 String |
AZ_MSG_SERVER_ADDRESS_V6
|
static String |
HTTP_SERVER_ADDRESS_V4
|
static String |
HTTP_SERVER_ADDRESS_V6
|
static int |
HTTP_SERVER_PORT
|
static String |
REASON_CHECK_SWT
|
static String |
REASON_DHT_BOOTSTRAP
|
static String |
REASON_DHT_ENABLE_ALLOWED
|
static String |
REASON_DHT_EXTENDED_ALLOWED
|
static String |
REASON_DHT_FLAGS
|
static String |
REASON_EXTERNAL_IP
|
static String |
REASON_PLUGIN_UPDATE
|
static String |
REASON_RECOMMENDED_PLUGINS
|
static String |
REASON_SECONDARY_CHECK
|
static String |
REASON_UPDATE_CHECK_PERIODIC
|
static String |
REASON_UPDATE_CHECK_START
|
static String |
TCP_SERVER_ADDRESS_V4
|
static String |
TCP_SERVER_ADDRESS_V6
|
static int |
TCP_SERVER_PORT
|
static String |
UDP_SERVER_ADDRESS_V4
|
static String |
UDP_SERVER_ADDRESS_V6
|
static int |
UDP_SERVER_PORT
|
Method Summary | |
---|---|
void |
addVersionCheckClientListener(boolean triggerStartListener,
VersionCheckClientListener l)
|
void |
clearCache()
|
static Map<String,Object> |
constructVersionCheckMessage(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. |
Set<String> |
getAutoInstallPluginIDs()
|
long |
getCacheTime(boolean v6)
|
Map<String,Object> |
getCountryInfo()
|
List<InetSocketAddress> |
getDHTBootstrap(boolean ipv4)
|
byte |
getDHTFlags()
|
Set<String> |
getDisabledPluginIDs()
|
String |
getExternalIpAddress(boolean only_if_cached,
boolean v6)
Get the ip address seen by the version check server. |
String |
getExternalIpAddress(boolean only_if_cached,
boolean v6,
boolean force)
|
InetAddress |
getExternalIpAddressHTTP(boolean v6)
|
InetAddress |
getExternalIpAddressTCP(InetAddress bind_ip,
int bind_port,
boolean v6)
|
InetAddress |
getExternalIpAddressUDP(InetAddress bind_ip,
int bind_port,
boolean v6)
|
long |
getFeatureFlags()
|
protected String |
getHost(boolean v6,
String v6_address,
String v4_address)
|
String |
getHTTPGetString(boolean for_proxy,
boolean v6)
|
Map |
getMostRecentVersionCheckData()
|
String[] |
getRecommendedPlugins()
|
static VersionCheckClient |
getSingleton()
Get the singleton instance of the version check client. |
Map |
getVersionCheckInfo(String reason)
Get the version check reply info. |
Map |
getVersionCheckInfo(String reason,
int address_type)
|
protected Map |
getVersionCheckInfoSupport(String reason,
boolean only_if_cached,
boolean force,
boolean v6)
|
void |
initialise()
|
static void |
main(String[] args)
|
protected void |
preProcessReply(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 String REASON_UPDATE_CHECK_START
public static final String REASON_UPDATE_CHECK_PERIODIC
public static final String REASON_CHECK_SWT
public static final String REASON_DHT_FLAGS
public static final String REASON_DHT_EXTENDED_ALLOWED
public static final String REASON_DHT_ENABLE_ALLOWED
public static final String REASON_EXTERNAL_IP
public static final String REASON_RECOMMENDED_PLUGINS
public static final String REASON_SECONDARY_CHECK
public static final String REASON_PLUGIN_UPDATE
public static final String REASON_DHT_BOOTSTRAP
public static final String HTTP_SERVER_ADDRESS_V4
public static final int HTTP_SERVER_PORT
public static final String TCP_SERVER_ADDRESS_V4
public static final int TCP_SERVER_PORT
public static final String UDP_SERVER_ADDRESS_V4
public static final int UDP_SERVER_PORT
public static final String AZ_MSG_SERVER_ADDRESS_V6
public static final String HTTP_SERVER_ADDRESS_V6
public static final String TCP_SERVER_ADDRESS_V6
public static final String UDP_SERVER_ADDRESS_V6
Method Detail |
---|
public static VersionCheckClient getSingleton()
public void initialise()
public Map getVersionCheckInfo(String reason)
public Map getVersionCheckInfo(String reason, int address_type)
protected Map getVersionCheckInfoSupport(String reason, boolean only_if_cached, boolean force, boolean v6)
public Map getMostRecentVersionCheckData()
public long getCacheTime(boolean v6)
public void clearCache()
public long getFeatureFlags()
public Set<String> getDisabledPluginIDs()
public Set<String> getAutoInstallPluginIDs()
public String getExternalIpAddress(boolean only_if_cached, boolean v6)
public String getExternalIpAddress(boolean only_if_cached, boolean v6, boolean force)
public boolean DHTEnableAllowed()
public boolean DHTExtendedUseAllowed()
public byte getDHTFlags()
public String[] getRecommendedPlugins()
public List<InetSocketAddress> getDHTBootstrap(boolean ipv4)
public Map<String,Object> getCountryInfo()
public String getHTTPGetString(boolean for_proxy, boolean v6)
protected void preProcessReply(Map reply, boolean v6)
public InetAddress getExternalIpAddressHTTP(boolean v6) throws Exception
Exception
public InetAddress getExternalIpAddressTCP(InetAddress bind_ip, int bind_port, boolean v6) throws Exception
Exception
public InetAddress getExternalIpAddressUDP(InetAddress bind_ip, int bind_port, boolean v6) throws Exception
Exception
protected String getHost(boolean v6, String v6_address, String v4_address)
public static Map<String,Object> constructVersionCheckMessage(String reason)
public void addVersionCheckClientListener(boolean triggerStartListener, VersionCheckClientListener l)
public void removeVersionCheckClientListener(VersionCheckClientListener l)
public static void main(String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |