org.androidpn.client
Class XmppManager
java.lang.Object
org.androidpn.client.XmppManager
public class XmppManager
- extends java.lang.Object
This class is to manage the XMPP connection between client and server.
- Author:
- Sehwan Noh (devnoh@gmail.com)
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmppManager
public XmppManager(NotificationService notificationService)
getContext
public Context getContext()
connect
public void connect()
disconnect
public void disconnect()
terminatePersistentConnection
public void terminatePersistentConnection()
getConnection
public org.jivesoftware.smack.XMPPConnection getConnection()
setConnection
public void setConnection(org.jivesoftware.smack.XMPPConnection connection)
getUsername
public java.lang.String getUsername()
setUsername
public void setUsername(java.lang.String username)
getPassword
public java.lang.String getPassword()
setPassword
public void setPassword(java.lang.String password)
getConnectionListener
public org.jivesoftware.smack.ConnectionListener getConnectionListener()
getNotificationPacketListener
public org.jivesoftware.smack.PacketListener getNotificationPacketListener()
startReconnectionThread
public void startReconnectionThread()
getHandler
public Handler getHandler()
reregisterAccount
public void reregisterAccount()
getTaskList
public java.util.List<java.lang.Runnable> getTaskList()
getFutureTask
public java.util.concurrent.Future<?> getFutureTask()
runTask
public void runTask()