Class ModularXmppClientToServerConnectionInternal
java.lang.Object
org.jivesoftware.smack.c2s.internal.ModularXmppClientToServerConnectionInternal
-
Field Summary
-
Constructor Summary
ConstructorDescriptionModularXmppClientToServerConnectionInternal
(ModularXmppClientToServerConnection connection, SmackReactor reactor, SmackDebugger smackDebugger, Queue<TopLevelStreamElement> outgoingElementsQueue) -
Method Summary
Modifier and TypeMethodDescriptionabstract void
addXmppInputOutputFilter
(XmppInputOutputFilter xmppInputOutputFilter) abstract void
abstract void
abstract XmlEnvironment
abstract SmackTlsContext
abstract ListIterator<XmppInputOutputFilter>
abstract ListIterator<XmppInputOutputFilter>
abstract void
invokeConnectionStateMachineListener
(ConnectionStateEvent connectionStateEvent) abstract void
abstract void
abstract void
abstract void
final String
onStreamOpen
(String streamOpen) abstract String
onStreamOpen
(XmlPullParser parser) abstract void
parseAndProcessElement
(String wrappedCompleteIncomingElement) registerWithSelector
(SelectableChannel channel, int ops, SmackReactor.ChannelSelectedCallback callback) sendAndWaitForResponse
(Nonza nonza, Class<SN> successNonzaClass, Class<FN> failedNonzaClass) abstract void
setCompressionEnabled
(boolean compressionEnabled) void
setInterestOps
(SelectionKey selectionKey, int interestOps) abstract void
setTransport
(XmppClientToServerTransport xmppTransport) Set the active transport (TCP, BOSH, WebSocket, …) to be used for the XMPP connection.abstract void
waitForConditionOrThrowConnectionException
(Supplier<Boolean> condition, String waitFor) abstract void
waitForFeaturesReceived
(String waitFor) final void
withSmackDebugger
(Consumer<SmackDebugger> smackDebuggerConsumer)
-
Field Details
-
connection
-
smackDebugger
-
outgoingElementsQueue
-
-
Constructor Details
-
ModularXmppClientToServerConnectionInternal
public ModularXmppClientToServerConnectionInternal(ModularXmppClientToServerConnection connection, SmackReactor reactor, SmackDebugger smackDebugger, Queue<TopLevelStreamElement> outgoingElementsQueue)
-
-
Method Details
-
registerWithSelector
public SelectionKey registerWithSelector(SelectableChannel channel, int ops, SmackReactor.ChannelSelectedCallback callback) throws ClosedChannelException - Throws:
ClosedChannelException
-
setInterestOps
-
withSmackDebugger
-
getOutgoingStreamXmlEnvironment
-
parseAndProcessElement
-
notifyConnectionError
-
onStreamOpen
-
onStreamOpen
-
onStreamClosed
-
fireFirstLevelElementSendListeners
-
invokeConnectionStateMachineListener
public abstract void invokeConnectionStateMachineListener(ConnectionStateEvent connectionStateEvent) -
addXmppInputOutputFilter
-
getXmppInputOutputFilterBeginIterator
-
getXmppInputOutputFilterEndIterator
-
waitForFeaturesReceived
public abstract void waitForFeaturesReceived(String waitFor) throws InterruptedException, SmackException, XMPPException -
newStreamOpenWaitForFeaturesSequence
public abstract void newStreamOpenWaitForFeaturesSequence(String waitFor) throws InterruptedException, SmackException.NoResponseException, SmackException.NotConnectedException, SmackException, XMPPException -
getSmackTlsContext
-
sendAndWaitForResponse
public abstract <SN extends Nonza,FN extends Nonza> SN sendAndWaitForResponse(Nonza nonza, Class<SN> successNonzaClass, Class<FN> failedNonzaClass) throws SmackException.NoResponseException, SmackException.NotConnectedException, XMPPException.FailedNonzaException, InterruptedException -
asyncGo
-
waitForConditionOrThrowConnectionException
public abstract void waitForConditionOrThrowConnectionException(Supplier<Boolean> condition, String waitFor) throws InterruptedException, SmackException.SmackWrappedException, SmackException.NoResponseException -
notifyWaitingThreads
-
setCompressionEnabled
-
setTransport
Set the active transport (TCP, BOSH, WebSocket, …) to be used for the XMPP connection. Also marks the connection as connected.- Parameters:
xmppTransport
- the active transport.
-