org.androidpn.server.xmpp.handler
Class IQRosterHandler

java.lang.Object
  extended by org.androidpn.server.xmpp.handler.IQHandler
      extended by org.androidpn.server.xmpp.handler.IQRosterHandler

public class IQRosterHandler
extends IQHandler

This class is to handle the TYPE_IQ jabber:iq:roster protocol.

Author:
Sehwan Noh (devnoh@gmail.com)

Constructor Summary
IQRosterHandler()
          Constructor.
 
Method Summary
 java.lang.String getNamespace()
          Returns the namespace of the handler.
 org.xmpp.packet.IQ handleIQ(org.xmpp.packet.IQ packet)
          Handles the received IQ packet.
 
Methods inherited from class org.androidpn.server.xmpp.handler.IQHandler
process
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IQRosterHandler

public IQRosterHandler()
Constructor.

Method Detail

handleIQ

public org.xmpp.packet.IQ handleIQ(org.xmpp.packet.IQ packet)
                            throws UnauthorizedException
Handles the received IQ packet.

Specified by:
handleIQ in class IQHandler
Parameters:
packet - the packet
Returns:
the response to send back
Throws:
UnauthorizedException - if the user is not authorized

getNamespace

public java.lang.String getNamespace()
Returns the namespace of the handler.

Specified by:
getNamespace in class IQHandler
Returns:
the namespace