org.androidpn.server.xmpp.handler
Class IQAuthHandler

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

public class IQAuthHandler
extends IQHandler

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

Author:
Sehwan Noh (devnoh@gmail.com)

Constructor Summary
IQAuthHandler()
          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

IQAuthHandler

public IQAuthHandler()
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