|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.androidpn.server.xmpp.router.IQRouter
public class IQRouter
This class is to route IQ packets to their corresponding handler.
Constructor Summary | |
---|---|
IQRouter()
Constucts a packet router registering new IQ handlers. |
Method Summary | |
---|---|
void |
addHandler(IQHandler handler)
Adds a new IQHandler to the list of registered handler. |
void |
removeHandler(IQHandler handler)
Removes an IQHandler from the list of registered handler. |
void |
route(org.xmpp.packet.IQ packet)
Routes the IQ packet based on its namespace. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IQRouter()
Method Detail |
---|
public void route(org.xmpp.packet.IQ packet)
packet
- the packet to routepublic void addHandler(IQHandler handler)
handler
- the IQHandlerpublic void removeHandler(IQHandler handler)
handler
- the IQHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |