public class SmackPacketDebugger
extends java.lang.Object
implements org.jivesoftware.smack.PacketListener, org.jivesoftware.smack.PacketInterceptor
Constructor and Description |
---|
SmackPacketDebugger()
Creates the SmackPacketDebugger instance.
|
Modifier and Type | Method and Description |
---|---|
void |
interceptPacket(org.jivesoftware.smack.packet.Packet packet)
Process the packet that is about to be sent to the server.
|
void |
processPacket(org.jivesoftware.smack.packet.Packet packet)
Process the next packet sent to this packet listener.
|
void |
setConnection(org.jivesoftware.smack.Connection connection)
Sets current connection.
|
public SmackPacketDebugger()
public void setConnection(org.jivesoftware.smack.Connection connection)
connection
- the connection.public void interceptPacket(org.jivesoftware.smack.packet.Packet packet)
Interceptors are invoked using the same thread that requested the packet to be sent, so it's very important that implementations of this method not block for any extended period of time.
interceptPacket
in interface org.jivesoftware.smack.PacketInterceptor
packet
- the packet to is going to be sent to the server.public void processPacket(org.jivesoftware.smack.packet.Packet packet)
A single thread is responsible for invoking all listeners, so it's very important that implementations of this method not block for any extended period of time.
processPacket
in interface org.jivesoftware.smack.PacketListener
packet
- the packet to process.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.