Package org.jivesoftware.smackx.debugger
Class LiteDebugger
java.lang.Object
org.jivesoftware.smack.debugger.SmackDebugger
org.jivesoftware.smackx.debugger.LiteDebugger
The LiteDebugger is a very simple debugger that allows to debug sent, received and
interpreted messages.
-
Field Summary
Fields inherited from class org.jivesoftware.smack.debugger.SmackDebugger
connection
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
incomingStreamSink
(CharSequence incomingCharSequence) 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
outgoingStreamSink
(CharSequence outgoingCharSequence) Note that the sequence of characters may be pretty printed.void
Notification that the root window is closing.void
userHasLogged
(EntityFullJid user) Called when a user has logged in to the server.Methods inherited from class org.jivesoftware.smack.debugger.SmackDebugger
newConnectionReader, newConnectionWriter, onIncomingElementCompleted, onOutgoingElementCompleted
-
Constructor Details
-
LiteDebugger
-
-
Method Details
-
rootWindowClosing
Notification that the root window is closing. Stop listening for received and transmitted packets.- Parameters:
evt
- the event that indicates that the root window is closing
-
outgoingStreamSink
Description copied from class:SmackDebugger
Note that the sequence of characters may be pretty printed.- Specified by:
outgoingStreamSink
in classSmackDebugger
- Parameters:
outgoingCharSequence
- the outgoing character sequence.
-
incomingStreamSink
- Specified by:
incomingStreamSink
in classSmackDebugger
-
userHasLogged
Description copied from class:SmackDebugger
Called when a user has logged in to the server. The user could be an anonymous user, this means that the user would be of the form host/resource instead of the form user@host/resource.- Specified by:
userHasLogged
in classSmackDebugger
- Parameters:
user
- the user@host/resource that has just logged in
-
onIncomingStreamElement
Description copied from class:SmackDebugger
Used by the connection to notify about an incoming top level stream element.This method is invoked right after the incoming stream was parsed.
- Specified by:
onIncomingStreamElement
in classSmackDebugger
- Parameters:
streamElement
- the incoming top level stream element.
-
onOutgoingStreamElement
Description copied from class:SmackDebugger
Used by the connection to notify about a outgoing top level stream element.This method is invoked right before the element is serialized to XML and put into the outgoing stream.
- Specified by:
onOutgoingStreamElement
in classSmackDebugger
- Parameters:
streamElement
- the outgoing top level stream element.
-