public class StreamNegotiator extends Object implements PacketCollector
StreamNegotiator handles stream negotiations. XMPP stream negotiation
is multi-step process starting with sending stream header packet, receiving
header, authentication, resource bind and session creation. For more
information, read XMPP
specification
While stream negotiation is on, use level write operations MUST be stopped otherwise negotiation will fail; however stream negotiator is not responsible for it. XMPPStreamManager should do that.
| Modifier and Type | Class and Description |
|---|---|
static class |
StreamNegotiator.NegotiationError
Indicates type of error during stream negotiation.
|
static class |
StreamNegotiator.NegotiationResult
Represents various outcomes if
XMPPStreamManager is asked to
start/restart a stream. |
| Modifier and Type | Method and Description |
|---|---|
void |
collect(Packet packet)
This collector takes the given packet.
|
public void collect(Packet packet)
PacketCollectorcollect in interface PacketCollectorpacket - packet instance to be collectedCopyright © 2019. All rights reserved.