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 |
---|---|
protected abstract void |
log(String logMessage) |
protected abstract void |
log(String logMessage,
Throwable throwable) |
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(EntityFullJid user)
Called when a user has logged in to the server.
|
public static boolean printInterpreted
public AbstractDebugger(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(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.