|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.messenger.container.BasicModule
org.jivesoftware.messenger.PacketRouter
public class PacketRouter
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 | |
---|---|
PacketRouter()
Constructs a packet router. |
Method Summary | |
---|---|
void |
initialize(XMPPServer server)
Initializes the basic module. |
void |
route(IQ packet)
|
void |
route(Message packet)
|
void |
route(Packet packet)
Routes the given packet based on packet recipient and sender. |
void |
route(Presence packet)
|
Methods inherited from class org.jivesoftware.messenger.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 PacketRouter()
Method Detail |
---|
public void route(Packet packet)
packet
- The packet to routepublic void route(IQ packet)
public void route(Message packet)
public void route(Presence packet)
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.
|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |