net.ex_337.gradient.util
Class DummyXMPPService

java.lang.Object
  extended bynet.ex_337.xmpp.fwork.XMPPService
      extended bynet.ex_337.gradient.util.DummyXMPPService
All Implemented Interfaces:
org.jivesoftware.smack.PacketListener

public class DummyXMPPService
extends XMPPService

A dummy XMPP service, logs all incoming packets.

Author:
Ian

Field Summary
 
Fields inherited from class net.ex_337.xmpp.fwork.XMPPService
filter, sc, xmppConnection
 
Constructor Summary
DummyXMPPService()
           
 
Method Summary
 void destroy()
          Logs the destroy lifecycle event.
 void init()
          Basic initialisation method.
 void processPacket(org.jivesoftware.smack.packet.Packet packet)
          Logs each packet received.
 
Methods inherited from class net.ex_337.xmpp.fwork.XMPPService
close, getInitParameter, getInitParameterNames, getIntInitParameter, getListInitParameter, log, log, open, setInitParameter, setServletContext, setXMPPConnection, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyXMPPService

public DummyXMPPService()
Method Detail

init

public void init()
Basic initialisation method. Logs all initialisation parameters.

Overrides:
init in class XMPPService

destroy

public void destroy()
Logs the destroy lifecycle event.

Overrides:
destroy in class XMPPService

processPacket

public void processPacket(org.jivesoftware.smack.packet.Packet packet)
Logs each packet received.

Specified by:
processPacket in interface org.jivesoftware.smack.PacketListener
Specified by:
processPacket in class XMPPService
Parameters:
packet - the received packet.