public interface XMPPStream extends ConnectionStateObserver
XMPPStreamManager| Modifier and Type | Method and Description |
|---|---|
void |
closeStream()
Close the ongoing stream.
|
void |
resetStream()
Reset Stream to its initial state.
|
StreamNegotiator.NegotiationResult |
restartStream()
Restart a broken stream.
|
StreamNegotiator.NegotiationResult |
startStream(String userName,
String pwd,
String domain)
Start a stream with server with the given user credintials.
|
closed, closingConnection, connectedStreamNegotiator.NegotiationResult startStream(String userName, String pwd, String domain) throws NetworkException
StreamState.INITIATED state. While the negotiation is is
progress, 'negotiating' flag is turned on.userName - userNamepwd - pwddomain - domainStreamNegotiator.NegotiationResult objectNetworkException - if there is any network related errorStreamNegotiator.NegotiationResult restartStream() throws NetworkException
ConnectionConfig and user
session data to restablish the connection and autentication. Essentially,
the broken connection is re-established.
Stream negotiations are done synchronously. The method returns when stream negotiation is finished.
NetworkException - NetworkExceptionvoid resetStream()
void closeStream()
throws NetworkException
NetworkException - if an IO error occurrs while sending packetCopyright © 2019. All rights reserved.