public class PacketRouterImpl extends BasicModule implements PacketRouter
The interface is provided primarily as a convenience for services that must route all packet types (e.g. s2s routing, e2e encryption, etc).
| Constructor and Description |
|---|
PacketRouterImpl()
Constructs a packet router.
|
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(XMPPServer server)
Initializes the basic module.
|
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 packet recipient and sender.
|
void |
route(org.xmpp.packet.Presence packet)
Routes the given Presence packet.
|
destroy, getName, start, stoppublic void route(org.xmpp.packet.Packet packet)
route in interface PacketRouterpacket - The packet to routepublic void route(org.xmpp.packet.IQ packet)
PacketRouterroute in interface PacketRouterpacket - The packet to route.public void route(org.xmpp.packet.Message packet)
PacketRouterroute in interface PacketRouterpacket - The packet to route.public void route(org.xmpp.packet.Presence packet)
PacketRouterroute in interface PacketRouterpacket - The packet to route.public void initialize(XMPPServer server)
BasicModuleInitializes the basic module.
Inheriting classes that choose to override this method MUST call this initialize() method before accessing BasicModule resources.
initialize in interface Moduleinitialize in class BasicModuleserver - the server hosting this module.Copyright © 2003-2008 Jive Software.