Package org.jivesoftware.openfire
Interface PacketRouter
-
- All Known Implementing Classes:
PacketRouterImpl
,SessionPacketRouter
,StreamManagementPacketRouter
public interface PacketRouter
A router that handles incoming packets. Packets will be routed to their corresponding handler. A router is much like a forwarded with some logic to figute out who is the target for each packet.- Author:
- Gaston Dombiak
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
route(org.xmpp.packet.IQ packet)
Routes the given IQ packet.void
route(org.xmpp.packet.Message packet)
Routes the given Message packet.void
route(org.xmpp.packet.Packet packet)
Routes the given packet based on its type.void
route(org.xmpp.packet.Presence packet)
Routes the given Presence packet.
-
-
-
Method Detail
-
route
void route(org.xmpp.packet.Packet packet)
Routes the given packet based on its type.- Parameters:
packet
- The packet to route.
-
route
void route(org.xmpp.packet.IQ packet)
Routes the given IQ packet.- Parameters:
packet
- The packet to route.
-
route
void route(org.xmpp.packet.Message packet)
Routes the given Message packet.- Parameters:
packet
- The packet to route.
-
route
void route(org.xmpp.packet.Presence packet)
Routes the given Presence packet.- Parameters:
packet
- The packet to route.
-
-