public class BoshXmppSessionLogic extends Object implements XmppSessionLogic
XmppSessionLogic.SessionListener, XmppSessionLogic.XmppSessionEstablishedHandler| Constructor and Description |
|---|
BoshXmppSessionLogic(Context context,
Connector connector,
XmppModulesManager modulesManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeStart()
Method executed just before login process is started.
|
protected void |
onResourceBindError(SessionObject sessionObject2,
SessionObject sessionObject3) |
protected void |
onResourceBindSuccess(SessionObject sessionObject,
JID bindedJid) |
protected void |
onStreamFeaturesReceived(SessionObject sessionObject,
Element featuresElement) |
protected void |
processAuthFail(SessionObject sessionObject,
SaslModule.SaslError error) |
protected void |
processAuthSucess(SessionObject sessionObject) |
protected void |
processException(JaxmppException e) |
void |
setSessionListener(XmppSessionLogic.SessionListener sessionListener)
|
void |
unbind()
In this method implementation must unregister all previously registered
listeners.
|
public BoshXmppSessionLogic(Context context, Connector connector, XmppModulesManager modulesManager)
public void beforeStart()
throws JaxmppException
XmppSessionLogicbeforeStart in interface XmppSessionLogicJaxmppExceptionprotected void onResourceBindError(SessionObject sessionObject2, SessionObject sessionObject3)
protected void onResourceBindSuccess(SessionObject sessionObject, JID bindedJid) throws JaxmppException
JaxmppExceptionprotected void onStreamFeaturesReceived(SessionObject sessionObject, Element featuresElement) throws JaxmppException
JaxmppExceptionprotected void processAuthFail(SessionObject sessionObject, SaslModule.SaslError error) throws JaxmppException
JaxmppExceptionprotected void processAuthSucess(SessionObject sessionObject) throws JaxmppException
JaxmppExceptionprotected void processException(JaxmppException e)
public void setSessionListener(XmppSessionLogic.SessionListener sessionListener) throws JaxmppException
XmppSessionLogicsetSessionListener in interface XmppSessionLogicsessionListener - XmppSessionLogic.SessionListenerJaxmppExceptionpublic void unbind()
throws JaxmppException
XmppSessionLogicunbind in interface XmppSessionLogicJaxmppExceptionCopyright © 2006–2016 Tigase. All rights reserved.