public class EnhancedDebugger extends SmackDebugger
A new EnhancedDebugger will be created for each connection to debug. All the EnhancedDebuggers will be shown in the same debug window provided by the class EnhancedDebuggerWindow.
Modifier and Type | Class and Description |
---|---|
static class |
EnhancedDebugger.Factory |
connection
Constructor and Description |
---|
EnhancedDebugger(XMPPConnection connection) |
Modifier and Type | Method and Description |
---|---|
Reader |
newConnectionReader(Reader newReader)
Returns a new special Reader that wraps the new connection Reader.
|
Writer |
newConnectionWriter(Writer newWriter)
Returns a new special Writer that wraps the new connection Writer.
|
void |
onIncomingStreamElement(TopLevelStreamElement streamElement)
Used by the connection to notify about an incoming top level stream element.
|
void |
onOutgoingStreamElement(TopLevelStreamElement streamElement)
Used by the connection to notify about a outgoing top level stream element.
|
void |
userHasLogged(org.jxmpp.jid.EntityFullJid user)
Called when a user has logged in to the server.
|
public EnhancedDebugger(XMPPConnection connection)
public Reader newConnectionReader(Reader newReader)
SmackDebugger
newConnectionReader
in class SmackDebugger
newReader
- connection reader.public Writer newConnectionWriter(Writer newWriter)
SmackDebugger
newConnectionWriter
in class SmackDebugger
newWriter
- connection writer.public void userHasLogged(org.jxmpp.jid.EntityFullJid user)
SmackDebugger
userHasLogged
in class SmackDebugger
user
- the user@host/resource that has just logged inpublic void onIncomingStreamElement(TopLevelStreamElement streamElement)
SmackDebugger
This method is invoked right after the incoming stream was parsed.
onIncomingStreamElement
in class SmackDebugger
streamElement
- the incoming top level stream element.public void onOutgoingStreamElement(TopLevelStreamElement streamElement)
SmackDebugger
This method is invoked right before the element is serialized to XML and put into the outgoing stream.
onOutgoingStreamElement
in class SmackDebugger
streamElement
- the outgoing top level stream element.