public class AbstractSocketXmppSessionLogic<T extends Connector> extends Object implements XmppSessionLogic
XmppSessionLogic.SessionListener, XmppSessionLogic.XmppSessionEstablishedHandler
Modifier and Type | Field and Description |
---|---|
protected T |
connector |
protected Context |
context |
Modifier | Constructor and Description |
---|---|
protected |
AbstractSocketXmppSessionLogic(T connector,
XmppModulesManager modulesManager,
Context context) |
Modifier and Type | Method and Description |
---|---|
void |
beforeStart()
Method executed just before login process is started.
|
protected void |
processAuthFailed(SaslModule.SaslError error) |
protected void |
processAuthSuccess() |
protected void |
processConnectorErrors(StreamError condition,
Throwable caught) |
protected void |
processException(JaxmppException e) |
protected void |
processResourceBindEvent(SessionObject sessionObject,
JID bindedJid) |
protected void |
processStreamFeatures(Element featuresElement) |
void |
setSessionListener(XmppSessionLogic.SessionListener sessionListener)
|
void |
unbind()
In this method implementation must unregister all previously registered
listeners.
|
protected final Context context
protected AbstractSocketXmppSessionLogic(T connector, XmppModulesManager modulesManager, Context context)
public void beforeStart() throws JaxmppException
XmppSessionLogic
beforeStart
in interface XmppSessionLogic
JaxmppException
protected void processAuthFailed(SaslModule.SaslError error) throws JaxmppException
JaxmppException
protected void processAuthSuccess() throws JaxmppException
JaxmppException
protected void processConnectorErrors(StreamError condition, Throwable caught) throws JaxmppException
JaxmppException
protected void processException(JaxmppException e) throws JaxmppException
JaxmppException
protected void processResourceBindEvent(SessionObject sessionObject, JID bindedJid) throws JaxmppException
JaxmppException
protected void processStreamFeatures(Element featuresElement) throws JaxmppException
JaxmppException
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–2016 Tigase. All rights reserved.