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
XmppSessionLogic
beforeStart
in interface XmppSessionLogic
JaxmppException
protected void onResourceBindError(SessionObject sessionObject2, SessionObject sessionObject3)
protected void onResourceBindSuccess(SessionObject sessionObject, JID bindedJid) throws JaxmppException
JaxmppException
protected void onStreamFeaturesReceived(SessionObject sessionObject, Element featuresElement) throws JaxmppException
JaxmppException
protected void processAuthFail(SessionObject sessionObject, SaslModule.SaslError error) throws JaxmppException
JaxmppException
protected void processAuthSucess(SessionObject sessionObject) throws JaxmppException
JaxmppException
protected void processException(JaxmppException e)
public void setSessionListener(XmppSessionLogic.SessionListener sessionListener) throws JaxmppException
XmppSessionLogic
setSessionListener
in interface XmppSessionLogic
sessionListener
- XmppSessionLogic.SessionListenerJaxmppException
public void unbind() throws JaxmppException
XmppSessionLogic
unbind
in interface XmppSessionLogic
JaxmppException
Copyright © 2006–2023 Tigase. All rights reserved.