com.pramati.bfly.das.helper
Class DekohCallbackSource
java.lang.Object
com.pramati.bfly.das.api.NetworkCallbackSource
com.pramati.bfly.das.helper.DekohCallbackSource
public class DekohCallbackSource
- extends NetworkCallbackSource
A NetworkCallbackSource implementation for Dekoh Network. This
Network source can be used for getting callBacks, when a Dekoh Desktop goes online/offline with respect to Dekoh
network.
Any NetworkCallbackListener which needs callback when a
dekoh desktop goes online/offline with respect to dekoh network, should register with this NetworkCallbackSource.
example:
NetworkCallbackSource source = DekohCallbackSource.getDekohCallbackSource();
source.addCallbackListener(NetworkCallbackListenerImpl);
- Since:
- 7 Nov, 2007
|
Method Summary |
int |
getConnectFailureStatus()
If a DekohDesktop was not online according to this NetworkCallBackSource, this api should return the HTTP status
code, which this callBackSource receive, when it tried to make this Dekoh Desktop online. |
void |
initLoginManager(DekohLoginManager loginManager)
|
boolean |
isOnline()
To know whether a Dekoh Desktop is online, according to this NetworkCallBackSource. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DekohCallbackSource
public DekohCallbackSource()
initLoginManager
public void initLoginManager(DekohLoginManager loginManager)
isOnline
public boolean isOnline()
- To know whether a Dekoh Desktop is online, according to this NetworkCallBackSource.
- Specified by:
isOnline in class NetworkCallbackSource
- Returns:
- true, if online. else return false.
getConnectFailureStatus
public int getConnectFailureStatus()
- If a DekohDesktop was not online according to this NetworkCallBackSource, this api should return the HTTP status
code, which this callBackSource receive, when it tried to make this Dekoh Desktop online.
- Specified by:
getConnectFailureStatus in class NetworkCallbackSource
- Returns:
- will return a HTTP error status code, if a Dekoh Desktop is offline. should return -1, if a Dekoh Desktop
is
online
© 2009 Pramati Technologies - Dekoh - Portal for Developers