|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectde.unikassel.android.sdcframework.transmission.ConnectivityWrapperImpl
public class ConnectivityWrapperImpl
Implementation of the connectivity wrapper.
| Field Summary | |
|---|---|
private static ConnectivityWrapper |
instance
The singleton instance |
| Constructor Summary | |
|---|---|
private |
ConnectivityWrapperImpl()
Constructor |
| Method Summary | |
|---|---|
private static int |
addressFromHostName(String hostname)
Does create an integer host address from a host name. |
static ConnectivityWrapper |
getInstance()
Getter for the singleton instance |
boolean |
isAnyConnectionAvailable(Context context)
Test method for any available Internet connection |
boolean |
isNetworkConnected(Context context,
int networkType)
Test method for an available network connection |
boolean |
testHostReachability(Context context,
String hostName)
Does test if the host is reachable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static ConnectivityWrapper instance
| Constructor Detail |
|---|
private ConnectivityWrapperImpl()
| Method Detail |
|---|
public static final ConnectivityWrapper getInstance()
public final boolean isNetworkConnected(Context context,
int networkType)
ConnectivityWrapper
isNetworkConnected in interface ConnectivityWrappercontext - the application contextnetworkType - the network type
public final boolean testHostReachability(Context context,
String hostName)
ConnectivityWrapper
testHostReachability in interface ConnectivityWrappercontext - the application contexthostName - the host name to detect route to
private static final int addressFromHostName(String hostname)
hostname - the host name to get hostAdress for
public boolean isAnyConnectionAvailable(Context context)
ConnectivityWrapper
isAnyConnectionAvailable in interface ConnectivityWrappercontext - the application context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||