|
Openfire 3.3.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.container.BasicModule org.jivesoftware.openfire.spi.PacketRouterImpl
public class PacketRouterImpl
An uber router that can handle any packet type.
The interface is provided primarily as a convenience for services that must route all packet types (e.g. s2s routing, e2e encryption, etc).
Constructor Summary | |
---|---|
PacketRouterImpl()
Constructs a packet router. |
Method Summary | |
---|---|
void |
initialize(XMPPServer server)
Initializes the basic module. |
void |
route(IQ packet)
Routes the given IQ packet. |
void |
route(Message packet)
Routes the given Message packet. |
void |
route(Packet packet)
Routes the given packet based on packet recipient and sender. |
void |
route(Presence packet)
Routes the given Presence packet. |
Methods inherited from class org.jivesoftware.openfire.container.BasicModule |
---|
destroy, getName, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PacketRouterImpl()
Method Detail |
---|
public void route(Packet packet)
route
in interface PacketRouter
packet
- The packet to routepublic void route(IQ packet)
PacketRouter
route
in interface PacketRouter
packet
- The packet to route.public void route(Message packet)
PacketRouter
route
in interface PacketRouter
packet
- The packet to route.public void route(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.
|
Openfire 3.3.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |