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, stop
public void route(org.xmpp.packet.Packet packet)
route
in interface PacketRouter
packet
- The packet to routepublic void route(org.xmpp.packet.IQ packet)
PacketRouter
route
in interface PacketRouter
packet
- The packet to route.public void route(org.xmpp.packet.Message packet)
PacketRouter
route
in interface PacketRouter
packet
- The packet to route.public void route(org.xmpp.packet.Presence packet)
PacketRouter
route
in interface PacketRouter
packet
- The packet to route.public void initialize(XMPPServer server)
BasicModule
Initializes the basic module.
Inheriting classes that choose to override this method MUST call this initialize() method before accessing BasicModule resources.
initialize
in interface Module
initialize
in class BasicModule
server
- the server hosting this module.Copyright © 2003-2008 Jive Software.