Package org.jivesoftware.openfire
Interface PacketRouter
-
- All Known Implementing Classes:
PacketRouterImpl,SessionPacketRouter,StreamManagementPacketRouter
public interface PacketRouterA 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 voidroute(org.xmpp.packet.IQ packet)Routes the given IQ packet.voidroute(org.xmpp.packet.Message packet)Routes the given Message packet.voidroute(org.xmpp.packet.Packet packet)Routes the given packet based on its type.voidroute(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.
-
-