Class StreamManagementPacketRouter
- java.lang.Object
-
- org.jivesoftware.openfire.SessionPacketRouter
-
- org.jivesoftware.openfire.websocket.StreamManagementPacketRouter
-
- All Implemented Interfaces:
PacketRouter
public class StreamManagementPacketRouter extends SessionPacketRouter
This class extends Openfire's session packet router with the ACK capabilities specified by XEP-0198: Stream Management. NOTE: This class does NOT support the XEP-0198 stream resumption capabilities. XEP-0198 allows either party (client or server) to send unsolicited ack/answer stanzas on a periodic basis. This implementation approximates BOSH ack behavior by sending unsolicited <a /> stanzas from the server to the client after a configurable number of stanzas have been received from the client. Setting the system property to "1" would indicate that each client packet should be ack'd by the server when stream management is enabled for a particular stream. To disable unsolicited server acks, use the default value for system property "stream.management.unsolicitedAckFrequency" ("0"). This setting does not affect server responses to explicit ack requests from the client.
-
-
Field Summary
Fields Modifier and Type Field Description static String
SM_UNSOLICITED_ACK_FREQUENCY
-
Fields inherited from class org.jivesoftware.openfire.SessionPacketRouter
session
-
-
Constructor Summary
Constructors Constructor Description StreamManagementPacketRouter(LocalClientSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
route(org.dom4j.Element wrappedElement)
-
Methods inherited from class org.jivesoftware.openfire.SessionPacketRouter
route, route, route, route, setSkipJIDValidation
-
-
-
-
Field Detail
-
SM_UNSOLICITED_ACK_FREQUENCY
public static final String SM_UNSOLICITED_ACK_FREQUENCY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StreamManagementPacketRouter
public StreamManagementPacketRouter(LocalClientSession session)
-
-
Method Detail
-
route
public void route(org.dom4j.Element wrappedElement) throws UnknownStanzaException
- Overrides:
route
in classSessionPacketRouter
- Throws:
UnknownStanzaException
-
-