public class SLF4JSmackDebugger extends SmackDebugger
Modifier and Type | Field and Description |
---|---|
static String |
LOGGER_NAME |
static AtomicBoolean |
printInterpreted |
static String |
RECEIVED_TAG |
static String |
SENT_TAG |
connection
Modifier and Type | Method and Description |
---|---|
static void |
enable()
Makes Smack use this Debugger.
|
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 final String LOGGER_NAME
public static final AtomicBoolean printInterpreted
public static final String SENT_TAG
public static final String RECEIVED_TAG
public static void enable()
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.