public class AbstractSocketXmppSessionLogic<T extends Connector> extends Object implements XmppSessionLogic, StreamManagementModule.StreamManagementFailedHandler, StreamManagementModule.StreamResumedHandler
XmppSessionLogic.SessionListener, XmppSessionLogic.XmppSessionEstablishedHandler
StreamManagementModule.StreamManagementFailedHandler.StreamManagementFailedEvent
StreamManagementModule.StreamResumedHandler.StreamResumedEvent
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.
|
void |
onStreamManagementFailed(SessionObject sessionObject,
XMPPException.ErrorCondition condition) |
void |
onStreamResumed(SessionObject sessionObject,
Long h,
String previd) |
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
public void onStreamManagementFailed(SessionObject sessionObject, XMPPException.ErrorCondition condition)
onStreamManagementFailed
in interface StreamManagementModule.StreamManagementFailedHandler
public void onStreamResumed(SessionObject sessionObject, Long h, String previd) throws JaxmppException
onStreamResumed
in interface StreamManagementModule.StreamResumedHandler
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–2023 Tigase. All rights reserved.