net.ex_337.gradient.util
Class DummyXMPPService
java.lang.Object
net.ex_337.xmpp.fwork.XMPPService
net.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
|
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 |
DummyXMPPService
public DummyXMPPService()
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.