Class ModularXmppClientToServerConnectionInternal
java.lang.Object
org.jivesoftware.smack.c2s.internal.ModularXmppClientToServerConnectionInternal
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModularXmppClientToServerConnectionInternal(ModularXmppClientToServerConnection connection, SmackReactor reactor, SmackDebugger smackDebugger, Queue<TopLevelStreamElement> outgoingElementsQueue) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddXmppInputOutputFilter(XmppInputOutputFilter xmppInputOutputFilter) abstract voidabstract voidabstract XmlEnvironmentabstract SmackTlsContextabstract ListIterator<XmppInputOutputFilter>abstract ListIterator<XmppInputOutputFilter>abstract voidinvokeConnectionStateMachineListener(ConnectionStateEvent connectionStateEvent) abstract voidabstract voidabstract voidabstract voidfinal StringonStreamOpen(String streamOpen) abstract StringonStreamOpen(org.jivesoftware.smack.xml.XmlPullParser parser) abstract voidparseAndProcessElement(String wrappedCompleteIncomingElement) registerWithSelector(SelectableChannel channel, int ops, SmackReactor.ChannelSelectedCallback callback) sendAndWaitForResponse(Nonza nonza, Class<SN> successNonzaClass, Class<FN> failedNonzaClass) abstract voidsetCompressionEnabled(boolean compressionEnabled) voidsetInterestOps(SelectionKey selectionKey, int interestOps) abstract voidsetTransport(XmppClientToServerTransport xmppTransport) Set the active transport (TCP, BOSH, WebSocket, …) to be used for the XMPP connection.abstract voidwaitForConditionOrThrowConnectionException(Supplier<Boolean> condition, String waitFor) abstract voidwaitForFeaturesReceived(String waitFor) final voidwithSmackDebugger(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
public abstract void 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
public abstract void notifyWaitingThreads() -
setCompressionEnabled
public abstract void setCompressionEnabled(boolean compressionEnabled) -
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.
-