public class XmppNioTcpConnection
extends org.jivesoftware.smack.AbstractXmppNioConnection
Modifier and Type | Class and Description |
---|---|
static class |
XmppNioTcpConnection.Stats |
Modifier and Type | Field and Description |
---|---|
protected org.jivesoftware.smack.SynchronizationPoint<org.jivesoftware.smack.SmackException> |
featuresReceived |
authenticated, closingStreamReceived, compressionHandler, config, connected, connectionCounterValue, connectionListeners, connectionLock, debugger, host, hostAddresses, lastFeaturesReceived, port, reader, saslAuthentication, saslFeatureReceived, SMACK_REACTOR, streamFeatures, streamId, tlsHandled, user, wasAuthenticated, writer
Constructor and Description |
---|
XmppNioTcpConnection(XMPPTCPConnectionConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
protected void |
connectInternal() |
XmppNioTcpConnection.Stats |
getStats() |
boolean |
isSecureConnection() |
boolean |
isUsingCompression() |
protected void |
loginInternal(java.lang.String username,
java.lang.String password,
org.jxmpp.jid.parts.Resourcepart resource) |
protected void |
parseFeatures(org.xmlpull.v1.XmlPullParser parser) |
void |
sendNonza(org.jivesoftware.smack.packet.Nonza nonza) |
protected void |
sendStanzaInternal(org.jivesoftware.smack.packet.Stanza stanza) |
protected void |
shutdown() |
registerWithSelector, setInterestOps
addAsyncStanzaListener, addConnectionListener, addOneTimeSyncCallback, addPacketInterceptor, addPacketSendingListener, addStanzaInterceptor, addStanzaSendingListener, addStreamFeature, addSyncStanzaListener, afterFeaturesReceived, afterSuccessfulLogin, asyncGo, bindResourceAndEstablishSession, callConnectionAuthenticatedListener, callConnectionClosedOnErrorListener, callConnectionConnectedListener, connect, createStanzaCollector, createStanzaCollector, createStanzaCollectorAndSend, createStanzaCollectorAndSend, disconnect, disconnect, finalize, firePacketSendingListeners, getConfiguration, getConnectionCounter, getConnectionLock, getFeature, getFromMode, getHost, getLastStanzaReceived, getParsingExceptionCallback, getPort, getReplyTimeout, getSASLAuthentication, getStreamId, getUsedSaslMechansism, getUser, getXMPPServiceDomain, hasFeature, initDebugger, invokeStanzaCollectorsAndNotifyRecvListeners, isAnonymous, isAuthenticated, isConnected, login, login, login, notifyReconnection, onStreamOpen, parseAndProcessStanza, parseFeaturesAndNotify, populateHostAddresses, processStanza, registerIQRequestHandler, removeAsyncStanzaListener, removeConnectionListener, removePacketInterceptor, removePacketSendingListener, removeStanzaCollector, removeStanzaInterceptor, removeStanzaSendingListener, removeSyncStanzaListener, schedule, sendAsync, sendAsync, sendIqRequestAsync, sendIqRequestAsync, sendIqWithResponseCallback, sendIqWithResponseCallback, sendIqWithResponseCallback, sendStanza, sendStanzaWithResponseCallback, sendStanzaWithResponseCallback, sendStanzaWithResponseCallback, sendStreamOpen, setFromMode, setParsingExceptionCallback, setReplyTimeout, setUnknownIqRequestReplyMode, setWasAuthenticated, throwAlreadyConnectedExceptionIfAppropriate, throwAlreadyLoggedInExceptionIfAppropriate, throwNotConnectedExceptionIfAppropriate, throwNotConnectedExceptionIfAppropriate, toString, unregisterIQRequestHandler, unregisterIQRequestHandler
protected final org.jivesoftware.smack.SynchronizationPoint<org.jivesoftware.smack.SmackException> featuresReceived
public XmppNioTcpConnection(XMPPTCPConnectionConfiguration configuration)
protected void connectInternal() throws org.jivesoftware.smack.SmackException, java.io.IOException, org.jivesoftware.smack.XMPPException, java.lang.InterruptedException
connectInternal
in class org.jivesoftware.smack.AbstractXMPPConnection
org.jivesoftware.smack.SmackException
java.io.IOException
org.jivesoftware.smack.XMPPException
java.lang.InterruptedException
public boolean isSecureConnection()
isSecureConnection
in interface org.jivesoftware.smack.XMPPConnection
isSecureConnection
in class org.jivesoftware.smack.AbstractXMPPConnection
protected void sendStanzaInternal(org.jivesoftware.smack.packet.Stanza stanza) throws org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
sendStanzaInternal
in class org.jivesoftware.smack.AbstractXMPPConnection
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
public void sendNonza(org.jivesoftware.smack.packet.Nonza nonza) throws org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
sendNonza
in interface org.jivesoftware.smack.XMPPConnection
sendNonza
in class org.jivesoftware.smack.AbstractXMPPConnection
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
public boolean isUsingCompression()
isUsingCompression
in interface org.jivesoftware.smack.XMPPConnection
isUsingCompression
in class org.jivesoftware.smack.AbstractXMPPConnection
protected void loginInternal(java.lang.String username, java.lang.String password, org.jxmpp.jid.parts.Resourcepart resource) throws org.jivesoftware.smack.XMPPException, org.jivesoftware.smack.SmackException, java.io.IOException, java.lang.InterruptedException
loginInternal
in class org.jivesoftware.smack.AbstractXmppStateMachineConnection
org.jivesoftware.smack.XMPPException
org.jivesoftware.smack.SmackException
java.io.IOException
java.lang.InterruptedException
protected void shutdown()
shutdown
in class org.jivesoftware.smack.AbstractXMPPConnection
protected void parseFeatures(org.xmlpull.v1.XmlPullParser parser) throws java.lang.Exception
parseFeatures
in class org.jivesoftware.smack.AbstractXMPPConnection
java.lang.Exception
public XmppNioTcpConnection.Stats getStats()