- java.lang.Object
-
- util.io.CheckNetworkConnection
-
class CheckNetworkConnection extends java.lang.Object
Checks the Network and creates a Waiting-Dialog if necessary- Since:
- 2.2
-
-
Constructor Summary
Constructors Constructor Description CheckNetworkConnection()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkConnection()
Check the Networkboolean
checkConnection(java.net.URL url)
Checks if a internet connection to a specific Server can be establishedboolean
checkConnection(java.net.URL url, int timeout, boolean showWaitingDialog)
Checks if a internet connection to a specific Server can be establishedstatic java.lang.String[]
getUrls()
-
-
-
Method Detail
-
checkConnection
public boolean checkConnection()
Check the Network- Returns:
- true, if the connection is working
-
checkConnection
public boolean checkConnection(java.net.URL url)
Checks if a internet connection to a specific Server can be established- Parameters:
url
- check this Server- Returns:
- true, if a connection can be established
-
checkConnection
public boolean checkConnection(java.net.URL url, int timeout, boolean showWaitingDialog)
Checks if a internet connection to a specific Server can be established- Parameters:
url
- check this Servertimeout
- the timeout for the check in milliseconds.showWaitingDialog
-true
if a waiting dialog should be shown,false
otherwise.- Returns:
true
, if a connection can be established
-
getUrls
public static java.lang.String[] getUrls()
-
-