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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deliver(org.xmpp.packet.Packet packet)
Delivers the given packet based on packet recipient and sender.
-
-
-
Method Detail
-
deliver
void deliver(org.xmpp.packet.Packet packet) throws UnauthorizedException, PacketException
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
-
-