public class NetworkReachabilityBridge extends BaseCommunicationBridge implements INetworkReachability, APIBridge
apiGroup| Constructor and Description |
|---|
NetworkReachabilityBridge(INetworkReachability delegate)
Constructor with delegate.
|
| Modifier and Type | Method and Description |
|---|---|
INetworkReachability |
getDelegate()
Get the delegate implementation.
|
APIResponse |
invoke(APIRequest request)
Invokes the given method specified in the API request object.
|
void |
isNetworkReachable(java.lang.String host,
INetworkReachabilityCallback callback)
Whether there is connectivity to a host, via domain name or ip address, or not.
|
void |
isNetworkServiceReachable(java.lang.String url,
INetworkReachabilityCallback callback)
Whether there is connectivity to an url of a service or not.
|
void |
setDelegate(INetworkReachability delegate)
Set the delegate implementation.
|
getAPIGroup, getAPIVersion, getJSONParserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAPIGroup, getAPIVersionpublic NetworkReachabilityBridge(INetworkReachability delegate)
delegate - The delegate implementing platform specific functions.public final INetworkReachability getDelegate()
public final void setDelegate(INetworkReachability delegate)
delegate - The delegate implementing platform specific functions.public void isNetworkReachable(java.lang.String host,
INetworkReachabilityCallback callback)
isNetworkReachable in interface INetworkReachabilityhost - domain name or ip address of host.callback - Callback called at the end.public void isNetworkServiceReachable(java.lang.String url,
INetworkReachabilityCallback callback)
isNetworkServiceReachable in interface INetworkReachabilityurl - to look forcallback - Callback called at the endpublic APIResponse invoke(APIRequest request)
invoke in interface APIBridgeinvoke in class BaseCommunicationBridgerequest - APIRequest object containing method name and parameters.