Package org.jivesoftware.openfire
Interface PacketDeliverer
- All Known Implementing Classes:
MultiplexerPacketDeliverer,OfflinePacketDeliverer,PacketDelivererImpl
public interface PacketDeliverer
Delivers packets to locally connected streams. This is the opposite
of the packet transporter.
- Author:
- Iain Shigeoka
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeliver(org.xmpp.packet.Packet packet) Delivers the given packet based on packet recipient and sender.
-
Method Details
-
deliver
Delivers the given packet based on packet recipient and sender. The deliverer defers actual routing decisions to other classes.Warning
Be careful to enforce concurrency DbC of concurrent by synchronizing any accesses to class resources.- Parameters:
packet- the packet to route- Throws:
PacketException- if the packet is null or the packet could not be routed.UnauthorizedException- if the user is not authorised
-