org.androidpn.server.xmpp.net
Class StanzaHandler

java.lang.Object
  extended by org.androidpn.server.xmpp.net.StanzaHandler

public class StanzaHandler
extends java.lang.Object

This class is to handle incoming XML stanzas.

Author:
Sehwan Noh (devnoh@gmail.com)

Constructor Summary
StanzaHandler(java.lang.String serverName, Connection connection)
          Constructor.
 
Method Summary
 void process(java.lang.String stanza, org.dom4j.io.XMPPPacketReader reader)
          Process the received stanza using the given XMPP packet reader.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StanzaHandler

public StanzaHandler(java.lang.String serverName,
                     Connection connection)
Constructor.

Parameters:
serverName - the server name
connection - the connection
Method Detail

process

public void process(java.lang.String stanza,
                    org.dom4j.io.XMPPPacketReader reader)
             throws java.lang.Exception
Process the received stanza using the given XMPP packet reader.

Parameters:
stanza - the received statza
reader - the XMPP packet reader
Throws:
java.lang.Exception - if the XML stream is not valid.