org.androidpn.server.xmpp.router
Class PacketRouter

java.lang.Object
  extended by org.androidpn.server.xmpp.router.PacketRouter

public class PacketRouter
extends java.lang.Object

This class is to handle incoming packets and route them to their corresponding handler.

Author:
Sehwan Noh (devnoh@gmail.com)

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

PacketRouter

public PacketRouter()
Constructor.

Method Detail

route

public void route(org.xmpp.packet.Packet packet)
Routes the packet based on its type.

Parameters:
packet - the packet to route

route

public void route(org.xmpp.packet.IQ packet)
Routes the IQ packet.

Parameters:
packet - the packet to route

route

public void route(org.xmpp.packet.Message packet)
Routes the Message packet.

Parameters:
packet - the packet to route

route

public void route(org.xmpp.packet.Presence packet)
Routes the Presence packet.

Parameters:
packet - the packet to route