Package io.toro.martini.jabber.model
Class XmppConnection
- java.lang.Object
-
- org.jivesoftware.smack.AbstractXMPPConnection
-
- org.jivesoftware.smack.tcp.XMPPTCPConnection
-
- io.toro.martini.jabber.model.JabberConnection
-
- io.toro.martini.jabber.model.XmppConnection
-
- All Implemented Interfaces:
AutoCloseable
,XMPPConnection
public class XmppConnection extends JabberConnection
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jivesoftware.smack.tcp.XMPPTCPConnection
XMPPTCPConnection.PacketReader, XMPPTCPConnection.PacketWriter
-
Nested classes/interfaces inherited from class org.jivesoftware.smack.AbstractXMPPConnection
AbstractXMPPConnection.InterceptorWrapper, AbstractXMPPConnection.ListenerWrapper
-
Nested classes/interfaces inherited from interface org.jivesoftware.smack.XMPPConnection
XMPPConnection.FromMode
-
-
Field Summary
-
Fields inherited from class io.toro.martini.jabber.model.JabberConnection
DEFAULT_CONNECTION_TIMEOUT, DEFAULT_PACKET_REPLY_TIMEOUT, DEFAULT_PING_INTERVAL
-
Fields inherited from class org.jivesoftware.smack.tcp.XMPPTCPConnection
packetReader, packetWriter
-
Fields inherited from class org.jivesoftware.smack.AbstractXMPPConnection
authenticated, compressionHandler, connected, connectionCounterValue, connectionListeners, connectionLock, debugger, host, hostAddresses, lastFeaturesReceived, port, reader, saslAuthentication, saslFeatureReceived, streamFeatures, streamId, user, wasAuthenticated, writer
-
-
Constructor Summary
Constructors Constructor Description XmppConnection(String name, CharSequence jid, String password, boolean allowReconnection, Integer pingInterval)
XmppConnection(String name, CharSequence username, String password, String serviceName, boolean allowReconnection, Integer pingInterval)
XmppConnection(String name, Map configuration)
XmppConnection(String name, XMPPTCPConnectionConfiguration config, boolean allowReconnection, long pingInterval)
-
Method Summary
-
Methods inherited from class io.toro.martini.jabber.model.JabberConnection
addChatListener, buildConfiguration, close, connect, connectInternal, disconnect, getName, getPingInterval, getUsers, instantShutdown, isAllowReconnection, login, login, login, sendMessage, sendMessage, setName, setName
-
Methods inherited from class org.jivesoftware.smack.tcp.XMPPTCPConnection
addRequestAckPredicate, addStanzaAcknowledgedListener, addStanzaIdAcknowledgedListener, afterFeaturesReceived, afterSuccessfulLogin, getMaxSmResumptionTime, isDisconnectedButSmResumptionPossible, isSecureConnection, isSmAvailable, isSmEnabled, isSmResumptionPossible, isSocketClosed, isUsingCompression, loginAnonymously, loginNonAnonymously, removeAllRequestAckPredicates, removeAllStanzaAcknowledgedListeners, removeAllStanzaIdAcknowledgedListeners, removeRequestAckPredicate, removeStanzaAcknowledgedListener, removeStanzaIdAcknowledgedListener, requestSmAcknowledgement, send, sendSmAcknowledgement, sendStanzaInternal, setBundleandDeferCallback, setDefaultBundleAndDeferCallback, setPreferredResumptionTime, setUseStreamManagement, setUseStreamManagementDefault, setUseStreamManagementResumptiodDefault, setUseStreamManagementResumption, setUseStreamManagementResumptionDefault, setWriter, shutdown, streamWasResumed, throwAlreadyConnectedExceptionIfAppropriate, throwAlreadyLoggedInExceptionIfAppropriate, throwNotConnectedExceptionIfAppropriate
-
Methods inherited from class org.jivesoftware.smack.AbstractXMPPConnection
addAsyncStanzaListener, addConnectionListener, addOneTimeSyncCallback, addPacketInterceptor, addPacketListener, addPacketSendingListener, addSyncStanzaListener, asyncGo, bindResourceAndEstablishSession, callConnectionAuthenticatedListener, callConnectionClosedOnErrorListener, callConnectionConnectedListener, createPacketCollector, createPacketCollector, createPacketCollectorAndSend, createPacketCollectorAndSend, disconnect, finalize, firePacketSendingListeners, getConfiguration, getConnectionCounter, getConnectionCreationListeners, getConnectionLock, getFeature, getFromMode, getHost, getLastStanzaReceived, getPacketReplyTimeout, getParsingExceptionCallback, getPort, getSASLAuthentication, getServiceName, getStreamId, getUser, hasFeature, initDebugger, invokePacketCollectorsAndNotifyRecvListeners, isAnonymous, isAuthenticated, isConnected, notifyReconnection, parseAndProcessStanza, parseFeatures, populateHostAddresses, processPacket, registerIQRequestHandler, removeAsyncStanzaListener, removeConnectionListener, removePacketCollector, removePacketInterceptor, removePacketListener, removePacketSendingListener, removeSyncStanzaListener, schedule, sendIqWithResponseCallback, sendIqWithResponseCallback, sendIqWithResponseCallback, sendPacket, sendStanza, sendStanzaWithResponseCallback, sendStanzaWithResponseCallback, sendStanzaWithResponseCallback, setFromMode, setPacketReplyTimeout, setParsingExceptionCallback, setReplyToUnknownIq, setReplyToUnknownIqDefault, setWasAuthenticated, throwNotConnectedExceptionIfAppropriate, unregisterIQRequestHandler, unregisterIQRequestHandler
-
-
-
-
Constructor Detail
-
XmppConnection
public XmppConnection(String name, Map configuration) throws ToroException
- Throws:
ToroException
-
XmppConnection
public XmppConnection(String name, CharSequence username, String password, String serviceName, boolean allowReconnection, Integer pingInterval)
-
XmppConnection
public XmppConnection(String name, XMPPTCPConnectionConfiguration config, boolean allowReconnection, long pingInterval)
-
XmppConnection
public XmppConnection(String name, CharSequence jid, String password, boolean allowReconnection, Integer pingInterval)
-
-