Package org.jivesoftware.openfire.nio
Class OfflinePacketDeliverer
java.lang.Object
org.jivesoftware.openfire.nio.OfflinePacketDeliverer
- All Implemented Interfaces:
PacketDeliverer
Fallback method used by
NettyConnection
when a
connection fails to send a Packet
(likely because it was closed). Message packets
will be stored offline for later retrieval. IQ and Presence packets are dropped.- Author:
- Tom Evans
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deliver
(org.xmpp.packet.Packet stanza) Delivers the given stanza based on its recipient and sender.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jivesoftware.openfire.PacketDeliverer
deliverAsync
-
Constructor Details
-
OfflinePacketDeliverer
public OfflinePacketDeliverer()
-
-
Method Details
-
deliver
public void deliver(@Nonnull org.xmpp.packet.Packet stanza) throws UnauthorizedException, PacketException Description copied from interface:PacketDeliverer
Delivers the given stanza based on its recipient and sender. Invocation of this method blocks until the deliverer finishes processing the stanza. The deliverer defers actual routing decisions to other classes.- Specified by:
deliver
in interfacePacketDeliverer
- Parameters:
stanza
- the stanza to route- Throws:
UnauthorizedException
- if the user is not authorisedPacketException
- if the packet is null or the packet could not be routed.
-