public class AbstractSocketXmppSessionLogic<T extends Connector> extends Object implements XmppSessionLogic, StreamManagementModule.StreamManagementFailedHandler, StreamManagementModule.StreamResumedHandler
XmppSessionLogic.SessionListener, XmppSessionLogic.XmppSessionEstablishedHandlerStreamManagementModule.StreamManagementFailedHandler.StreamManagementFailedEventStreamManagementModule.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
XmppSessionLogicbeforeStart in interface XmppSessionLogicJaxmppExceptionpublic void onStreamManagementFailed(SessionObject sessionObject, XMPPException.ErrorCondition condition)
onStreamManagementFailed in interface StreamManagementModule.StreamManagementFailedHandlerpublic void onStreamResumed(SessionObject sessionObject, Long h, String previd) throws JaxmppException
onStreamResumed in interface StreamManagementModule.StreamResumedHandlerJaxmppExceptionprotected void processAuthFailed(SaslModule.SaslError error) throws JaxmppException
JaxmppExceptionprotected void processAuthSuccess()
throws JaxmppException
JaxmppExceptionprotected void processConnectorErrors(StreamError condition, Throwable caught) throws JaxmppException
JaxmppExceptionprotected void processException(JaxmppException e) throws JaxmppException
JaxmppExceptionprotected void processResourceBindEvent(SessionObject sessionObject, JID bindedJid) throws JaxmppException
JaxmppExceptionprotected void processStreamFeatures(Element featuresElement) throws JaxmppException
JaxmppExceptionpublic void setSessionListener(XmppSessionLogic.SessionListener sessionListener) throws JaxmppException
XmppSessionLogicsetSessionListener in interface XmppSessionLogicsessionListener - XmppSessionLogic.SessionListenerJaxmppExceptionpublic void unbind()
throws JaxmppException
XmppSessionLogicunbind in interface XmppSessionLogicJaxmppExceptionCopyright © 2006–2020 Tigase. All rights reserved.