public abstract class SmackDebugger
extends java.lang.Object
Every implementation of this interface must have a public constructor with the following arguments: XMPPConnection, Writer, Reader.
| Modifier and Type | Field and Description |
|---|---|
protected XMPPConnection |
connection |
| Modifier | Constructor and Description |
|---|---|
protected |
SmackDebugger(XMPPConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
incomingStreamSink(java.lang.CharSequence incomingCharSequence) |
java.io.Reader |
newConnectionReader(java.io.Reader reader)
Returns a new special Reader that wraps the new connection Reader.
|
java.io.Writer |
newConnectionWriter(java.io.Writer writer)
Returns a new special Writer that wraps the new connection Writer.
|
void |
onIncomingElementCompleted() |
abstract void |
onIncomingStreamElement(TopLevelStreamElement streamElement)
Used by the connection to notify about an incoming top level stream element.
|
void |
onOutgoingElementCompleted() |
abstract void |
onOutgoingStreamElement(TopLevelStreamElement streamElement)
Used by the connection to notify about a outgoing top level stream element.
|
abstract void |
outgoingStreamSink(java.lang.CharSequence outgoingCharSequence)
Note that the sequence of characters may be pretty printed.
|
abstract void |
userHasLogged(org.jxmpp.jid.EntityFullJid user)
Called when a user has logged in to the server.
|
protected final XMPPConnection connection
protected SmackDebugger(XMPPConnection connection)
public abstract void userHasLogged(org.jxmpp.jid.EntityFullJid user)
user - the user@host/resource that has just logged inpublic abstract void outgoingStreamSink(java.lang.CharSequence outgoingCharSequence)
outgoingCharSequence - the outgoing character sequence.public void onOutgoingElementCompleted()
public abstract void incomingStreamSink(java.lang.CharSequence incomingCharSequence)
public void onIncomingElementCompleted()
public final java.io.Reader newConnectionReader(java.io.Reader reader)
reader - connection reader.public final java.io.Writer newConnectionWriter(java.io.Writer writer)
writer - connection writer.public abstract void onIncomingStreamElement(TopLevelStreamElement streamElement)
This method is invoked right after the incoming stream was parsed.
streamElement - the incoming top level stream element.public abstract void onOutgoingStreamElement(TopLevelStreamElement streamElement)
This method is invoked right before the element is serialized to XML and put into the outgoing stream.
streamElement - the outgoing top level stream element.