public abstract class AbstractDebugger extends SmackDebugger
| Modifier and Type | Field and Description |
|---|---|
static boolean |
printInterpreted |
connection| Constructor and Description |
|---|
AbstractDebugger(XMPPConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
incomingStreamSink(java.lang.CharSequence incomingCharSequence) |
protected abstract void |
log(java.lang.String logMessage) |
protected abstract void |
log(java.lang.String logMessage,
java.lang.Throwable throwable) |
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(java.lang.CharSequence outgoingCharSequence)
Note that the sequence of characters may be pretty printed.
|
void |
userHasLogged(org.jxmpp.jid.EntityFullJid user)
Called when a user has logged in to the server.
|
newConnectionReader, newConnectionWriter, onIncomingElementCompleted, onOutgoingElementCompletedpublic AbstractDebugger(XMPPConnection connection)
protected abstract void log(java.lang.String logMessage)
protected abstract void log(java.lang.String logMessage,
java.lang.Throwable throwable)
public final void outgoingStreamSink(java.lang.CharSequence outgoingCharSequence)
SmackDebuggeroutgoingStreamSink in class SmackDebuggeroutgoingCharSequence - the outgoing character sequence.public final void incomingStreamSink(java.lang.CharSequence incomingCharSequence)
incomingStreamSink in class SmackDebuggerpublic void userHasLogged(org.jxmpp.jid.EntityFullJid user)
SmackDebuggeruserHasLogged in class SmackDebuggeruser - the user@host/resource that has just logged inpublic void onIncomingStreamElement(TopLevelStreamElement streamElement)
SmackDebuggerThis method is invoked right after the incoming stream was parsed.
onIncomingStreamElement in class SmackDebuggerstreamElement - the incoming top level stream element.public void onOutgoingStreamElement(TopLevelStreamElement streamElement)
SmackDebuggerThis method is invoked right before the element is serialized to XML and put into the outgoing stream.
onOutgoingStreamElement in class SmackDebuggerstreamElement - the outgoing top level stream element.