public abstract class AbstractXmppStateMachineConnection extends AbstractXMPPConnection
AbstractXMPPConnection.InterceptorWrapper, AbstractXMPPConnection.ListenerWrapper, AbstractXMPPConnection.SmackTlsContext
XMPPConnection.FromMode
Modifier and Type | Field and Description |
---|---|
protected boolean |
streamResumed |
authenticated, closingStreamReceived, compressionHandler, config, connected, connectionCounterValue, connectionListeners, connectionLock, debugger, host, hostAddresses, lastFeaturesReceived, port, reader, saslAuthentication, saslFeatureReceived, SMACK_REACTOR, streamFeatures, streamId, tlsHandled, user, wasAuthenticated, writer
Modifier | Constructor and Description |
---|---|
protected |
AbstractXmppStateMachineConnection(ConnectionConfiguration configuration,
StateDescriptorGraph.GraphVertex<StateDescriptor> initialStateDescriptorVertex) |
Modifier and Type | Method and Description |
---|---|
protected void |
addXmppInputOutputFilter(XmppInputOutputFilter xmppInputOutputFilter) |
protected void |
afterFeaturesReceived() |
protected static AbstractXmppStateMachineConnection.WalkStateGraphContextBuilder |
buildNewWalkTo(java.lang.Class<? extends StateDescriptor> finalStateClass) |
protected abstract javax.net.ssl.SSLSession |
getSSLSession() |
protected java.util.ListIterator<XmppInputOutputFilter> |
getXmppInputOutputFilterBeginIterator() |
protected java.util.ListIterator<XmppInputOutputFilter> |
getXmppInputOutputFilterEndIterator() |
protected void |
loginInternal(java.lang.String username,
java.lang.String password,
org.jxmpp.jid.parts.Resourcepart resource) |
protected void |
newStreamOpenWaitForFeaturesSequence(java.lang.String waitFor) |
protected void |
parseAndProcessElement(java.lang.String element) |
protected void |
prepareToWaitForFeaturesReceived() |
protected void |
waitForFeaturesReceived(java.lang.String waitFor) |
protected void |
walkStateGraph(AbstractXmppStateMachineConnection.WalkStateGraphContext walkStateGraphContext) |
addAsyncStanzaListener, addConnectionListener, addOneTimeSyncCallback, addStanzaInterceptor, addStanzaSendingListener, addStreamFeature, addSyncStanzaListener, afterSuccessfulLogin, asyncGo, bindResourceAndEstablishSession, buildNonzaCallback, callConnectionAuthenticatedListener, callConnectionClosedOnErrorListener, callConnectionConnectedListener, connect, connectInternal, createStanzaCollector, createStanzaCollector, createStanzaCollectorAndSend, createStanzaCollectorAndSend, disconnect, disconnect, firePacketSendingListeners, getConfiguration, getConnectionCounter, getConnectionLock, getFeature, getFromMode, getHost, getLastStanzaReceived, getParsingExceptionCallback, getPort, getReplyTimeout, getSASLAuthentication, getSmackTlsContext, getStreamId, getUsedSaslMechansism, getUser, getXMPPServiceDomain, hasFeature, initDebugger, invokeStanzaCollectorsAndNotifyRecvListeners, isAnonymous, isAuthenticated, isConnected, isSecureConnection, isUsingCompression, login, login, login, onStreamOpen, parseAndProcessNonza, parseAndProcessStanza, parseFeatures, parseFeaturesAndNotify, populateHostAddresses, processStanza, registerIQRequestHandler, removeAsyncStanzaListener, removeConnectionListener, removeStanzaCollector, removeStanzaInterceptor, removeStanzaSendingListener, removeSyncStanzaListener, schedule, sendAndWaitForResponse, sendAsync, sendAsync, sendIqRequestAndWaitForResponse, sendIqRequestAsync, sendIqRequestAsync, sendNonza, sendStanza, sendStanzaInternal, sendStreamOpen, setFromMode, setParsingExceptionCallback, setReplyTimeout, setUnknownIqRequestReplyMode, setWasAuthenticated, shutdown, throwAlreadyConnectedExceptionIfAppropriate, throwAlreadyLoggedInExceptionIfAppropriate, throwNotConnectedExceptionIfAppropriate, throwNotConnectedExceptionIfAppropriate, toString, trySendStanza, trySendStanza, unregisterIQRequestHandler, unregisterIQRequestHandler
protected AbstractXmppStateMachineConnection(ConnectionConfiguration configuration, StateDescriptorGraph.GraphVertex<StateDescriptor> initialStateDescriptorVertex)
protected void loginInternal(java.lang.String username, java.lang.String password, org.jxmpp.jid.parts.Resourcepart resource) throws XMPPException, SmackException, java.io.IOException, java.lang.InterruptedException
loginInternal
in class AbstractXMPPConnection
XMPPException
SmackException
java.io.IOException
java.lang.InterruptedException
protected static AbstractXmppStateMachineConnection.WalkStateGraphContextBuilder buildNewWalkTo(java.lang.Class<? extends StateDescriptor> finalStateClass)
protected void walkStateGraph(AbstractXmppStateMachineConnection.WalkStateGraphContext walkStateGraphContext) throws XMPPException.XMPPErrorException, SASLErrorException, java.io.IOException, SmackException, java.lang.InterruptedException, XMPPException.FailedNonzaException
XMPPException.XMPPErrorException
SASLErrorException
java.io.IOException
SmackException
java.lang.InterruptedException
XMPPException.FailedNonzaException
protected abstract javax.net.ssl.SSLSession getSSLSession()
protected void afterFeaturesReceived()
afterFeaturesReceived
in class AbstractXMPPConnection
protected final void parseAndProcessElement(java.lang.String element) throws java.lang.Exception
java.lang.Exception
protected void prepareToWaitForFeaturesReceived()
protected void waitForFeaturesReceived(java.lang.String waitFor) throws java.lang.InterruptedException, SmackException.NoResponseException
java.lang.InterruptedException
SmackException.NoResponseException
protected void newStreamOpenWaitForFeaturesSequence(java.lang.String waitFor) throws SmackException.NoResponseException, java.lang.InterruptedException, SmackException.NotConnectedException
SmackException.NoResponseException
java.lang.InterruptedException
SmackException.NotConnectedException
protected final void addXmppInputOutputFilter(XmppInputOutputFilter xmppInputOutputFilter)
protected final java.util.ListIterator<XmppInputOutputFilter> getXmppInputOutputFilterBeginIterator()
protected final java.util.ListIterator<XmppInputOutputFilter> getXmppInputOutputFilterEndIterator()