|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.androidpn.server.xmpp.router.PacketRouter
public class PacketRouter
This class is to handle incoming packets and route them to their corresponding handler.
Constructor Summary | |
---|---|
PacketRouter()
Constructor. |
Method Summary | |
---|---|
void |
route(org.xmpp.packet.IQ packet)
Routes the IQ packet. |
void |
route(org.xmpp.packet.Message packet)
Routes the Message packet. |
void |
route(org.xmpp.packet.Packet packet)
Routes the packet based on its type. |
void |
route(org.xmpp.packet.Presence packet)
Routes the Presence packet. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PacketRouter()
Method Detail |
---|
public void route(org.xmpp.packet.Packet packet)
packet
- the packet to routepublic void route(org.xmpp.packet.IQ packet)
packet
- the packet to routepublic void route(org.xmpp.packet.Message packet)
packet
- the packet to routepublic void route(org.xmpp.packet.Presence packet)
packet
- the packet to route
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |